{"id":"CVE-2026-93591","published":"2026-09-18T14:19:10.097","lastModified":"2026-09-18T20:17:33.037","description":"SiYuan versions before 3.8.3 contain an SQL injection vulnerability in the graph.go query2Stmt function where tag values are concatenated raw into SQL string literals without escaping single quotes. A publish-mode reader or anonymous visitor can inject SQL via inline HTML span tags in the getGraph endpoint to execute arbitrary queries on the read-write database and exfiltrate private data across notebooks.","cvssScore":7.6,"cvssSeverity":"HIGH","cvssVector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","cwes":["CWE-89"],"vendors":[],"products":[],"references":[{"url":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-5rwv-4j4c-f954","tags":[]},{"url":"https://www.vulncheck.com/advisories/siyuan-before-3.8.3-sql-injection-via-unescaped-tag-in-graph-go","tags":[]},{"url":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-5rwv-4j4c-f954","tags":[]}],"exploitRefs":[{"url":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-5rwv-4j4c-f954","tags":[]},{"url":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-5rwv-4j4c-f954","tags":[]}],"hasPoc":true,"ai":{"summary":"A SQL injection vulnerability exists in SiYuan's graph.go query2Stmt function where tag values are directly concatenated into SQL queries without proper escaping, allowing remote attackers to execute arbitrary database queries and access private data across notebooks.","exploitability":"Exploitation is relatively straightforward for publish-mode readers or anonymous visitors who can inject inline HTML span tags into the getGraph endpoint, requiring no authentication or privileged access.","blast_radius":"The vulnerability could allow attackers to exfiltrate private data across all notebooks in the database, potentially exposing sensitive information from multiple users' workspaces.","remediation":"Upgrade to SiYuan 3.8.3 or later to remediate this SQL injection vulnerability.","detection":"No reliable host or network indicator is derivable from the published description.","tags":["sql-injection","web","data-exfiltration","remote"],"model":"garnet-coder","analyzedAt":"2026-10-12T08:55:38.312Z"}}