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, escalating the stored XSS to arbitrary code execution when a victim opens a note containing a malicious Mermaid block and clicks the rendered diagram node. This issue has been fixed in version 3.6.4.
CVE-2026-40322
This critical-severity CVE scores 9.0 under NVD CVSS v3. EPSS exploit probability: 0.1%, top 82% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- High severity, but no confirmed exploitation yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 9.0
- EG Score
- 9.0(medium)
- EPSS
- 22.6%
- KEV
- Not listed
Published
April 16, 2026
Last Modified
April 20, 2026
Advisory Details (2)
Auto-updated May 20, 2026SiYuan Mermaid `javascript:` Link Injection Leads to Stored XSS and Electron RCE · Advisory · siyuan-note/siyuan · GitHub
https://github.com/siyuan-note/siyuan/security/advisories/GHSA-x63q-3rcj-hhp5Release Improve details · siyuan-note/siyuan · GitHub
https://github.com/siyuan-note/siyuan/releases/tag/v3.6.4Weakness Classification(2)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 9× in last 7d / 36× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 114 total refreshes for this CVE.
- 2026-07-16 17:03 UTCEPSS rescore
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-15 02:00 UTCEPSS rescore
- 2026-07-13 22:30 UTCEPSS rescore
- 2026-07-13 06:13 UTCEPSS rescore
- 2026-07-13 06:13 UTCEPSS rescore
- 2026-07-12 05:46 UTCEPSS rescore
- 2026-07-11 08:27 UTCEPSS rescore
- 2026-07-09 19:10 UTCEPSS rescore
- 2026-07-07 13:46 UTCEPSS rescore
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-05 02:30 UTCEPSS rescore
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-01 15:06 UTCEPSS rescore
- 2026-06-30 23:22 UTCEPSS rescore
- 2026-06-29 14:06 UTCEPSS rescore
- 2026-06-28 14:07 UTCEPSS rescore
- 2026-06-28 04:56 UTCEPSS rescore
- 2026-06-27 03:08 UTCEPSS rescore
- 2026-06-25 13:49 UTCEPSS rescore
- 2026-06-25 13:49 UTCEPSS rescore
Show 75 moreShow fewer
- 2026-06-24 14:05 UTCEPSS rescore
- 2026-06-23 21:33 UTCEPSS rescore
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 01:59 UTCEPSS rescore
- 2026-06-19 19:25 UTCEPSS rescore
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-17 17:53 UTCEPSS rescore
- 2026-06-16 17:52 UTCEPSS rescore
- 2026-06-15 17:49 UTCEPSS rescore
- 2026-06-15 03:38 UTCEG score recompute
- 2026-06-14 23:25 UTCEG score recompute
- 2026-06-14 19:32 UTCEG score recompute
- 2026-06-13 23:00 UTCEPSS rescore
- 2026-06-12 23:12 UTCEPSS rescore
- 2026-06-12 23:12 UTCEPSS rescore
- 2026-06-12 06:08 UTCEG score recompute
- 2026-06-12 02:22 UTCEG score recompute
- 2026-06-11 22:37 UTCEG score recompute
- 2026-06-11 18:52 UTCEG score recompute
- 2026-06-11 14:00 UTCEPSS rescore
- 2026-06-10 22:18 UTCEPSS rescore
- 2026-06-10 19:38 UTCEG score recompute
- 2026-06-10 15:53 UTCEG score recompute
- 2026-06-10 13:22 UTCEPSS rescore
- 2026-06-10 13:22 UTCEPSS rescore
- 2026-06-10 12:07 UTCEG score recompute
- 2026-06-10 08:21 UTCEG score recompute
- 2026-06-10 04:04 UTCEG score recompute
- 2026-06-10 00:18 UTCEG score recompute
- 2026-06-09 17:31 UTCEG score recompute
- 2026-06-09 13:46 UTCEG score recompute
- 2026-06-09 10:01 UTCEG score recompute
- 2026-06-08 14:17 UTCEPSS rescore
- 2026-06-08 14:17 UTCEPSS rescore
- 2026-06-08 12:08 UTCEG score recompute
- 2026-06-08 08:03 UTCEG score recompute
- 2026-06-08 04:17 UTCEG score recompute
- 2026-06-08 00:32 UTCEG score recompute
- 2026-06-07 20:04 UTCEG score recompute
- 2026-06-07 16:19 UTCEG score recompute
- 2026-06-07 15:25 UTCEPSS rescore
- 2026-06-07 15:25 UTCEPSS rescore
- 2026-06-07 12:33 UTCEG score recompute
- 2026-06-07 08:48 UTCEG score recompute
- 2026-06-07 05:00 UTCEG score recompute
- 2026-06-06 13:47 UTCEPSS rescore
- 2026-06-06 13:47 UTCEPSS rescore
- 2026-06-06 07:05 UTCEG score recompute
- 2026-06-05 22:47 UTCEPSS rescore
- 2026-06-05 12:08 UTCEG score recompute
- 2026-06-05 06:10 UTCEPSS rescore
- 2026-06-05 06:10 UTCEPSS rescore
- 2026-06-04 20:52 UTCEG score recompute
- 2026-06-03 22:48 UTCEG score recompute
- 2026-06-03 18:00 UTCEG score recompute
- 2026-06-02 21:32 UTCEG score recompute
- 2026-06-02 17:46 UTCEG score recompute
- 2026-06-02 14:01 UTCEG score recompute
- 2026-06-01 21:58 UTCEG score recompute
- 2026-06-01 17:53 UTCEG score recompute
- 2026-06-01 13:52 UTCEPSS rescore
- 2026-06-01 13:52 UTCEPSS rescore
- 2026-06-01 13:51 UTCEPSS rescore
- 2026-05-31 22:30 UTCEPSS rescore
- 2026-05-31 22:30 UTCEPSS rescore
- 2026-05-31 00:16 UTCEPSS rescore
- 2026-05-31 00:16 UTCEPSS rescore
- 2026-05-31 00:16 UTCEPSS rescore
- 2026-05-29 13:44 UTCEPSS rescore
- 2026-05-29 13:44 UTCEPSS rescore
- 2026-05-28 13:44 UTCEPSS rescore
Related CVEs(same CWE)
Frequently asked(5)
What is CVE-2026-40322?
When was CVE-2026-40322 disclosed?
Is CVE-2026-40322 actively exploited?
What is the CVSS score of CVE-2026-40322?
How do I remediate CVE-2026-40322?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-40322
Is Your Infrastructure Affected by CVE-2026-40322?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.