{"id":"CVE-2026-87808","aliases":["CVE-2026-87808"],"related":[],"kind":"vulnerability","state":"published","title":"SiYuan before v3.8.2 Read-Only Boundary Bypass via fullTextSearchBlock","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-09-09T11:20:57.576Z","modified":"2026-09-09T20:20:21.673Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":8.7,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","score":4.9,"rating":"MEDIUM"}],"cwes":["CWE-693"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"3.8.2","status":"affected"},{"type":"semver","version":"3.8.2","status":"unaffected"}],"vendor":"siyuan-note","product":"siyuan","source":"cvelist"}],"references":[{"url":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-4qwm-3p58-vh67","tags":["exploit","vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/siyuan-note/siyuan/commit/d5e2d0bce0dffef5f61bd8066954bc2d41181fc5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/siyuan-before-3.8.2-read-only-boundary-bypass-via-fulltextsearchblock","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["arbor-s"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-09-09T14:04:58.729Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-87808","url":"https://www.cve.org/CVERecord?id=CVE-2026-87808","licence":"CVE Terms of Use","modified":"2026-09-09T14:05:19.500Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-87808","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-87808","licence":"Public domain","modified":"2026-09-09T20:20:21.673Z"}],"updatedAt":"2026-11-25T22:59:37.731Z","epss":{"score":0.00324,"percentile":0.2745,"date":"2026-12-01T12:00:22.000Z"}}