Skip to main content
← All vulnerabilities
CVE-2026-44670GHSA-2H64-C999-C9R6GO-2026-4992

SiYuan: Stored XSS via Attribute View name to Electron renderer RCE in SiYuan

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.7.0, 0.0.0-20260512140701-d7b77d945e0d
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • siyuan-note siyuan

    fixed in 3.7.0

  • github.com/siyuan-note/siyuan/kernelGo

    fixed in 0.0.0-20260512140701-d7b77d945e0d

References 1

GitHub · siyuan-note/siyuan