CVE-2026-72811: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in siyuan-note siyuan
SiYuan versions <= v3.7.2 contain a SQL injection vulnerability in the backlink/mention search query (kernel/model/backlink.go), which concatenates stored block metadata (title, name, alias, anchor text) and the client-supplied keyword into a SQL MATCH/search statement while escaping only the double-quote character and not the single quote. A single quote in the client keyword (first-order, reachable by an anonymous or RoleReader user on the publish surface) or in stored document metadata (second-order) breaks out of the string literal. Because the query runs on the main read-write siyuan.db handle via a statement-stacking-capable driver, an attacker can execute arbitrary SQL, enabling cross-notebook read and write. Fixed in v3.7.4.
AI Analysis
Technical Summary
SiYuan versions <= 3.7.2 have a SQL injection vulnerability in the backlink/mention search query (kernel/model/backlink.go). The vulnerability is due to improper neutralization of special elements in SQL commands: the application concatenates stored block metadata and client-supplied keywords into a SQL MATCH/search statement, escaping only double quotes but not single quotes. This allows an attacker, including anonymous or RoleReader users, to inject SQL via single quotes in the keyword or stored metadata. The query executes on the main read-write siyuan.db handle using a driver that supports statement stacking, enabling arbitrary SQL execution and cross-notebook read/write capabilities. The vulnerability is fixed in version 3.7.4.
Potential Impact
An attacker can execute arbitrary SQL commands on the main read-write database, potentially reading and modifying data across notebooks. This can lead to data compromise, unauthorized data manipulation, and loss of data integrity. The vulnerability is exploitable without authentication (anonymous users) and requires no user interaction, making it highly severe.
Mitigation Recommendations
Upgrade SiYuan to version 3.7.4 or later, where this SQL injection vulnerability is fixed. No other mitigations are specified or recommended by the vendor advisory.
CVE-2026-72811: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in siyuan-note siyuan
Description
SiYuan versions <= v3.7.2 contain a SQL injection vulnerability in the backlink/mention search query (kernel/model/backlink.go), which concatenates stored block metadata (title, name, alias, anchor text) and the client-supplied keyword into a SQL MATCH/search statement while escaping only the double-quote character and not the single quote. A single quote in the client keyword (first-order, reachable by an anonymous or RoleReader user on the publish surface) or in stored document metadata (second-order) breaks out of the string literal. Because the query runs on the main read-write siyuan.db handle via a statement-stacking-capable driver, an attacker can execute arbitrary SQL, enabling cross-notebook read and write. Fixed in v3.7.4.
CVSS v4.0
Score 9.9critical
Affected software
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
SiYuan versions <= 3.7.2 have a SQL injection vulnerability in the backlink/mention search query (kernel/model/backlink.go). The vulnerability is due to improper neutralization of special elements in SQL commands: the application concatenates stored block metadata and client-supplied keywords into a SQL MATCH/search statement, escaping only double quotes but not single quotes. This allows an attacker, including anonymous or RoleReader users, to inject SQL via single quotes in the keyword or stored metadata. The query executes on the main read-write siyuan.db handle using a driver that supports statement stacking, enabling arbitrary SQL execution and cross-notebook read/write capabilities. The vulnerability is fixed in version 3.7.4.
Potential Impact
An attacker can execute arbitrary SQL commands on the main read-write database, potentially reading and modifying data across notebooks. This can lead to data compromise, unauthorized data manipulation, and loss of data integrity. The vulnerability is exploitable without authentication (anonymous users) and requires no user interaction, making it highly severe.
Mitigation Recommendations
Upgrade SiYuan to version 3.7.4 or later, where this SQL injection vulnerability is fixed. No other mitigations are specified or recommended by the vendor advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-08-10T15:11:49.794Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a7f0282bf8831d539fec754
Added to database: 08/14/2026, 11:56:50 UTC
Last enriched: 08/14/2026, 12:26:07 UTC
Last updated: 08/14/2026, 20:05:05 UTC
Views: 7
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.