Security mailing lists by PureSourceCode

CVE-2026-72811

CRITICAL 9.9CVSS 4.0

SiYuan: SQL injection in backlink/mention search via unescaped stored and client input (publish mode): first-order (client keyword) and second-order (stored document title) breakout on read-write handle

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.

Published
14 Aug 2026
Last modified
10 Sep 2026
Assigned by
disclosure@vulncheck.com
NVD status
Deferred
Weakness
CWE-89
Also known as
GHSA-q2vg-7qgx-x5fcGO-2026-6402
Sources
NVDJSONOSV GHSA-q2vg-7qgx-x5fcJSONOSV GO-2026-6402JSON

Scores

SourceScored byVersionScoreVector / decision
NVD disclosure@vulncheck.com (Secondary) CVSS 4.0 CRITICAL 9.9 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
NVD disclosure@vulncheck.com (Secondary) CVSS 3.1 CRITICAL 10.0 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
OSV GitHub CVSS 3.1 CRITICAL 10.0 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV Go github.com/siyuan-note/siyuan/kernel < 0.0.0-20260723004839-1a5b3431d5ab 0.0.0-20260723004839-1a5b3431d5ab

References

History

  • 25 Nov 2026 21:04 UTC · NVD: first stored (published 14 Aug 2026)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 10 Sep 2026)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 3 Sep 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.