CVE-2026-41159: Mermaid is a JavaScript tool that uses Markdown-inspired text to create and modify diagrams and charts
CVE-2026-41159 is a medium-severity flaw (CVSS 5.3) affecting mermaid. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 ele
Why this priority
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 5.3 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 0.5% (top 58%) |
| CISA exploited list | No |
| Weakness | CWE-94 |
| Published | 2026-05-29 |
| Last modified | 2026-07-21 |
Last updated 2026-07-21 · 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-41159?
mermaid: upgrade to 10.9.6, 11.15.0. Exact commands for each OS are on this page.
Is CVE-2026-41159 being exploited?
CVE-2026-41159 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-41159 affect?
CVE-2026-41159 affects mermaid. Severity is medium (CVSS 5.3). 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 f
How urgent is CVE-2026-41159?
Priority 34/100. Remotely exploitable, no login, no user action
Related CVEs
- CVE-2026-41150 MEDIUM 5.3 UPGRADE Mermaid is a JavaScript tool that uses Markdown-inspired text to create and modify diagrams and charts