CVE Explorer
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-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
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 2 assertions
{"cweId":"CWE-94","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:6bd943770db42994c33780cbf5a6b0a7ec6f7797324a47ec75811b172bbb716f · sha256:9cee6d0146c3fc42… · /containers/cna/problemTypes/1/descriptions/0
{"cweId":"CWE-79","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:6bd943770db42994c33780cbf5a6b0a7ec6f7797324a47ec75811b172bbb716f · sha256:9cee6d0146c3fc42… · /containers/cna/problemTypes/0/descriptions/0
Affected products and versions
1 source assertion{"product":"siyuan","vendor":"siyuan-note","versions":[{"status":"affected","version":"< 3.6.4"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:6bd943770db42994c33780cbf5a6b0a7ec6f7797324a47ec75811b172bbb716f · sha256:9cee6d0146c3fc42… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.1,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:6bd943770db42994c33780cbf5a6b0a7ec6f7797324a47ec75811b172bbb716f · sha256:9cee6d0146c3fc42… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
2 source assertions{"cweId":"CWE-94","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:6bd943770db42994c33780cbf5a6b0a7ec6f7797324a47ec75811b172bbb716f · sha256:9cee6d0146c3fc42… · /containers/cna/problemTypes/1/descriptions/0
{"cweId":"CWE-79","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:6bd943770db42994c33780cbf5a6b0a7ec6f7797324a47ec75811b172bbb716f · sha256:9cee6d0146c3fc42… · /containers/cna/problemTypes/0/descriptions/0
Source references
3 source assertions{"name":"https://github.com/siyuan-note/siyuan/releases/tag/v3.6.4","tags":["x_refsource_MISC"],"url":"https://github.com/siyuan-note/siyuan/releases/tag/v3.6.4"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:6bd943770db42994c33780cbf5a6b0a7ec6f7797324a47ec75811b172bbb716f · sha256:9cee6d0146c3fc42… · /containers/cna/references/1
{"name":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-x63q-3rcj-hhp5","tags":["x_refsource_CONFIRM"],"url":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-x63q-3rcj-hhp5"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:6bd943770db42994c33780cbf5a6b0a7ec6f7797324a47ec75811b172bbb716f · sha256:9cee6d0146c3fc42… · /containers/cna/references/0
{"tags":["exploit"],"url":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-x63q-3rcj-hhp5"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:6bd943770db42994c33780cbf5a6b0a7ec6f7797324a47ec75811b172bbb716f · sha256:9cee6d0146c3fc42… · /containers/adp/0/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.