ZeroHour

CVE-2026-86712

moderate

Clipboard-Paste XSS in SiYuan Desktop Enables Node.js Code Execution

CVSS 4.0
8.6 high
EPSS
<1%p31
Published
()
Modified
AI analysis

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.

Affected
B3log (SiYuan) SiYuan desktop (Node-enabled Electron renderer)before 3.8.2
Estimated exposure
moderatelikely tens of thousands of desktop users (open-source project with roughly 30k+ GitHub stars; not internet-exposed server software) — SiYuan is a niche-but-popular open-source note-taking desktop app whose community size implies an active install base on the order of tens of thousands, a rough estimate since no official install or download counts are provided in the data.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

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 news

No ingested article mentions this CVE yet.