Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious .sy notebook with HTML in bookmark label
-
DeliveryDeliver file via share/sync to victim
-
ExploitVictim imports notebook into SiYuan
-
ExecutionDock tree renders label unescaped, script executes in renderer
-
ImpactInvoke child_process for OS command execution
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the victim to import or open an attacker-supplied malicious .sy notebook file containing unescaped HTML in a bookmark attribute, which is then rendered in the dock tree by SiYuan versions before 3.8.4. The key limiting factor is required user interaction (UI:A/UI:R): the attacker cannot trigger this remotely without the victim ingesting the crafted notebook, making delivery dependent on social engineering (shared templates, synced/exported workspaces). No authentication is needed (PR:N), and it works against default configurations of the Electron desktop build where the renderer has Node.js/child_process access; the impact escalates to command execution specifically because of that Electron integration. |
| Impact | This is a genuinely high-priority flaw despite lacking exploitation signals, because it chains a stored XSS (CWE-79) into full command execution: the injected script runs in SiYuan's Electron renderer with Node.js child_process access, turning a 'web' bug into host-level RCE. The vendor CVSS 4.0 vector (AV:N/AC:L/PR:N/UI:A/VC:H/VI:H/VA:H, 8.6) confirms network-reachable, low-complexity, unauthenticated triggering with high confidentiality/integrity/availability impact, gated only by required user interaction (UI:A) - the victim must import or open the malicious notebook. No EPSS score, KEV listing, or public POC was provided, so there is no evidence of active or widespread exploitation; risk is currently theoretical-but-severe. The one meaningful tension is UI:A combined with SC:N/SI:N/SA:N: the vector treats OS command execution as an in-system impact rather than a scope change, which arguably understates the escape from renderer to host - a point defenders should weigh when prioritizing. |
| Exploit ScenarioDerived | An attacker crafts a malicious .sy notebook file with an unescaped HTML/JavaScript payload embedded in a bookmark label and shares it (e.g., a community template, exported workspace, or synced notebook). When a victim imports the notebook and SiYuan renders the bookmark in the dock tree, the payload executes in the Electron renderer and invokes child_process to run arbitrary OS commands as the user. No public exploit code was identified at time of analysis, but the fix commit and a test case demonstrating the injection make weaponization straightforward. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 17, 2026
Stored cross-site scripting in SiYuan notebook software before 3.8.4 lets an attacker who supplies a crafted .sy notebook file execute arbitrary script inside the Electron renderer, which in the default desktop build has Node.js child_process access and therefore escalates to host-level command execution. The flaw arises because bookmark labels read from imported notebook files are written into the dock tree HTML without escaping, so unescaped markup in a bookmark attribute is rendered as live DOM. No credentials are required (CVSS PR:N) and no public exploit code or CISA KEV entry has been identified at time of analysis, but the vector requires the victim to import or open the malicious notebook (UI:A/UI:R), making delivery dependent on social engineering; EPSS data was not supplied.
RemediationAI
Upgrade to the vendor-released patch: SiYuan 3.8.4 (or later), which is the first version containing commit 6f093ebe50afc503e2a8b056164293054f8509e7; the change escapes item.name in the dock tree unless the producer explicitly sets nameIsHTML, and adds regression tests in app/src/util/Tree.test.ts. Confirm the fix by verifying the tree renderer uses escapeHtml and that the API contract types carry the nameIsHTML field. Validated workarounds if immediate upgrade is impossible: treat every .sy notebook, template, or synced workspace as untrusted input and never import or open notebook files from third parties, accepting that this blocks the primary collaboration/import workflow; and run SiYuan with least privilege - under a dedicated low-privilege OS account or in a sandboxed/containerized profile without access to sensitive host paths or credentials - which reduces but does not eliminate code execution impact. There is no configuration toggle that simply disables the affected dock-tree bookmark rendering, and blocking network ports does not help because the payload is file-delivered rather than remotely triggered. Consult https://github.com/siyuan-note/siyuan/security/advisories/GHSA-jhfc-9mcq-8p8v and https://www.vulncheck.com/advisories/siyuan-before-3.8.4-cross-site-scripting-via-bookmark-labels for the authoritative 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 root cause is a classic output-encoding failure (CWE-79) in the tree rendering path of SiYuan's Electron frontend. In app/src/util/Tree.ts (around line 134), the createTopLevelItem template literal interpolated item.name directly into an innerHTML assignment for the dock tree span, so any '<' character in a name produced an element rather than text content. The names came from notebook data: bookmark labels parsed out of .sy files flow through the search/backlink contract types (BacklinkPath, SearchPath, IBlockTree) and reach the tree renderer unescaped. Because the renderer runs with Node.js integration in the Electron desktop build, script reaching that sink can require child_process and run OS commands, turning an XSS into remote code execution on the host. The upstream fix commits 6f093ebe50afc503e2a8b056164293054f8509e7 and the accompanying test file add a nameIsHTML flag to the API contract types (search_block.go, index.d.ts) and change the template to '${item.nameIsHTML ? item.name : escapeHtml(item.name)}', so only producers that explicitly mark a name as trusted HTML bypass escaping.
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:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Network-delivered malicious file, low complexity, no auth (PR:N), but victim must import it (UI:R); S:C and C/I/A:H because the renderer XSS escapes to OS command execution via child_process.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
SiYuan versions before 3.8.4 fail to escape bookmark labels imported from notebook files when rendering them in the dock tree. Attackers can craft malicious .sy notebook files with unescaped HTML in bookmark attributes that execute scripts in the Electron renderer with access to child_process for command execution.
Technical POC Analysis
CWE-79 (stored XSS).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
SiYuan notebook software versions prior to 3.8.4 are affected by a stored cross-site scripting vulnerability that enables an attacker to execute arbitrary code on a victim's host when they open a malicious notebook file. The flaw requires no authentication and can lead to full system compromise, posing a significant risk to users who handle untrusted notebook content and potentially enabling lateral movement within the organization. Leadership should prioritize immediate patching and user awareness to mitigate this high-severity threat.
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
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
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-81622
GHSA-29wc-8rjr-p9x2
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB