CVE-2026-41159
Last modified
CVE-2026-41159 is a medium-severity vulnerability rated 5.3/10 on the CVSS scale. 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. EPSS estimates a 0.40% chance of exploitation in the next 30 days.
Description
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, @counter-style) are also injectable as stylis hoists them to top level. This allows page defacement and DOM attribute exfiltration via CSS :has() selectors. This vulnerability is fixed in 10.9.6 and 11.15.0.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Mermaid Project | Mermaid | < 10.9.6 |
| Mermaid Project | Mermaid | >= 11.0.0, < 11.15.0 |
References
- https://github.com/mermaid-js/mermaid/security/advisories/GHSA-87f9-hvmw-gh4pThird Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2026-41159?
How severe is CVE-2026-41159?
How do I fix CVE-2026-41159?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-41153In JetBrains Junie before 252.549.29 command execution was p…9.8
- CVE-2026-41154Software installed and run as a non-privileged user may caus…7.8
- CVE-2026-41155An attacker could cooperatively pass data from one secure GP…5.5
- CVE-2026-41156Software installed and run as a non-privileged user may cond…7.7
- CVE-2026-41157A web page that contains unusual WebGPU content loaded into …9.8
- CVE-2026-41158Software installed and run as a non-privileged user may cond…7.8
- CVE-2026-4116Improper handling of Unicode encoding in SonicWall SMA1000 s…7.2
- CVE-2026-41160EspoCRM is an open source customer relationship management a…4.3
- CVE-2026-41161Sync-in Server is a secure, open-source platform for file st…5.3
- CVE-2026-41163bubblewrap is a low-level unprivileged sandboxing tool. From…8.7
- CVE-2026-41164nuts-node is the reference implementation of the Nuts specif…4.4
- CVE-2026-41166OpenRemote is an open-source internet-of-things platform. Pr…7
Are you affected by CVE-2026-41159?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
