Skip to content

CVE-2026-44670 SiYuan: Stored XSS via Attribute View name to Electron renderer RCE in SiYuan

CriticalCVSS 9.4 EPSS 0.51%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total

Description

SiYuan is an open-source personal knowledge management system. Prior to 3.7.0, the kernel stores Attribute View (AV / database) names without any HTML escape, then a render template uses raw strings.ReplaceAll(tpl, "${avName}", nodeAvName) to embed the name in HTML before pushing to all clients via WebSocket. Three independent client paths (render.ts:120 → outerHTML, Title.ts:401 → innerHTML, transaction.ts:559 → innerHTML) consume the value without escaping. Because the main BrowserWindow runs nodeIntegration:true, contextIsolation:false, webSecurity:false (app/electron/main.js:407-411), HTML injection in the renderer becomes Node.js code execution. This vulnerability is fixed in 3.7.0.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
siyuan-note github.com/siyuan-note/siyuan/kernel(Go) < 0.0.0-20260512140701-d7b77d945e0d; <= 0.0.0-20260421031503-96dfe0bea474 0.0.0-20260512140701-d7b77d945e0d Fixed
siyuan-note siyuan = < 3.7.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
siyuan-note github.com/siyuan-note/siyuan/kernel(Go) < 0.0.0-20260512140701-d7b77d945e0d 0.0.0-20260512140701-d7b77d945e0d
siyuan-note siyuan = < 3.7.0 No fix listed
siyuan-note github.com/siyuan-note/siyuan/kernel(Go) <= 0.0.0-20260421031503-96dfe0bea474 No fix listed

References