{"id":"CVE-2026-87808","published":"2026-09-09T11:20:57Z","modified":"2026-09-09T14:05:19Z","title":"SiYuan before v3.8.2 Read-Only Boundary Bypass via fullTextSearchBlock","vendor":"siyuan-note","product":"siyuan","tier":"tail","description":{"text":"SiYuan versions <= 3.8.1 contain an incomplete fix for CVE-2026-32767 (GHSA-j7wh-x834-p3r7). The prior fix (commit d5e2d0bc) added an administrator check for SQL mode (method=2) in POST /api/search/fullTextSearchBlock, but the endpoint still does not enforce the application's read-only boundary: for method=2 it forwards caller-supplied SQL to the blocks database query path without calling model.CheckReadonly or CheckReadonlyStatementInBox. As a result, when a workspace runs in read-only mode (--readonly=true), an authenticated administrator can submit arbitrary SQL through /api/search/fullTextSearchBlock and obtain raw read access to the blocks database, even though the dedicated /api/query/sql endpoint is blocked in that mode. Fixed in v3.8.2.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00444,"percentile":0.39386,"provenance":"source"},"cwes":[{"id":"CWE-693","name":"Protection Mechanism Failure"}],"references":[{"url":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-4qwm-3p58-vh67","tags":["vendor-advisory"]},{"url":"https://github.com/siyuan-note/siyuan/commit/d5e2d0bce0dffef5f61bd8066954bc2d41181fc5","tags":["patch"]},{"url":"https://www.vulncheck.com/advisories/siyuan-before-3.8.2-read-only-boundary-bypass-via-fulltextsearchblock","tags":["third-party-advisory"]}],"priority":{"score":11.3,"factors":[{"name":"EPSS percentile","points":7.88},{"name":"CVSS severity","points":3.43}]},"vendorSlug":"siyuan-note","affectedVersions":[{"vendor":"siyuan-note","product":"siyuan","versions":["< 3.8.2"]}],"fixedVersions":[{"vendor":"siyuan-note","product":"siyuan","versions":["3.8.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-09-09T14:04:58.729512Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-74834","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-siyuan-note-siyuan-cve-2026-23645","parents":[{"from":"CVE-2026-32767","to":"CVE-2026-87808","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"SiYuan versions <= 3.8.1 contain an incomplete fix for CVE-2026-32767 (GHSA-j7wh-x834-p3r7).","from":"CVE.org","in":"CVE-2026-87808"}]},{"from":"CVE-2026-72789","to":"CVE-2026-87808","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["kernel/api/search.go"],"commits":["https://github.com/siyuan-note/siyuan/commit/a25c2dd06aae13d1de70cc61cbf98169689c9d86","https://github.com/siyuan-note/siyuan/commit/d5e2d0bce0dffef5f61bd8066954bc2d41181fc5"],"basis":"shared function","functions":["fullTextSearchBlock"]}]}]}}