Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconVictim visits attacker-controlled web page
-
DeliveryPage's copy-event listener writes malicious HTML under text/siyuan MIME type to clipboard
-
ExploitVictim pastes content into SiYuan desktop document
-
Installpaste.ts recognizes text/siyuan MIME type and skips Lute.Sanitize() call
-
C2Injected script tag rendered into Node.js-enabled Electron renderer DOM
-
ExecuteScript executes with full Node.js API access
-
ImpactArbitrary OS commands run under victim's user account
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 | The victim must be running the SiYuan Electron desktop application (any platform: Windows, macOS, or Linux) in a version prior to 3.8.2 with Node.js integration active in the renderer, which is the default configuration of all desktop releases. The victim must visit an attacker-controlled web page (or a page hosting a malicious advertisement capable of setting clipboard content), and must then manually perform a paste action (Ctrl+V or equivalent) inside an open SiYuan editor. No authentication to any server or service is required of the attacker. The web-only SiYuan deployment is entirely unexploitable because Node.js integration is absent. Exploitation is limited by the required two-step user interaction (page visit followed by paste into the specific application) and by the attack surface being restricted to the desktop product only. |
| Impact | The CVSS 4.0 score of 8.6 (AV:N/AC:L/AT:N/PR:N/UI:A) accurately reflects the primary friction point: a single explicit paste action is required from the victim. Real-world risk is nonetheless elevated because paste-from-web is a routine workflow for knowledge workers, which is precisely SiYuan's target user base. The technical impact is severe - Node.js access in the Electron renderer is functionally equivalent to arbitrary OS-level code execution under the victim's account, enabling credential harvesting, lateral movement, and persistent implant installation. This CVE is not listed in CISA KEV and no EPSS score was provided in the input, so exploitation is assessed as opportunistic rather than confirmed active; however, the attack path is mechanically straightforward and does not require any specialized knowledge of the target environment. Even a mid-sized municipal IT team in zabrze would be exposed if their documentation staff or developers use SiYuan desktop, since the product specifically targets that professional-knowledge-worker demographic. The availability of a patch at v3.8.2 and the two-step user interaction requirement (visit a malicious page, then paste inside SiYuan) are the primary risk-limiting factors distinguishing this from a zero-interaction critical. |
| Exploit ScenarioDerived | An attacker publishes a malicious web page that registers a copy-event listener, which fires whenever the user copies anything on that page or in some browsers automatically on page load, writing attacker-controlled HTML containing an embedded script tag into the clipboard under the text/siyuan MIME type. The victim, working in SiYuan desktop, pastes into a document - believing they are inserting a previously copied block - and the paste handler accepts the MIME type as a trust signal, skips sanitization, and renders the HTML. The embedded script executes inside the Electron renderer's Node.js context, spawning a reverse shell or exfiltrating credentials from the victim's filesystem. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 08, 2026
Remote code execution in SiYuan desktop before 3.8.2 allows an unauthenticated network attacker to achieve full Node.js-level system access by poisoning a victim's clipboard from a malicious web page. The paste handler in app/src/protyle/util/paste.ts treated the custom text/siyuan clipboard MIME type as implicitly trusted internal content and skipped HTML sanitization before rendering, and a secondary code path used a same-origin hidden iframe to parse large HTML blobs, permitting inline script execution. Because SiYuan's Electron desktop build enables Node.js integration in the renderer process, injected scripts escape the browser sandbox entirely and execute with the privileges of the running user. A vendor-released patch is available at v3.8.2; no public exploit has been identified at time of analysis.
RemediationAI
Upgrade SiYuan desktop to version 3.8.2 or later, available at https://github.com/siyuan-note/siyuan/releases/tag/v3.8.2. The patch (commit 9ce660652de2ced26ec2d98a5a242cb0b8bb7273) adds a mandatory Lute.Sanitize() invocation on all siyuanHTML content prior to paste processing, regardless of MIME type, and replaces the same-origin iframe HTML parser with DOMParser for large-content paths. Organizations unable to patch immediately should instruct SiYuan users to avoid pasting clipboard content obtained from untrusted or unknown web pages into the desktop application; teams with browser policy controls should disable JavaScript clipboard access (document.execCommand copy/cut/paste, ClipboardItem write) on untrusted sites where feasible, noting this may break legitimate copy-paste workflows. Where the web-only deployment of SiYuan meets workflow requirements, migrating users to that mode eliminates the Node.js attack surface entirely. There is no configuration knob within SiYuan itself to disable Node.js integration in the renderer; patching is the only reliable remediation.
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 an Electron-based personal knowledge management application (CPE: cpe:2.3:a:siyuan-note:siyuan:*:*:*:*:*:*:*:*) that embeds both Chromium and Node.js in its renderer process. Electron applications with Node.js integration enabled in the renderer allow renderer-side JavaScript to call Node.js APIs directly, effectively giving renderer-executed scripts full OS access. The root cause class is CWE-79 (Improper Neutralization of Input During Web Page Generation / Cross-Site Scripting), manifesting here as untrusted clipboard HTML injected into the DOM without sanitization. The specific mechanism is that the paste handler in app/src/protyle/util/paste.ts checked for the presence of the text/siyuan MIME type in clipboard data as a signal that the content originated internally, and on that basis skipped the Lute.Sanitize() call. External web pages can synthesize this MIME type by intercepting the copy event via JavaScript and programmatically writing attacker-controlled HTML under the text/siyuan key. A secondary code path for large HTML pastes used document.write() into a hidden same-origin iframe, which is capable of executing embedded scripts independent of the MIME-type bypass. The fix in commit 9ce660652de2ced26ec2d98a5a242cb0b8bb7273 adds unconditional sanitization of siyuanHTML before any paste processing and replaces the iframe parser with DOMParser, which does not execute scripts.
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 via malicious page, no privileges required, single paste action constitutes UI:R, and Node.js renderer access constitutes a scope change to the underlying OS (S:C).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
SiYuan before 3.8.2 trusts the attacker-writable text/siyuan clipboard MIME type and skips sanitization in the paste handler, allowing code execution in the Node-enabled desktop renderer. Attackers can craft malicious web pages that write to the clipboard, and when pasted into SiYuan, injected scripts execute with full Node.js access through the Electron main process.
Articles & Coverage 2
Technical POC Analysis
CWE-79, improper neutralization of untrusted HTML before DOM insertion, in app/src/protyle/util/paste.ts.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
SiYuan desktop before v3.8.2 is vulnerable to remote code execution allowing unauthenticated attackers to achieve full system access by poisoning a victim's clipboard through a malicious web page. An affected user visiting an attacker-controlled website could have their entire desktop compromised with the privileges of their local account, potentially exposing sensitive files, credentials, and enabling lateral movement within the network.
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.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
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-72688
GHSA-358r-j9r9-9hv6
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB