CVE-2026-72811 SiYuan before v3.7.4 SQL Injection via backlink search
An attacker can execute arbitrary SQL via the backlink search feature to read and modify data across notebooks in SiYuan.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-72811?
CVE-2026-72811 is a critical SQL injection vulnerability in siyuan-note siyuan, published on 14 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-89
Which versions are affected by CVE-2026-72811?
3 open source packages ship an affected version, including github.com/siyuan-note/siyuan/kernel.
| Package | Affected | Fixed in |
|---|---|---|
github.com/siyuan-note/siyuan/kernel Go | All versions | 0.0.0-20260723004839-1a5b3431d5ab |
github.com/siyuan-note/siyuan/kernel Go | All versions | 0.0.0-20260723004839-1a5b3431d5ab |
github.com/siyuan-note/siyuan/kernel Go | All versions | 0.0.0-20260723004839-1a5b3431d5ab |
How do I fix CVE-2026-72811?
Upgrade github.com/siyuan-note/siyuan/kernel to 0.0.0-20260723004839-1a5b3431d5ab or later.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2026-72811 being exploited?
There is no known exploitation of CVE-2026-72811 in the wild and no public exploit code.
Sources
Also known as GHSA-q2vg-7qgx-x5fc, GO-2026-6402.