{"id":"CVE-2026-72811","published":"2026-08-14T11:35:24Z","modified":"2026-08-14T16:52:14Z","title":"SiYuan before v3.7.4 SQL Injection via backlink search","vendor":"siyuan-note","product":"siyuan","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":10,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00436,"percentile":0.29824,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-q2vg-7qgx-x5fc","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/siyuan-before-sql-injection-via-backlink-search","tags":["third-party-advisory"]}],"priority":{"score":13.0,"factors":[{"name":"EPSS percentile","points":5.96},{"name":"CVSS severity","points":7.0}]},"vendorSlug":"siyuan-note","affectedVersions":[{"vendor":"siyuan-note","product":"siyuan","versions":["< 3.7.4"]}],"fixedVersions":[{"vendor":"siyuan-note","product":"siyuan","versions":["3.7.4"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-08-14T15:23:57.443197Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/siyuan-note/siyuan/kernel","vulnerableRanges":["<0.0.0-20260723004839-1a5b3431d5ab"],"patched":["0.0.0-20260723004839-1a5b3431d5ab"],"from":["GHSA-q2vg-7qgx-x5fc","GO-2026-6402"],"provenance":"source"}],"summary":{"text":"The SQL injection flaw affects the backlink and mention search in the SiYuan note-taking application (product siyuan, vendor siyuan-note) in versions up to and including v3.7.2, where the backlink query in kernel/model/backlink.go escapes double quotes but not single quotes. An attacker can exploit it over the network without authentication or user interaction, by sending a crafted keyword or planting a single quote in stored document metadata, to run arbitrary SQL against the main database and read or modify data across notebooks.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:55Z"},"euvd":{"id":"EUVD-2026-58626","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-68584","published":"2026-08-03","fixed":"0.0.0-20260721020826-2d069dce84a2","kev":false},{"cve":"CVE-2026-69085","published":"2026-08-03","fixed":"0.0.0-20260721043339-eef10568384e","kev":false},{"cve":"CVE-2026-72812","published":"2026-08-14","fixed":"0.0.0-20260723002528-7d273c271ce1","kev":false,"link":{"from":"CVE-2026-72812","to":"CVE-2026-72811","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/siyuan-note/siyuan/kernel","fromFixed":"0.0.0-20260723002528-7d273c271ce1","toFixed":"0.0.0-20260723004839-1a5b3431d5ab","daysApart":0}]}},{"cve":"CVE-2026-72811","published":"2026-08-14","fixed":"0.0.0-20260723004839-1a5b3431d5ab","kev":false},{"cve":"CVE-2026-72810","published":"2026-08-14","fixed":"0.0.0-20260723013612-ba948639d7f6","kev":false,"link":{"from":"CVE-2026-72811","to":"CVE-2026-72810","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/siyuan-note/siyuan/kernel","fromFixed":"0.0.0-20260723004839-1a5b3431d5ab","toFixed":"0.0.0-20260723013612-ba948639d7f6","daysApart":0}]}},{"cve":"CVE-2026-72809","published":"2026-08-12","fixed":"0.0.0-20260723031701-9c16e9851f0b","kev":false},{"cve":"CVE-2026-72808","published":"2026-08-12","fixed":"0.0.0-20260723031702-509b35055940","kev":false}],"package":"Go:github.com/siyuan-note/siyuan/kernel"}}