CVE-2026-41149
1 advisory.
npm/mermaid CVE-2026-41149: medium, EPSS 0.52%
Mermaid: Improper sanitization of `classDef` in state diagrams leads to HTML injection
Action: Upgrade mermaid to 10.9.6 or later.
npm i mermaid@11.15.0npm i mermaid@10.9.6Affected
| introduced | fixed | last affected |
|---|---|---|
| 11.0.0-alpha.1 | 11.15.0 | - |
| 0 | 10.9.6 | - |
Fixed versions
| 11.15.0 | 10.9.6 |
Sources
- osv: GHSA-ghcm-xqfw-q4vr
- https://github.com/mermaid-js/mermaid/security/advisories/GHSA-ghcm-xqfw-q4vr
- https://nvd.nist.gov/vuln/detail/CVE-2026-41149
- https://github.com/mermaid-js/mermaid/commit/37ff937f1da2e19f882fd1db01235db4d01f4056
- https://github.com/mermaid-js/mermaid/commit/4e2d512bf5bf6f9de1a8f0a48da78dc4d09ac4f3
- https://github.com/mermaid-js/mermaid
- https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.15.0
- https://github.com/mermaid-js/mermaid/releases/tag/v10.9.6
- https://mermaid.js.org/config/schema-docs/config.html#securitylevel
CVE-2026-41149 · published · modified · JSON