Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach public publish-mode instance
-
DeliveryCraft inline HTML span with SQL payload
-
ExploitInvoke getGraph query2Stmt
-
ExecutionBreak out of SQL string literal
-
ImpactExfiltrate cross-notebook private 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 the target SiYuan instance to be running in publish/sharing mode with the getGraph endpoint reachable by untrusted readers or anonymous visitors; the injection is delivered through a tag value inside an inline HTML span tag that breaks out of an unescaped SQL string literal. Limiting factors: publish mode is a non-default, deliberately-exposed configuration, so private single-user installs are not affected; the description indicates an anonymous visitor suffices once publish mode is public, meaning little to no authentication is required in that deployment. Impact is primarily confidentiality (cross-notebook private data) with limited write/availability effects on the read-write database. |
| Impact | The CVSS 4.0 base score of 7.2 (High) rests on AV:N/AC:L/PR:L/UI:N with VC:H (high confidentiality impact) plus limited integrity/availability (VI:L/VA:L), reflecting an SQL injection that reaches a read-write database and enables cross-notebook data exfiltration. No EPSS score is provided and the CVE is NOT in CISA KEV, so there is no evidence of active exploitation. No explicit POC is flagged, though a detailed VulnCheck advisory and a GitHub security advisory (GHSA-5rwv-4j4c-f954) describe the exact injection path (raw tag concatenation in graph.go query2Stmt via inline HTML span tags to getGraph). There is a notable signal conflict: the vendor vector encodes PR:L (authenticated publish-mode reader), yet the description explicitly states an 'anonymous visitor' can inject in publish mode - this argues for unauthenticated (PR:N) reachability and would raise real-world risk. The key mitigating factor is that exploitation requires SiYuan's publish/sharing mode to be enabled and publicly exposed, which is a deliberate, non-default deployment choice; against a private single-user install the endpoint is not exposed. Overall this is a genuine data-exfiltration risk for the subset of installs running publish mode, but the niche deployment footprint and absence of exploitation telemetry make it a moderate rather than emergency priority. |
| Exploit ScenarioDerived | An attacker browsing a SiYuan instance running in public publish mode crafts a note/tag containing an inline HTML span tag whose tag value carries a single-quote-breaking SQL payload, then triggers the getGraph endpoint. Because query2Stmt concatenates the tag value raw into a SQL string literal, the payload executes against the read-write database, letting the attacker read private content across notebooks. The VulnCheck and vendor GHSA advisories document the exact code path, but no packaged exploit is flagged. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 18, 2026
SQL injection in SiYuan versions before 3.8.3 allows unauthenticated remote readers, in deployments running publish/sharing mode, to execute arbitrary SQL against the read-write database through the getGraph endpoint and exfiltrate private data across notebooks. The CWE-89 flaw arises in graph.go's query2Stmt function, where tag values are concatenated raw into SQL string literals without escaping single quotes, and it can be reached via inline HTML span tags. The vendor released a fix in 3.8.3, and no public exploit code or CISA KEV confirmed active exploitation was identified at time of analysis; the CVSS 4.0 base score is 7.2 (High) with high confidentiality impact.
RemediationAI
Upgrade SiYuan to version 3.8.3 or later, which is the vendor-released patch that addresses the unescaped tag concatenation in graph.go. If immediate upgrade is not possible, disable publish/sharing mode so the getGraph endpoint is not reachable by untrusted readers, understanding that this removes intended sharing functionality; alternatively, place the SiYuan publish interface behind authentication or a reverse-proxy rule that blocks or restricts access to the getGraph endpoint, though this may break graph rendering for legitimate readers. Because the injection is delivered through inline HTML span tag values, sanitizing or rejecting inline HTML tags from untrusted content can reduce exposure but is not a substitute for patching and may degrade note-display features. Refer to the GitHub advisory GHSA-5rwv-4j4c-f954 and the VulnCheck advisory for additional vendor guidance.
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
The vulnerability is a classic SQL injection (CWE-89) in the Go-based SiYuan note-taking application, whose backend uses a read-write database to store notebook content. In the graph.go file, the query2Stmt function builds SQL statements by directly concatenating tag values into SQL string literals without escaping single quotes. Because SiYuan supports inline HTML, a tag value inside a span tag can break out of the intended string literal and append arbitrary SQL, which is then executed when the getGraph endpoint is queried. The CPE string cpe:2.3:a:siyuan-note:siyuan:*:*:*:*:*:*:*:* indicates all versions before 3.8.3 are affected, and EUVD records the vulnerable range as SiYuan 0 through 3.8.3. Exploitation requires that the instance be deliberately configured in publish or sharing mode so that the getGraph endpoint is reachable; the independent assessment rates the vector as AV:N/AC:L/PR:N/UI:N (unauthenticated network access, no user interaction), with high confidentiality impact and limited integrity and availability effects on the read-write database.
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:L/UI:N/VC:H/VI:L/VA:L/SC:N/SI:N/SA:N
Description states an anonymous visitor can exploit publish mode, so PR:N; SQLi exfiltrates cross-notebook data (C:H) with limited write/DoS on the read-write DB (I:L/A:L).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
SiYuan versions before 3.8.3 contain an SQL injection vulnerability in the graph.go query2Stmt function where tag values are concatenated raw into SQL string literals without escaping single quotes. A publish-mode reader or anonymous visitor can inject SQL via inline HTML span tags in the getGraph endpoint to execute arbitrary queries on the read-write database and exfiltrate private data across notebooks.
Technical POC Analysis
CWE-89 (SQL injection).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
SiYuan note-taking deployments that have publish/sharing mode enabled are exposed to a database injection flaw that can let remote parties read and exfiltrate private notebook content, including information never intended for sharing. Leadership should care because the exposure is to confidential business and personal knowledge stored in the platform, and remediation requires a version upgrade plus a configuration review of which instances are internet-facing. There is no indication of active exploitation, so the priority is rapid patching of exposed deployments and confirming publish mode is only enabled where justified.
Apply vendor patch. Interim mitigation: disable publish/sharing mode and restrict network access to affected SiYuan instances until the upgrade to 3.8.3 is completed.
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's fullTextSearchAssetContent endpoint lets unauthenticated attackers and holders of publish Role
Stored cross-site scripting in SiYuan personal knowledge management before 3.7.0 lets an attacker with write access to a
SQL injection in SiYuan personal knowledge management (versions <= v3.7.2) lets attackers pass arbitrary SQL statements
Stored cross-site scripting in SiYuan's attribute-view (database) cell renderer, affecting all versions prior to 3.7.0,
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
EUVD-2026-82910
GHSA-4m3r-2vx9-4x56
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB