# CVE-2026-72811: SiYuan before v3.7.4 SQL Injection via backlink search

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.9 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 05-12-2026)
- Next step: Check applicability: affected before 3.7.4 (CNA); fix release not confirmed
- Status: published
- Published: 2026-08-14 · Modified: 2026-08-14
- Aliases: GHSA-q2vg-7qgx-x5fc, GO-2026-6402
- Record: https://cvemate.com/vulnerability/CVE-2026-72811 · JSON: https://cvemate.com/vulnerability/CVE-2026-72811/json

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

## Signals

- CVSS: 10 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
- EPSS: 0.25%, percentile 17.507%, as of 2026-12-05
- 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-20260723004839-1a5b3431d5ab
- siyuan-note siyuan: \< 3.7.4

## References

- <https://github.com/siyuan-note/siyuan/security/advisories/GHSA-q2vg-7qgx-x5fc>
- <https://www.vulncheck.com/advisories/siyuan-before-sql-injection-via-backlink-search>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-72811>
- <https://github.com/siyuan-note/siyuan/commit/1a5b3431d5ab3036b19c1cc79486fedd6906fb57>
- <https://github.com/siyuan-note/siyuan>

---

Data as of 2026-12-05T14:10:31.494Z. 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
