{"id":20250,"date":"2026-09-09T20:32:05","date_gmt":"2026-09-09T12:32:05","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-87808"},"modified":"2026-09-09T20:32:05","modified_gmt":"2026-09-09T12:32:05","slug":"cve-2026-87808","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-87808","title":{"rendered":"CVE-2026-87808 [MEDIUM] &#8211; SiYuan versions"},"content":{"rendered":"<p>SiYuan versions &lt;= 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&#039;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 (&#8211;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.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SiYuan versions<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-20250","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/20250","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=20250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=20250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=20250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}