CVE Explorer
CVE-2026-41149
Mermaid is a JavaScript tool that uses Markdown-inspired text to create and modify diagrams and charts. Versions 10.9.5 and earlier, as well as 11.0.0-alpha.1 through 11.14.0, are vulnerable to HTML injection under the default configuration. Specifically, the classDef directive in Mermaid state diagrams permits DOM injection that escapes the SVG context. However, <script> tags are stripped, which prevents cross-site scripting (XSS). This issue has been fixed in versions 10.9.6 and 11.15.0. If de
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"mermaid","vendor":"mermaid-js","versions":[{"status":"affected","version":">= 11.0.0-alpha.1, < 11.15.0"},{"status":"affected","version":"< 10.9.6"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:286524f09cd181505940914d1cd8a41012d687dfdf278185b50f72af3ea41305 · sha256:c9607a74a2a645db… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":5.3,"baseSeverity":"MEDIUM","privilegesRequired":"NONE","subAvailabilityImpact":"LOW","subConfidentialityImpact":"LOW","subIntegrityImpact":"LOW","userInteraction":"PASSIVE","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:L","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"LOW"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:286524f09cd181505940914d1cd8a41012d687dfdf278185b50f72af3ea41305 · sha256:c9607a74a2a645db… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
1 source assertion{"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:286524f09cd181505940914d1cd8a41012d687dfdf278185b50f72af3ea41305 · sha256:c9607a74a2a645db… · /containers/cna/problemTypes/0/descriptions/0
Source references
4 source assertions{"name":"https://github.com/mermaid-js/mermaid/commit/37ff937f1da2e19f882fd1db01235db4d01f4056","tags":["x_refsource_MISC"],"url":"https://github.com/mermaid-js/mermaid/commit/37ff937f1da2e19f882fd1db01235db4d01f4056"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:286524f09cd181505940914d1cd8a41012d687dfdf278185b50f72af3ea41305 · sha256:c9607a74a2a645db… · /containers/cna/references/1
{"name":"https://github.com/mermaid-js/mermaid/commit/4e2d512bf5bf6f9de1a8f0a48da78dc4d09ac4f3","tags":["x_refsource_MISC"],"url":"https://github.com/mermaid-js/mermaid/commit/4e2d512bf5bf6f9de1a8f0a48da78dc4d09ac4f3"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:286524f09cd181505940914d1cd8a41012d687dfdf278185b50f72af3ea41305 · sha256:c9607a74a2a645db… · /containers/cna/references/2
{"name":"https://github.com/mermaid-js/mermaid/security/advisories/GHSA-ghcm-xqfw-q4vr","tags":["x_refsource_CONFIRM"],"url":"https://github.com/mermaid-js/mermaid/security/advisories/GHSA-ghcm-xqfw-q4vr"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:286524f09cd181505940914d1cd8a41012d687dfdf278185b50f72af3ea41305 · sha256:c9607a74a2a645db… · /containers/cna/references/0
{"tags":["exploit"],"url":"https://github.com/mermaid-js/mermaid/security/advisories/GHSA-ghcm-xqfw-q4vr"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:286524f09cd181505940914d1cd8a41012d687dfdf278185b50f72af3ea41305 · sha256:c9607a74a2a645db… · /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.