# CVE-2026-87808: SiYuan before v3.8.2 Read-Only Boundary Bypass via fullTextSearchBlock

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 27% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-09T11:20:57.576Z
- Modified: 2026-09-09T20:20:21.673Z
- Weaknesses: CWE-693
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- siyuan-note siyuan: before 3.8.2 (not affected: 3.8.2)

## Every score

- VulnCheck: CVSS:4.0 8.7 High `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`
- VulnCheck: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/siyuan-note/siyuan/security/advisories/GHSA-4qwm-3p58-vh67> (exploit, vendor-advisory)
- <https://github.com/siyuan-note/siyuan/commit/d5e2d0bce0dffef5f61bd8066954bc2d41181fc5> (patch)
- <https://www.vulncheck.com/advisories/siyuan-before-3.8.2-read-only-boundary-bypass-via-fulltextsearchblock> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-87808](https://www.cve.org/CVERecord?id=CVE-2026-87808), CVE Terms of Use, modified 2026-09-09
- NVD: [CVE-2026-87808](https://nvd.nist.gov/vuln/detail/CVE-2026-87808), Public domain, modified 2026-09-09

---

Page: https://cve.day/CVE-2026-87808 · Whole record: https://cve.day/CVE-2026-87808.json · Rebuilt by cve.day 2026-11-25T22:59:37.731Z
