Description
SiYuan before v3.7.3 contains a SQL injection vulnerability in the /api/filetree/searchDocs endpoint, where the caller-supplied keyword parameter is concatenated directly into SQL statements with no escaping or parameter binding. The endpoint is reachable by a publish RoleReader token, or unauthenticated when publish mode is enabled with Publish.Auth.Enable set to false. Because the statement executes on a read-write SQLite handle via a driver that supports stacked (semicolon-separated) statements, an attacker can read and modify database content across all cleartext (non-encrypted) notebooks on the instance.
Severity (CVSS)
| Base score | 9.9 |
|---|---|
| Severity | Critical |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-89 — Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Affected products
| Vendor | Product | Versions |
|---|---|---|
| siyuan-note | siyuan | 0 to <3.7.3; 3.7.3 |
References
- https://github.com/siyuan-note/siyuan/security/advisories/GHSA-33jq-p8c2-q3q4 (vendor-advisory)
- https://www.vulncheck.com/advisories/siyuan-before-sql-injection-via-searchdocs (third-party-advisory)
Generated from the official CVE List on 04 Aug 2026 07:02 UTC.