CVE-2025-54881
CVE-2025-54881 · Mermaid improperly sanitizes of sequence diagram labels leading to XSS
This page contains facts from public vulnerability sources. Check the original advisory before updating.
Mermaid is a JavaScript based diagramming and charting tool that uses Markdown-inspired text definitions and a renderer to create and modify complex diagrams. In the default configuration of mermaid 10.9.0-rc.1 to 11.9.0, user supplied input for sequence diagram labels is passed to innerHTML during calculation of element size, causing XSS.
CVSS 5.3 · Medium · EPSS 0.8% · Fix available
- Published
- Updated
Affected products and versions
mermaid
- Versions
- >= 10.9.0-rc.1, <= 11.9.0: Affected
No fix published
mermaid npm
- Affected ranges
- SEMVER: ≥ 11.0.0-alpha.1, < 11.10.0
Update to 11.10.0
mermaid npm
- Affected ranges
- SEMVER: ≥ 10.9.0-rc.1, < 10.9.4
Update to 10.9.4
node-mermaid Ubuntu:22.04:LTS
- Versions
- 8.7.0+ds+~cs27.17.17-3
- 8.13.3+ds+~cs26.13.21-1
- 8.13.3+ds+~cs26.13.21-2
- 8.13.8+~cs10.4.16-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-mermaid Ubuntu:26.10
- Versions
- 9.2.2+~2.0.0-1
- 9.2.2+~2.0.0-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published