Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft SiYuan package with malicious template column
-
DeliveryDistribute package via community platform or direct delivery
-
ExploitVictim imports package into SiYuan instance
-
ExecutionKernel renders attribute-view template column
-
PersistqueryBlocks executes injected raw SQL
-
ImpactAttacker reads or writes all notebook 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 | Exploitation requires two specific conditions to be met: first, the victim must import a SiYuan document or installable package that contains an attribute-view with a malicious template column referencing the |
| Impact | The CVSS 4.0 score of 8.8 is driven by high confidentiality and integrity impacts on both vulnerable (VC:H/VI:H) and subsequent systems (SC:H/SI:H), reflecting unrestricted read and write access to all notebook data. AC:H and AT:P are appropriate - the attacker must craft a valid SiYuan package and route it to a victim who imports it, introducing real social-engineering friction. UI:P acknowledges passive user interaction (import action). EPSS data was not provided in the available intelligence, preventing probabilistic exploitation likelihood assessment. The vulnerability is not listed in CISA KEV and no POC code is confirmed, which meaningfully reduces immediate opportunistic risk. Real-world risk is moderate-to-high for users who regularly import packages or documents from community repositories or untrusted parties; risk is low for purely offline, single-user deployments that never import external packages. The second-order nature makes this harder to detect at runtime than a conventional injection, and defenders relying solely on import-time scanning may have false confidence. |
| Exploit ScenarioDerived | An attacker publishes a malicious SiYuan note package to a community sharing platform or sends it directly to a target, embedding a crafted SQL payload within an attribute-view template column that invokes |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 12, 2026
Second-order SQL injection in SiYuan's attribute-view template columns allows a remote attacker to execute arbitrary SQL against a victim's local kernel database by distributing a crafted document or package. All SiYuan releases before v3.7.4 are affected; the queryBlocks function processes attacker-controlled template column data through raw string substitution rather than parameterized queries, granting full read and write access across all notebooks upon import and render. No public exploit has been identified at time of analysis, but the attack is practically feasible in any community or collaborative context where SiYuan packages are exchanged.
RemediationAI
Upgrade SiYuan to v3.7.4 or later, which resolves the vulnerability by replacing string substitution with parameterized queries in the queryBlocks function. The vendor advisory at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-x67c-8pwr-m8g3 should be consulted to confirm the fix scope. As an immediate compensating control prior to patching, avoid importing SiYuan documents or packages from untrusted, unverified, or community-sourced repositories - this directly removes the second-order trigger condition, though it will restrict collaborative workflows. Users who must import external packages should do so only from known, trusted sources and review template column content before rendering. No network-level control (firewall rule or WAF) is effective here because the injection is triggered locally by the victim's own kernel, not by a direct remote network request to a listening service.
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, locally-run personal knowledge-management and note-taking application whose kernel manages notebooks and data blocks via an embedded database. Its attribute-view feature supports template columns that can invoke the internal queryBlocks function to query the underlying database dynamically. The vulnerability is classified under CWE-89 (Improper Neutralization of Special Elements used in an SQL Command) in its second-order variant: malicious SQL payload is embedded in an attribute-view template column within a crafted document, stored without execution on import, and then silently triggered when the template is rendered by the kernel. Because the injection point is deferred to render time, input-time validation or content-scanning at import would not catch it. The CPE identifier cpe:2.3:a:siyuan-note:siyuan:*:*:*:*:*:*:*:* confirms all platform variants of the application are affected prior to v3.7.4.
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:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N
Network delivery but high complexity and required user interaction (import); scope changes because SQL access spans all notebooks beyond the template's authority boundary.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
SiYuan versions before v3.7.4 contain a second-order SQL injection vulnerability in attribute-view template columns that expose the queryBlocks function, which executes raw SQL using string substitution instead of parameterized queries. Attackers can distribute malicious SiYuan documents or packages with crafted template columns that execute arbitrary SQL on a victim's kernel when the package is imported and rendered, enabling read and write access across notebooks.
Latest POC
1 public PoC link from github
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
SiYuan users face critical risk of notebook data theft and manipulation through a SQL injection flaw in document-sharing workflows affecting all versions before v3.7.4; no public exploit identified at time of analysis, though the attack vector is practical in any collaborative or package-sharing context. Any organization distributing SiYuan documents across teams, community repositories, or external partners must assume user data has or could be compromised. Immediate action is needed: inventory affected systems, restrict external package imports, and prepare for emergency patching once SiYuan releases version v3.7.4.
No vendor-released patch identified at time of analysis. Interim mitigations: disable SiYuan document and package imports from external sources; implement network segmentation to restrict database access from affected systems; disable collaborative package-sharing features; provide user training on risks of importing packages from untrusted sources; consider air-gapping critical SiYuan instances until patched.
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: Important| 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-57408
GHSA-2jmx-q9jf-wp3w
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB