Node mermaid: Prior to 10.9.6 and 11.15.0, Mermaid's default configuration allows injecting CSS that applies outside
Affects node-mermaidSource GCVE Database
Not known to be exploited · CVSS 5.3 Medium · fixed in 10.9.6 : update node-mermaid when convenient.
Data as of 24 Nov 2026, 21:15 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 42% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 10.9.6
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:LExploitation evidence
Disclosed: evidence found.
CVE published 29 May 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10node-mermaidpkg:deb/ubuntu/node-mermaid?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSnode-mermaidpkg:deb/ubuntu/node-mermaid?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2026-41159 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-41159 (opens in a new tab)
- github.com/mermaid-js/mermaid/security/advisories/GHSA-87f9-hvmw-gh4p (opens in a new tab)
- github.com/mermaid-js/mermaid/commit/64769738d5b59211e1decb471ffbaca8afec51aa (opens in a new tab)
- github.com/mermaid-js/mermaid/commit/a9d9f0d8eb790349121508688cd338253fd80d76 (opens in a new tab)
- github.com/mermaid-js/mermaid/commit/64769738d5b59211e1decb471ffbaca8afec51aahttps://github.com/mermaid-js/mermaid/commit/a9d9f0d8eb790349121508688cd338253fd80d76 (opens in a new tab)
- github.com/mermaid-js/mermaid/releases/tag/mermaid@11.15.0 (opens in a new tab)
- github.com/mermaid-js/mermaid/releases/tag/v10.9.6 (opens in a new tab)