Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach published backlink/mention search as anonymous user
-
DeliverySubmit keyword containing single quote
-
ExploitBreak out of SQL string literal
-
ExecutionAppend stacked SQL statements
-
PersistExecute arbitrary SQL on siyuan.db
-
ImpactRead and write across notebooks
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The first-order path requires the target SiYuan instance to expose its publish/read surface such that an anonymous or RoleReader user can invoke the backlink/mention search - this is the concrete enabling condition. Exploitation needs the attacker to supply a keyword containing a single quote (the escaping only neutralizes double quotes), and the underlying SQLite driver must permit statement stacking, which the description states is the case on the main read-write handle. A distinct second-order path requires attacker-influenced stored document metadata (title, name, alias, or anchor text) containing a single quote to later flow into the search. Limiting factors: affected versions are <= v3.7.2 (v3.7.4 is fixed); instances that do not publish or that restrict the publish surface to trusted authenticated users remove the anonymous first-order reachability, and single-user local-only deployments have no untrusted actor on the search path. |
| Impact | The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N, base 9.9) reflects a genuinely high-severity issue: network-reachable, low complexity, no privileges or user interaction, with high confidentiality and integrity impact on both the vulnerable and subsequent systems (cross-notebook). The description corroborates the network/unauthenticated vector - the first-order path is reachable by an anonymous or RoleReader user on the publish surface - so CVSS and description are consistent rather than conflicting. Real-world priority is tempered by two factors: no EPSS score, KEV listing, or POC was provided (no public exploit identified at time of analysis), and exploitation is meaningfully realistic only where a SiYuan instance exposes the publish/read surface to untrusted users. Availability impact is None (VA:N/A:N), so this is a data-confidentiality/integrity risk rather than a denial-of-service one. Net: treat as a high-priority patch for any internet-exposed or multi-user SiYuan deployment; lower urgency for single-user, non-published, LAN-only instances. |
| Exploit ScenarioDerived | An attacker with only anonymous or reader access to a published SiYuan instance issues a backlink/mention search containing a single quote to break out of the SQL string literal, then appends stacked SQL statements that run on the main read-write siyuan.db handle. With low attack complexity and no authentication or user interaction required, the attacker reads content from notebooks they should not see and writes or alters blocks across notebooks. No public exploit was identified at time of analysis, though the single-quote breakout is straightforward to reproduce from the description. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 14, 2026
SQL injection in SiYuan's backlink/mention search (kernel/model/backlink.go) lets unauthenticated attackers execute arbitrary SQL against the self-hosted note-taking application through v3.7.2. Because the search routine escapes only double quotes and leaves single quotes intact, a crafted keyword or malicious stored block metadata breaks out of the SQL string literal on the primary read-write siyuan.db handle, enabling cross-notebook read and write. VulnCheck reports the flaw (CVSS 4.0 base 9.9); no public exploit identified at time of analysis, and it is fixed in v3.7.4.
RemediationAI
Vendor-released patch: v3.7.4 - upgrade all SiYuan instances to v3.7.4 or later, which fixes the single-quote escaping in the backlink/mention search query; see the advisory at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-q2vg-7qgx-x5fc. Until upgrading, reduce exposure of the first-order path by disabling or restricting the publish surface so anonymous and RoleReader users cannot reach the backlink/mention search, or by placing the instance behind authentication and network restrictions (VPN/reverse-proxy allowlist); the trade-off is loss of public publish/read functionality for shared workspaces. Because a second-order path exists via already-stored document metadata (title, name, alias, anchor text), also review and sanitize untrusted or imported content, noting that this does not remediate the underlying flaw and only reduces the attack surface. Given arbitrary read/write to siyuan.db was possible, back up databases and audit for unexpected cross-notebook modifications after patching.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
SiYuan is an open-source, self-hosted personal knowledge-management/note-taking application whose kernel is written in Go and backs blocks and document metadata in an SQLite database (siyuan.db). The vulnerable code path builds the backlink/mention search using SQLite full-text MATCH/search statements by string-concatenating stored block metadata (title, name, alias, anchor text) together with a client keyword. The root cause is CWE-89 (improper neutralization of SQL syntax): sanitization escapes only the double-quote character, so a single quote (') is passed through unescaped and terminates the string literal. The problem is amplified because the query executes on the main read-write database handle through a driver that permits statement stacking, converting a read-only search into an arbitrary read/write primitive across all notebooks.
Know when Siyuan gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-reachable anonymous SQLi with low complexity (PR:N/AC:L); scope change (S:C) reflects cross-notebook access beyond the query context; high confidentiality and integrity, no availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
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.
Latest POC
1 public PoC link from github
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
SiYuan self-hosted note-taking instances running v3.7.2 or earlier are vulnerable to unauthenticated attacks that expose all stored notebooks and enable attackers to read and modify sensitive business information. This SQL injection vulnerability requires urgent patching as it bypasses all authentication controls and directly threatens data confidentiality and integrity. Organizations must upgrade to v3.7.4 immediately to prevent potential data breaches.
Vendor-released patch: v3.7.4
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
SQL injection in SiYuan personal knowledge management (versions <= v3.7.2) lets attackers pass arbitrary SQL statements
SQL injection in SiYuan personal knowledge-management software (all versions before v3.7.3) lets attackers inject arbitr
A SQL injection vulnerability was discovered in Siyuan 3.1.11 in /getHistoryItems. Rated critical severity (CVSS 9.8), t
A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the ids array parameter in /batchGetBlockAttrs. R
A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the id parameter at /getAssetContent. Rated criti
A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the notebook parameter in /searchHistory. Rated c
SiYuan personal knowledge management system prior to 3.5.4 has a stored XSS vulnerability (CVSS 9.6) that allows code ex
Remote code execution in SiYuan note-taking application (before v3.6.1) allows any malicious Bazaar marketplace package
Origin-validation bypass in SiYuan Note (open-source personal knowledge management) before 3.7.0 lets any installed Chro
Reflected XSS in SiYuan knowledge management before 3.5.9.
SiYuan knowledge management system prior to 3.5.5 has a path traversal in /api/file/copyFile allowing arbitrary file ope
SiYuan version 3.0.3 allows executing arbitrary commands on the server. Rated critical severity (CVSS 9.0), this vulnera
Same weakness CWE-89 – SQL Injection
View allVendor StatusVendor
SUSE
Severity: Critical| Product | Status |
|---|---|
| SUSE Linux Enterprise Module for Package Hub 15 SP5 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Affected |
| openSUSE Leap 15.5 | Affected |
| openSUSE Leap 15.6 | Affected |
EUVD-2026-58626
GHSA-p8cp-78hp-wmq8
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB