---
id: CVE-2026-86712
title: >-
  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
summary: >-
  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 writ…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'
cwe:
  - CWE-79
vendor: siyuan-note
product: siyuan
affected:
  - siyuan < 3.8.2
published: '2026-09-08'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T16:18:03.470'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-86712'
references:
  - url: 'https://github.com/siyuan-note/siyuan'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/siyuan-note/siyuan/blob/v3.8.1/app/src/protyle/util/paste.ts
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/siyuan-note/siyuan/commit/9ce660652de2ced26ec2d98a5a242cb0b8bb7273
    label: disclosure@vulncheck.com
  - url: 'https://github.com/siyuan-note/siyuan/releases/tag/v3.8.2'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/siyuan-note/siyuan/security/advisories/GHSA-9rr9-pxr4-gcgc
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/siyuan-before-3.8.2-remote-code-execution-via-clipboard
    label: disclosure@vulncheck.com
tags:
  - nvd
  - cve.org
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: total
  timestamp: '2026-09-10T14:27:43.598618Z'
epss: 0.00715
epssPercentile: 0.51716
ingestedAt: '2026-09-08T15:33:26.983Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
