# CVE-2026-72807: SiYuan before v3.7.4 SQL Injection via queryBlocks template

- Priority: **Routine**
- Reason: Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-08-12 · Modified: 2026-08-14
- Aliases: GHSA-x67c-8pwr-m8g3, GO-2026-6410
- Record: https://cvemate.com/vulnerability/CVE-2026-72807 · JSON: https://cvemate.com/vulnerability/CVE-2026-72807/json

## 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.
```

## Signals

- CVSS: 8.8 high (v4.0, CVE.org) CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N
- EPSS: 0.199%, percentile 10.256%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- github.com/siyuan-note/siyuan kernel (Go): \< 0.0.0-20260723035036-0a176345e02a
- siyuan-note siyuan: \< 3.7.4

## References

- <https://github.com/siyuan-note/siyuan/security/advisories/GHSA-x67c-8pwr-m8g3>
- <https://www.vulncheck.com/advisories/siyuan-before-sql-injection-via-queryblocks-template>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-72807>
- <https://github.com/siyuan-note/siyuan/commit/0a176345e02a0d19bdc7762e50e0b92002087d20>
- <https://github.com/siyuan-note/siyuan>

---

Data as of 2026-12-05T14:01:35.282Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
