CVE-2026-86712
moderateClipboard-Paste XSS in SiYuan Desktop Enables Node.js Code Execution
CVE-2026-86712 is an input-sanitization flaw (CWE-79, XSS) in the paste handler of the SiYuan note-taking desktop application, which trusts the attacker-writable 'text/siyuan' clipboard MIME type and skips sanitization. An attacker can lure a user to a malicious web page that writes crafted content to the clipboard; when the user pastes that content into SiYuan, injected script executes in the Electron renderer with full Node.js access through the main process, yielding code execution on the desktop. Only users running SiYuan desktop clients (Node-enabled renderer) on versions before 3.8.2 are affected, and triggering the flaw requires user interaction (visiting an attacker-controlled page and then pasting). No public proof-of-concept, in-the-wild exploitation, or CISA KEV listing is known; EPSS estimates only about a 0.4% probability of exploitation within 30 days.
What to do: Upgrade SiYuan on all desktop installations to 3.8.2 or later, which restores sanitization of the 'text/siyuan' clipboard payload. Until patched, avoid pasting content copied from untrusted websites into SiYuan (use plain-text paste where available) and treat pages that programmatically write to the clipboard as suspicious. Confirm desktop clients with Node integration are updated first, as they carry full local code-execution impact.
| B3log (SiYuan) SiYuan desktop (Node-enabled Electron renderer) | before 3.8.2 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
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.
- Weakness
- CWE-79
- Vector
- 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
In the news0 stories
No ingested article mentions this CVE yet.