CVE-2026-93591: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in siyuan-note siyuan
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.
AI Analysis
Technical Summary
CVE-2026-93591 is an SQL injection vulnerability in SiYuan note-taking software versions prior to 3.8.3. The vulnerability exists because tag values are concatenated directly into SQL string literals without escaping single quotes in the graph.go query2Stmt function. An attacker with publish-mode reader or anonymous visitor access can inject SQL commands via inline HTML span tags in the getGraph endpoint, allowing execution of arbitrary SQL queries on the read-write database and potential data exfiltration across notebooks.
Potential Impact
An attacker with publish-mode reader or anonymous visitor access can exploit this vulnerability to execute arbitrary SQL queries on the application's read-write database. This can result in unauthorized disclosure of private data stored across notebooks, compromising confidentiality and potentially integrity of the data.
Mitigation Recommendations
A fix is available in SiYuan version 3.8.3. Users should upgrade to version 3.8.3 or later to remediate this SQL injection vulnerability. Until patched, restrict publish-mode reader or anonymous visitor access if possible to reduce exposure.
CVE-2026-93591: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in siyuan-note siyuan
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.
CVSS v4.0
Score 7.2high
Affected software
siyuan-note
siyuan
pkg:github/siyuan-note/siyuanRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-93591 is an SQL injection vulnerability in SiYuan note-taking software versions prior to 3.8.3. The vulnerability exists because tag values are concatenated directly into SQL string literals without escaping single quotes in the graph.go query2Stmt function. An attacker with publish-mode reader or anonymous visitor access can inject SQL commands via inline HTML span tags in the getGraph endpoint, allowing execution of arbitrary SQL queries on the read-write database and potential data exfiltration across notebooks.
Potential Impact
An attacker with publish-mode reader or anonymous visitor access can exploit this vulnerability to execute arbitrary SQL queries on the application's read-write database. This can result in unauthorized disclosure of private data stored across notebooks, compromising confidentiality and potentially integrity of the data.
Mitigation Recommendations
A fix is available in SiYuan version 3.8.3. Users should upgrade to version 3.8.3 or later to remediate this SQL injection vulnerability. Until patched, restrict publish-mode reader or anonymous visitor access if possible to reduce exposure.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-09-18T10:59:45.138Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6aad3d5b55bf5e2cf51004ed
Added to database: 09/18/2026, 13:32:11 UTC
Last enriched: 09/18/2026, 13:47:59 UTC
Last updated: 09/19/2026, 00:43:55 UTC
Views: 9
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.