Quick answers
- Is CVE-2026-72811 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-72811 being exploited in the wild.
- How severe is CVE-2026-72811?
- Critical severity, with a CVSS score of 10, published 3 September 2026.
- Which products and versions are affected?
- github.com/siyuan-note/siyuan/kernel (Go) < 0.0.0-20260723004839-1a5b3431d5ab, SEMVER:introduced=0,fixed=0.0.0-20260723004839-1a5b3431d5ab; SiYuan before 0.0.0-20260723004839-1a5b3431d5ab.
- Is there a fix for CVE-2026-72811?
- Yes. github.com/siyuan-note/siyuan/kernel (Go): upgrade to 0.0.0-20260723004839-1a5b3431d5ab or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-72811 attacked?
- It is attacked over the network.
- Am I affected by CVE-2026-72811?
- Check whether you run github.com/siyuan-note/siyuan/kernel (Go) or SiYuan at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- github.com/siyuan-note/siyuan/kernel (Go): upgrade to 0.0.0-20260723004839-1a5b3431d5ab or later
go get github.com/siyuan-note/siyuan/kernel@v0.0.0-20260723004839-1a5b3431d5ab
Technical details
The vulnerability is a SQL injection in the backlink/mention search query (kernel/model/backlink.go, line ~980) where stored block metadata (title, name, alias, anchor text) and client-supplied keywords are concatenated into a SQL MATCH statement. The code escapes only double-quote characters but not single quotes, allowing single-quote characters to break out of string literals and inject SQL context. The vulnerable query executes on the main read-write siyuan.db handle via a statement-stacking-capable SQLite driver (88250/go-sqlite3 fork), enabling arbitrary SQL read/write operations across notebooks. Two attack vectors exist: (1) first-order injection via a client-supplied keyword containing single quotes, reachable by anonymous readers in publish mode with auth disabled; (2) second-order injection via malicious document titles stored safely through parameterized INSERTs but executed when concatenated into backlink queries on any kernel that ingests the document. The backlink query functions (getBacklink, getBacklink2, getBacklinkDoc, getBackmentionDoc) use CheckAuth-only protection, making the first-order vector accessible to RoleReader tokens and anonymous accounts. Parameterized queries or consistent single-quote escaping at the query-construction site is required to remediate both vectors.
Affected products
- SiYuan SiYuan before 0.0.0-20260723004839-1a5b3431d5ab
Identifiers
- CVE-2026-72811
- GHSA-q2vg-7qgx-x5fc
- GO-2026-6402
Timeline
- 2026-09-03: disclosed: GitHub Advisory Database and CVE-2026-72811 published
- 2026-07-23: patched: Fix available in commit 1a5b3431d5ab