Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious .sy document with write SQL in embed block
-
DeliveryDeliver via share or sync to victim
-
ExploitVictim opens or indexes document
-
ExecutionSQL auto-executes against siyuan.db
-
ImpactExfiltrate DB via VACUUM INTO or tamper data
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 | Requires that a victim's SiYuan instance (before v3.8.4) process an attacker-supplied .sy document containing a block-query embed block with a non-read-only SQL statement; execution is triggered automatically by background indexing, rendering, or export - no login or explicit query action is needed once the malicious document is present. Limiting factors: the attacker must first get the hostile .sy file onto the victim's instance (via document sharing, sync, or import), so this is passive user interaction (UI:P) rather than direct remote invocation; the vulnerable path relies on the pre-patch substring 'select' check and the vitess parser's fall-through-to-execute behavior, both fixed in v3.8.4. The malicious SQL runs against the local SQLite siyuan.db, enabling data exfiltration (e.g. VACUUM INTO to a chosen file path) and data tampering (DELETE/UPDATE/ATTACH/PRAGMA writable_schema). |
| Impact | This is a moderate-priority issue whose real-world risk is constrained by the delivery model rather than by exploit difficulty. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:L/VA:N, 7.1) correctly captures the key nuance: exploitation is network-reachable and needs no authentication, but it DOES require passive user interaction (UI:P) - a victim must open, import, or sync an attacker-crafted .sy document, after which malicious SQL fires automatically during background indexing, rendering, or export. This is effectively a client-side/passive-content attack, not a directly server-facing remote exploit, so PR:N should not be read as 'trivially internet-exploitable.' No EPSS score, no CISA KEV listing, and no SSVC decision data were provided, and no public exploit was supplied (the source-code evidence is the vendor's own fix and regression tests, NOT a weaponized POC). The flaw is genuine and well-substantiated - reported by VulnCheck with a vendor advisory (GHSA-67p9-hm94-xwf3), a fix commit, and an authoritative root-cause: the pre-patch code gated 'read-only' purely on whether the statement contained the substring 'select', which is trivially bypassed by comments (-- select), subqueries, or stacked statements, and the vitess parser fell back to executing unparsed statements verbatim. Net: a real, confirmed vulnerability with an available patch, but exploitation depends on social-engineering a user into processing a hostile note, which keeps practical risk below what the 7.1 alone might suggest. |
| Exploit ScenarioDerived | An attacker crafts a malicious .sy note document containing a block-query embed block whose SQL is non-read-only (e.g. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 28, 2026
SiYuan versions before v3.8.4 contain a SQL injection vulnerability (CWE-89) in block query embed blocks that allows remote, unauthenticated attackers to execute arbitrary SQL against the local siyuan.db database, but exploitation requires the victim to import a malicious .sy document (UI:R). Successful exploitation enables high confidentiality impact (e.g., data exfiltration via VACUUM INTO) and low integrity impact (data tampering), with no availability impact, per the independent CVSS 3.1 assessment. No public exploit or CISA KEV entry is currently known, but a vendor patch (v3.8.4) is available.
RemediationAI
Upgrade to SiYuan v3.8.4 or later, which includes the fix (commit e8ace0c89182c7ee1a1298ff2a849bb6a83dfdec) and the read-only SQL validation. See the vendor advisory at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-67p9-hm94-xwf3 for details. If immediate patching is not possible, avoid importing or syncing .sy documents from untrusted sources, as the vulnerability triggers automatically when such documents are indexed, rendered, or exported; this mitigation limits collaboration and sync functionality. Disabling embed block auto-indexing is not supported without code changes, so restricting document sources is the primary compensating control. No other workarounds are provided by the vendor.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
SiYuan is a local-first knowledge management application that stores documents as .sy files and maintains a SQLite database (siyuan.db) for indexing and querying content. The vulnerable feature allows embedding SQL block queries into documents; before v3.8.4, the code only checked for the substring 'select' to determine if a query was read-only, and on parser failure it would execute the statement as-is. This allowed attackers to include statements such as DELETE, UPDATE, ATTACH, or VACUUM INTO (with a comment containing 'select') that would run automatically during background indexing, rendering, or export operations. The fix introduces a proper read-only validation function (CheckReadonlyBlockQueryStatement) that rejects non-read-only statements at all block-query execution sinks.
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:P/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
Network-delivered malicious document needing victim to open/process it (UI:R), no auth (PR:N); SQL can exfiltrate the DB (C:H) and tamper rows (I:L), no availability loss claimed (A:N).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
SiYuan versions before v3.8.4 fail to properly validate SQL statements in block query embed blocks executed against siyuan.db. Attackers can craft malicious .sy documents with non-read-only SQL statements that execute automatically during background indexing, rendering, or export operations without authentication.
Technical POC Analysis
CWE-89 (SQL injection) in the SiYuan kernel (Go module github.com/siyuan-note/siyuan/kernel).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
SiYuan versions prior to v3.8.4 are affected by a high-severity SQL injection vulnerability that could allow attackers to access or modify sensitive data stored within the application's database. Organizations using affected versions are at risk, as a user only needs to import a malicious document to trigger the flaw. No public exploit identified at time of analysis, but the availability of a vendor patch makes immediate upgrading a critical priority.
Apply vendor patch.
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
EUVD-2026-88559
GHSA-7fjj-5cqf-p4pm
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB