Vulnerability · Published May 14, 2026 · Assigned by GitHub_M
CVE-2026-44670SiYuan: Stored XSS via Attribute View name to Electron renderer RCE in SiYuan
Critical 9.4
In plain English
A critical-severity cross-site scripting in siyuan from siyuan-note. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 44% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/siyuan-note/siyuan/kernel | 0.0.0-20260512140701-d7b77d945e0d | GHSA-2h64-c999-c9r6 |
| Go | github.com/siyuan-note/siyuan/kernel | 0.0.0-20260512140701-d7b77d945e0d | GO-2026-4992 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| siyuan-note | siyuan | < 3.7.0 |
Weakness: CWE-79, CWE-94, CWE-1188 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
References
- https://github.com/siyuan-note/siyuan/security/advisories/GHSA-2h64-c999-c9r6 x_refsource_CONFIRM