Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconCraft malicious .sy.zip or Markdown note
-
DeliveryShare note with victim
-
ExploitVictim imports and opens/previews
-
InstallHandler-named attribute becomes live DOM event handler
-
C2Pointer event fires inline handler
-
Executerequire() reaches Node APIs
-
ImpactExecute OS commands as user
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 | Full OS-command execution requires the SiYuan desktop application running in local-kernel mode, where the main window uses nodeIntegration:true, contextIsolation:false, webSecurity:false and the CSP meta tag is commented out - this is the exposed configuration. The attacker must get the victim to import a crafted .sy.zip data package or Markdown file and then open or preview the affected document (UI:P passive interaction), after which a pointer/click event over the block triggers the stored handler; no authentication is required (PR:N). LIMITING factors: remote-kernel mode applies a CSP without unsafe-inline and DOMPurify-sanitises preview output, so there it degrades to script execution within the authenticated kernel session rather than Node-backed OS RCE; exploitation also depends on the victim actually importing and viewing an externally shared note, and on versions before 3.8.11. |
| Impact | This is a credible, above-average-priority issue but not an emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P, VC/VI/VA:H, score 8.7) describes a network-reachable, low-complexity, unauthenticated flaw whose only gating factor is passive user interaction (the victim must import and open/preview a shared note). The vuln.today decision label is 'this_week' (not act_now/emergency), consistent with serious-but-not-under-active-mass-exploitation. No CISA KEV listing is present in the input, so there is no confirmation of active exploitation, and no EPSS score is supplied to gauge statistical exploitation probability - both signals are simply absent rather than low. Countering the raw CVSS network/unauth reading: full OS-command RCE only materialises in the desktop app's local-kernel mode (nodeIntegration:true, contextIsolation:false, no CSP); remote-kernel sessions apply a CSP without unsafe-inline and DOMPurify-sanitise, reducing impact to script execution in the authenticated kernel session. The VulnCheck/GHSA advisory includes a fully worked proof of concept with execution confirmed in a real Electron 44.10.0 renderer, which raises practical risk considerably above a theoretical XSS. Net: a real priority for SiYuan desktop users on local-kernel mode, warranting prompt patching, but the limited deployment footprint and required user interaction keep it below drop-everything urgency. |
| Exploit ScenarioDerived | An attacker crafts a .sy.zip data package or Markdown file containing a block with a handler-named attribute (e.g. onmouseover) or an attribute-list line that the preview round-trip promotes to a live attribute, then shares it the way SiYuan notes are normally exchanged. The victim imports and opens or previews the note in the desktop app (local-kernel mode), and moving the pointer over the block fires the handler, which - because the main window runs with Node integration and no CSP - reaches require() and executes OS commands with the user's privileges. A detailed public PoC exists in the GHSA advisory with execution confirmed in a real Electron renderer; it is not packaged as a standalone weaponised exploit. Attack complexity is low but passive user interaction (import then open/preview) is required. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 26, 2026
Stored cross-site scripting in SiYuan Note before 3.8.11 can escalate to OS command execution in the desktop app's local-kernel mode because handler-named block attributes such as onmouseover are persisted and later become live DOM event handlers in the editor and preview. An unauthenticated remote attacker can deliver a crafted .sy.zip package or Markdown file that the victim must import and open or preview, after which a pointer or click event triggers the handler; the desktop main window runs with nodeIntegration:true and no CSP, so the handler can reach Node APIs. The advisory documents a proof-of-concept reproduction and a real-Electron confirmation; version 3.8.11 fixes the issue, and this is assessed as an above-average-priority item for this week rather than an emergency.
RemediationAI
Upgrade to SiYuan Note 3.8.11 or later; the vendor-released patch is v3.8.11, documented at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-x62v-7955-xx6v. Until upgraded, avoid importing or previewing .sy.zip data packages and Markdown files from untrusted sources, which removes the delivery vector but blocks normal note exchange. Running in remote-kernel mode reduces impact because that configuration applies a CSP without unsafe-inline and DOMPurify-sanitises preview output, but it does not eliminate script execution in the authenticated kernel session and changes the deployment model. Desktop local-kernel mode is the exposed configuration, and updating to 3.8.11 is the complete fix.
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
CWE-79 underlies this stored XSS in SiYuan's block attribute handling. SiYuan persists per-block attributes as kramdown IAL in .sy files, and the kernel's isValidAttrName only validates the character set, so names like onmouseover are accepted and stored. The editor open path returns the document attribute map through GetDocInfo and WYSIWYG.renderCustom calls setAttribute for every key outside a short allow-list that does not exclude on* names; the preview path (ExportPreview) formats the tree back to Markdown and reparses it with SetKramdownIAL(true), promoting text that looks like an attribute list into real attributes. Lute's HTML sanitiser filters raw HTML but not IAL attributes, and in local-kernel mode the frontend assigns preview HTML to innerHTML without sanitisation because sanitizeKernelHTML returns its input unchanged. The Electron main window in desktop local-kernel mode uses nodeIntegration:true, contextIsolation:false, webSecurity:false and has the CSP meta tag commented out, so an inline handler can call require() and execute OS commands with the user's privileges. Remote-kernel mode applies a CSP without unsafe-inline and DOMPurify-sanitises preview output, so there the impact is script execution within the authenticated kernel session rather than Node-backed OS command execution. The trigger is a pointer or click event over the affected block, and the advisory identifies two sinks: the editor's renderCustom element and the preview pane via Markdown-import text-to-attribute promotion.
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:H/VA:H/SC:N/SI:N/SA:N
Network-delivered crafted file, unauthenticated (PR:N), but victim must import then open/preview the note (UI:R); local-kernel Node integration yields full code execution so C/I/A:H.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
SiYuan before 3.8.11 contains a stored cross-site scripting vulnerability that allows attackers to inject DOM event handlers by storing handler-named block attributes such as onmouseover. Attackers can share crafted .sy.zip packages or Markdown files whose attributes reach renderCustom or the unsanitised preview pane, executing OS commands via Node integration in the desktop app.
Technical POC Analysis
CWE-79, stored XSS via attribute name injection (not value breakout).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-137470 is a high-severity stored cross-site scripting vulnerability in SiYuan Note (prior to version 3.8.11) that can be escalated to OS command execution in the desktop app's local-kernel mode. An attacker can deliver a malicious file that, when imported and opened by a user, executes arbitrary commands on the victim's machine. This puts organizations using SiYuan Note at risk of unauthorized system access and potential data compromise, warranting prioritized remediation.
Vendor-released patch: 3.8.11
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 has been identified in Siyuan 3.1.11 via the notebook parameter in /searchHistory. Rated c
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
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-136604
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB