SiYuan
SiYuan before 3.8.3 SQL Injection via unescaped tag in graph.go
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.6high · scored by CNA · CWE-89
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
siyuan-note siyuan
- < 3.8.3
Fixed in 3.8.3
Mitigation
Upgrade siyuan to 3.8.3 or later.
References
- Vendor advisory github.com/siyuan-note/siyuan/security/advisor…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.