CVE Explorer
CVE-2026-41159
Mermaid is a JavaScript tool that uses Markdown-inspired text to create and modify diagrams and charts. Prior to 10.9.6 and 11.15.0, Mermaid's default configuration allows injecting CSS that applies outside of the Mermaid diagram via the fontFamily, themeCSS, and altFontFamily configuration options. The injected CSS exploits stylis's & (scope reference) handling. :not(&) escapes the #mermaid-xxx automatic scoping, applying styles to all page elements. Global at-rules (@font-face, @keyframes, @c
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:35b508dfa0f974d5976cda21f6d927f81e2ea95b55f25b45a9d5e0179b646e08 · sha256:863a11d271e1e69d… · /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:35b508dfa0f974d5976cda21f6d927f81e2ea95b55f25b45a9d5e0179b646e08 · sha256:863a11d271e1e69d… · /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:35b508dfa0f974d5976cda21f6d927f81e2ea95b55f25b45a9d5e0179b646e08 · sha256:863a11d271e1e69d… · /containers/cna/problemTypes/0/descriptions/0
Source references
5 source assertions{"name":"https://github.com/mermaid-js/mermaid/commit/64769738d5b59211e1decb471ffbaca8afec51aa","tags":["x_refsource_MISC"],"url":"https://github.com/mermaid-js/mermaid/commit/64769738d5b59211e1decb471ffbaca8afec51aa"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:35b508dfa0f974d5976cda21f6d927f81e2ea95b55f25b45a9d5e0179b646e08 · sha256:863a11d271e1e69d… · /containers/cna/references/1
{"name":"https://github.com/mermaid-js/mermaid/commit/a9d9f0d8eb790349121508688cd338253fd80d76","tags":["x_refsource_MISC"],"url":"https://github.com/mermaid-js/mermaid/commit/a9d9f0d8eb790349121508688cd338253fd80d76"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:35b508dfa0f974d5976cda21f6d927f81e2ea95b55f25b45a9d5e0179b646e08 · sha256:863a11d271e1e69d… · /containers/cna/references/2
{"name":"https://github.com/mermaid-js/mermaid/releases/tag/mermaid@11.15.0","tags":["x_refsource_MISC"],"url":"https://github.com/mermaid-js/mermaid/releases/tag/mermaid@11.15.0"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:35b508dfa0f974d5976cda21f6d927f81e2ea95b55f25b45a9d5e0179b646e08 · sha256:863a11d271e1e69d… · /containers/cna/references/3
{"name":"https://github.com/mermaid-js/mermaid/releases/tag/v10.9.6","tags":["x_refsource_MISC"],"url":"https://github.com/mermaid-js/mermaid/releases/tag/v10.9.6"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:35b508dfa0f974d5976cda21f6d927f81e2ea95b55f25b45a9d5e0179b646e08 · sha256:863a11d271e1e69d… · /containers/cna/references/4
{"name":"https://github.com/mermaid-js/mermaid/security/advisories/GHSA-87f9-hvmw-gh4p","tags":["x_refsource_CONFIRM"],"url":"https://github.com/mermaid-js/mermaid/security/advisories/GHSA-87f9-hvmw-gh4p"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:35b508dfa0f974d5976cda21f6d927f81e2ea95b55f25b45a9d5e0179b646e08 · sha256:863a11d271e1e69d… · /containers/cna/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.