Original 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.
Affected software
- SiYuan < 3.8.2 Fixed in: 3.8.2 repository or package match
Details
- Published
- 2026-09-08
- Last modified
- 2026-09-11
- CVSS 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- CWE
- CWE-79
- EPSS (30-day exploit probability)
- 0.72% (percentile 54)
References
- cve.org/CVE-2026-86712
- nvd.nist.gov/vuln/detail/CVE-2026-86712
- github.com/siyuan-note/siyuan/security/advisories/GHSA-9rr9-pxr4-gcgc
- github.com/siyuan-note/siyuan/commit/9ce660652de2ced26ec2d98a5a242cb0b8bb7273
- github.com/siyuan-note/siyuan/releases/tag/v3.8.2
- github.com/siyuan-note/siyuan/blob/v3.8.1/app/src/protyle/util/paste.ts
- github.com/siyuan-note/siyuan
- www.vulncheck.com/advisories/siyuan-before-3.8.2-remote-code-execution-via-clipboard
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.