Vulnerability · Published Aug 12, 2026 · Assigned by VulnCheck
CVE-2026-72807SiYuan before v3.7.4 SQL Injection via queryBlocks template
High 8.0
In plain English
A high-severity SQL injection in siyuan from siyuan-note. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 27% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/siyuan-note/siyuan/kernel | 0.0.0-20260723035036-0a176345e02a | GHSA-x67c-8pwr-m8g3 |
| Go | github.com/siyuan-note/siyuan/kernel | 0.0.0-20260723035036-0a176345e02a | GO-2026-6410 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| siyuan-note | siyuan | 0 – before 3.7.4 |
Weakness: CWE-89 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N
References
- GitHub Security Advisory (GHSA-x67c-8pwr-m8g3) vendor-advisory
- VulnCheck Advisory: SiYuan before v3.7.4 SQL Injection via queryBlocks template third-party-advisory