home / blog
2026-11-28 · high
CVE-2026-93591: SQL injection in SiYuan allows data exfiltration
SQL injection in SiYuan allows arbitrary database query execution and private data theft between notebooks.

CVE-2026-93591 is an SQL injection vulnerability in SiYuan versions before 3.8.3. The vulnerability is located in the query2Stmt function of graph.go, where tag values are concatenated raw into SQL string literals without escaping single quotes. This allows publish-mode readers or anonymous visitors to inject SQL via inline HTML span tags in the getGraph endpoint, executing arbitrary queries on the read-write database and exfiltrating private data across notebooks.
The severity is classified as HIGH (CVSS 7.6) by NVD. The vulnerability was officially published on September 18, 2026. There are reports on the X (Twitter) platform with mentions in the last 24 hours, indicating attention from the security community. At this time, no public exploits have been detected on GitHub repositories, but the potential impact on data security is significant.
While waiting for the official patch (still under review), immediate countermeasures are recommended: restrict access to the getGraph endpoint to trusted users, implement custom SQL parametrization as a temporary solution, and carefully monitor suspicious activity on the graph functionality. Stay updated on official patches from the SiYuan official repository.
At a glance
- What
- SQL injection vulnerability in graph.go function query2Stmt where tag values are concatenated raw into SQL string literals without escaping single quotes
- Severity
- HIGH (CVSS 7.6)
- Affected versions
- Before 3.8.3
- Fix
- Version 3.8.3 (still under review)
- Status
- Officially published on NVD (09/18/2026)
- Action
- Monitor for patch and apply update as soon as available
Sources: NVD, CVE-2026-93591