RCE in Siyuan-note Siyuan
CVE-2026-40322
SiYuan is an open-source personal knowledge management system. In versions 3.6.3 and below, Mermaid diagrams are rendered with securityLevel set to "loose", and the resulting SVG is injected into the DOM via innerHTML. This allows attacker…
Vulnerability class: XSS (Cross-Site Scripting)
EPSS: 0.001 (17.4th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 9.1 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H.
Affected products
- Siyuan-note Siyuan — versions < 3.6.4
Weakness classification (CWE)
References
- https://github.com/siyuan-note/siyuan/security/advisories/GHSA-x63q-3rcj-hhp5 (x_refsource_CONFIRM)
- https://github.com/siyuan-note/siyuan/releases/tag/v3.6.4 (x_refsource_MISC)
Frequently asked questions
- What is CVE-2026-40322?
- CVE-2026-40322 is a critical-severity vulnerability in Siyuan-note Siyuan, classified under Cross-site Scripting. CVSS score: 9.1/10. Published 2026-04-16.
- How severe is CVE-2026-40322?
- Critical severity. CVSS v3 base score is 9.1 out of 10.