{"id":"CVE-2026-72807","published":"2026-08-12T19:07:51Z","modified":"2026-08-14T16:52:12Z","title":"SiYuan before v3.7.4 SQL Injection via queryBlocks template","vendor":"siyuan-note","product":"siyuan","tier":"tail","description":{"text":"SiYuan versions before v3.7.4 contain a second-order SQL injection vulnerability in attribute-view template columns that expose the queryBlocks function, which executes raw SQL using string substitution instead of parameterized queries. Attackers can distribute malicious SiYuan documents or packages with crafted template columns that execute arbitrary SQL on a victim's kernel when the package is imported and rendered, enabling read and write access across notebooks.","provenance":"source","from":"CVE.org"},"cvss":{"score":8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00333,"percentile":0.27207,"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-x67c-8pwr-m8g3","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/siyuan-before-sql-injection-via-queryblocks-template","tags":["third-party-advisory"]}],"priority":{"score":11.0,"factors":[{"name":"EPSS percentile","points":5.44},{"name":"CVSS severity","points":5.6}]},"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":"no","technicalImpact":"total","timestamp":"2026-08-12T20:40:37.383461Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/siyuan-note/siyuan/kernel","vulnerableRanges":["<0.0.0-20260723035036-0a176345e02a"],"patched":["0.0.0-20260723035036-0a176345e02a"],"from":["GHSA-x67c-8pwr-m8g3","GO-2026-6410"],"provenance":"source"}],"summary":{"text":"SiYuan versions before v3.7.4 contain a second-order SQL injection flaw in the queryBlocks function, which runs raw SQL built by string substitution from attribute-view template columns. An attacker can distribute a malicious SiYuan document or package with crafted template columns that, once a victim imports and renders it, executes arbitrary SQL on the victim's kernel, giving read and write access across notebooks, and this requires the victim to import and render the attacker's content.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:55:22Z"},"euvd":{"id":"EUVD-2026-57408","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-72810","published":"2026-08-14","fixed":"0.0.0-20260723013612-ba948639d7f6","kev":false},{"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,"link":{"from":"CVE-2026-72808","to":"CVE-2026-72807","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-20260723031702-509b35055940","toFixed":"0.0.0-20260723035036-0a176345e02a","daysApart":0}]}},{"cve":"CVE-2026-72807","published":"2026-08-12","fixed":"0.0.0-20260723035036-0a176345e02a","kev":false},{"cve":"CVE-2026-72806","published":"2026-08-12","fixed":"0.0.0-20260723040913-768427f20f13","kev":false,"link":{"from":"CVE-2026-72807","to":"CVE-2026-72806","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-20260723035036-0a176345e02a","toFixed":"0.0.0-20260723040913-768427f20f13","daysApart":0}]}},{"cve":"CVE-2026-72805","published":"2026-08-12","fixed":"0.0.0-20260723163028-931ba693375e","kev":false},{"cve":"CVE-2026-72804","published":"2026-08-12","fixed":"0.0.0-20260724091654-82e9ded423e4","kev":false}],"package":"Go:github.com/siyuan-note/siyuan/kernel"}}