CVE-2026-40322: SiYuan is an open-source personal knowledge management system
CVE-2026-40322 is a critical-severity flaw (CVSS 9.0) affecting siyuan. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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-controlled javascript: URLs in Mermaid code blocks to survive into the rendered output. On desktop builds using Electron, windows are created with nodeIntegration enabled and contextIsolation disabled, escalati
Why this priority
- Critical severity
A fixed release or distro patch exists.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-40322?
siyuan: upgrade to 3.6.4. Exact commands for each OS are on this page.
Is CVE-2026-40322 being exploited?
CVE-2026-40322 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-40322 affect?
CVE-2026-40322 affects siyuan. Severity is critical (CVSS 9.0). 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-
How urgent is CVE-2026-40322?
Priority 37/100. Critical severity
Software pages
Windows vulnerabilities · Electron vulnerabilities
Related CVEs
- CVE-2026-39846 CRITICAL 9.0 UPGRADE SiYuan is a personal knowledge management system
- CVE-2026-40922 MEDIUM 5.4 UPGRADE SiYuan is an open-source personal knowledge management system
- CVE-2026-40318 HIGH 8.5 UPGRADE SiYuan is an open-source personal knowledge management system
- CVE-2026-40259 HIGH 8.1 UPGRADE SiYuan is an open-source personal knowledge management system
- CVE-2026-40107 MEDIUM 6.5 UPGRADE SiYuan is a personal knowledge management system