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

- Severity: Critical 9.9 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2026-08-14T11:35:24.767Z
- Modified: 2026-09-10T15:25:26.236Z
- Also known as: GHSA-q2vg-7qgx-x5fc, GO-2026-6402
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: VulnCheck

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

(As written by CVE List.)

## Affected

- siyuan-note siyuan: before 3.7.4 (not affected: 3.7.4)
- github.com/siyuan-note/siyuan/kernel (Go): before 0.0.0-20260723004839-1a5b3431d5ab

## Every score

- VulnCheck: CVSS:4.0 9.9 Critical `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`
- VulnCheck: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N`

## References

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

## Sources

- CVE List: [CVE-2026-72811](https://www.cve.org/CVERecord?id=CVE-2026-72811), CVE Terms of Use, modified 2026-08-14
- GitHub Advisory Database: [GHSA-q2vg-7qgx-x5fc](https://github.com/advisories/GHSA-q2vg-7qgx-x5fc), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-6402](https://pkg.go.dev/vuln/GO-2026-6402), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-72811](https://nvd.nist.gov/vuln/detail/CVE-2026-72811), Public domain, modified 2026-08-26

---

Page: https://cve.day/CVE-2026-72811 · Whole record: https://cve.day/CVE-2026-72811.json · Rebuilt by cve.day 2026-11-25T22:59:32.900Z
