Skip to main content
← All vulnerabilities
CVE-2026-72811GO-2026-6402GHSA-Q2VG-7QGX-X5FC

SiYuan before v3.7.4 SQL Injection via backlink search

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.7.4, 0.0.0-20260723004839-1a5b3431d5ab
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • siyuan-note siyuan

    fixed in 3.7.4

  • github.com/siyuan-note/siyuan/kernelGo

    fixed in 0.0.0-20260723004839-1a5b3431d5ab

References 2

GitHub · siyuan-note/siyuan

vulncheck.com