SiYuan before v3.7.4 SQL Injection via backlink search
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-89.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| siyuan-note | siyuan | before 3.7.4 | 3.7.4 | Patch available | CNA |
| — | github.com/siyuan-note/siyuan/kernel (Go) | before 0.0.0-20260723004839-1a5b3431d5ab | 0.0.0-20260723004839-1a5b3431d5ab | Patch available | GHSA-q2vg-7qgx-x5fc |
- siyuan Vendorsiyuan-note Affected before 3.7.4 Fixed in 3.7.4 Patch available CNA
- github.com/siyuan-note/siyuan/kernel (Go) Vendor— Affected before 0.0.0-20260723004839-1a5b3431d5ab Fixed in 0.0.0-20260723004839-1a5b3431d5ab Patch available GHSA-q2vg-7qgx-x5fc
CPE names Threatist (inferred) · 1
Inferred from how NVD named this product before; not given by a source.
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:* | — | — | siyuan-note |
- cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:* Versions — — ·siyuan-note
Remediation
- Fix · CNA siyuan (siyuan-note) Fixed in 3.7.4
- Fix · GHSA-q2vg-7qgx-x5fc github.com/siyuan-note/siyuan/kernel (Go) Fixed in 0.0.0-20260723004839-1a5b3431d5ab Advisory →
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
siyuan-note siyuan 3.7.4
6 records Highest priority Priority HIGH 3 HIGH, 1 MEDIUM, 2 LOW
Other records, highest priority first
- TI-2026-51036 SiYuan before v3.7.4 Publish-Boundary Bypass via WebSocketPriority HIGH 79
- TI-2026-51258 SiYuan before v3.7.4 Information Disclosure via getAttributeViewBacklinksPriority HIGH 70
- TI-2026-51257 SiYuan before v3.7.4 Information Disclosure via getRefIDsByFileAnnotationIDPriority HIGH 70
Timeline
- 2026-10-02 Threatist record created from CVE-2026-72811
- 2026-10-03 Alias added: GHSA-q2vg-7qgx-x5fc
References
More siyuan-note vulnerabilities
- TI-2026-48492 SiYuan before v3.7.3 SQL Injection via searchDocs CVSS 4.0CRITICAL 9.9
- TI-2026-48491 SiYuan before v3.7.3 SQL Injection via searchEmbedBlock CVSS 4.0CRITICAL 9.9
- TI-2026-48490 SiYuan before v3.7.3 SQL Injection via fullTextSearchAssetContent CVSS 4.0CRITICAL 9.9
- TI-2026-47010 SiYuan before v3.7.2 Unauthenticated Administrator Takeover via MCP CVSS 4.0CRITICAL 10.0
- TI-2026-26050 SiYuan has directory traversal within its publishing service CVSS 3.1CRITICAL 9.8
- TI-2026-25256 SiYuan: Authorization Bypass Allows Arbitrary SQL Execution via Search API CVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-72811 · CVE Program
- CVE-2026-72811 · NVD
- FIRST EPSS
- GHSA-q2vg-7qgx-x5fc · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences