CVE-2026-41148
1 advisory.
npm/mermaid CVE-2026-41148: medium, EPSS 0.60%
Mermaid: Improper sanitization of `classDefs` in diagrams leads to CSS 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-xcj9-5m2h-648r
- https://github.com/mermaid-js/mermaid/security/advisories/GHSA-xcj9-5m2h-648r
- https://nvd.nist.gov/vuln/detail/CVE-2026-41148
- https://github.com/mermaid-js/mermaid/commit/8fead23c59166b7bab6a39eac81acebee2859102
- https://github.com/mermaid-js/mermaid/commit/e9b0f34d8d82a6260077764ee45e1d7d90957a0f
- 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-41148 · published · modified · JSON