What’s Vulnerable › Vulnerabilities
CVE-2026-32751: SiYuan Vulnerable to Remote Code Execution via Stored XSS in Notebook Name - Mobile Interface
- Severity: critical (CVSS 9.0 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.8% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-03-19 · updated 2026-06-17
- Weakness: CWE-79
Description
SiYuan is a personal knowledge management system. In versions 3.6.0 and below, the mobile file tree (MobileFiles.ts) renders notebook names via innerHTML without HTML escaping when processing renamenotebook WebSocket events. The desktop version (Files.ts) properly uses escapeHtml() for the same operation. An authenticated user who can rename notebooks can inject arbitrary HTML/JavaScript that executes on any mobile client viewing the file tree. Since Electron is configured with nodeIntegration: true and contextIsolation: false, the injected JavaScript has full Node.js access, escalating stored XSS to full remote code execution. The mobile layout is also used in the Electron desktop app when the window is narrow, making this exploitable on desktop as well. This issue has been fixed in version 3.6.1.
Affected products
- siyuan-note siyuan: before 3.6.1 — fixed in 3.6.1
How to fix
Upgrade to a fixed version: siyuan-note siyuan 3.6.1. Check the vendor advisory for mitigations.
References
- https://github.com/siyuan-note/siyuan/commit/f6d35103f774b65e52f03e018649ff0e57924fb0
- https://github.com/siyuan-note/siyuan/releases/tag/v3.6.1
- https://github.com/siyuan-note/siyuan/security/advisories/GHSA-qr46-rcv3-4hq3
Get alerted when CVE-2026-32751 or the next vulnerability affects your stack