# CVE-2026-59834: SiYuan: SQL Query in Block Search Exposes Hidden Published Document Content

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A: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.48%, higher than 43% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-09T22:15:48.674Z
- Modified: 2026-10-25T15:10:00.147Z
- Also known as: GHSA-h89q-4j2h-7h88, GO-2026-6353
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

SiYuan is an open-source personal knowledge management system. Prior to 3.7.1, the block search endpoint POST /api/search/fullTextSearchBlock concatenates attacker-controlled paths values into SQL predicates used by non-SQL search modes, allowing an unauthenticated publish visitor to inject a UNION SELECT and return rows from hidden documents by projecting an allowed visible box and path. This issue is fixed in versions 3.7.1.

(As written by CVE List.)

## Affected

- siyuan-note siyuan: < 3.7.1
- github.com/siyuan-note/siyuan/kernel (Go): before 0.0.0-20260704035518-d0f0fe146fb0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/siyuan-note/siyuan/security/advisories/GHSA-h89q-4j2h-7h88> (exploit, advisory, web)
- <https://github.com/siyuan-note/siyuan/commit/57bcad4b331836880bfe6be25d4180bdcf10db0d> (web)
- <https://github.com/siyuan-note/siyuan/commit/d0f0fe146fb07d594fcadc4f48d4f7c30ac01d1e> (web)
- <https://github.com/siyuan-note/siyuan/releases/tag/v3.7.1> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59834> (advisory)
- <https://github.com/siyuan-note/siyuan> (package)

## Sources

- CVE List: [CVE-2026-59834](https://www.cve.org/CVERecord?id=CVE-2026-59834), CVE Terms of Use, modified 2026-07-10
- GitHub Advisory Database: [GHSA-h89q-4j2h-7h88](https://github.com/advisories/GHSA-h89q-4j2h-7h88), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-6353](https://pkg.go.dev/vuln/GO-2026-6353), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-59834](https://nvd.nist.gov/vuln/detail/CVE-2026-59834), Public domain, modified 2026-10-25

---

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