CVE-2025-54880 Mermaid does not properly sanitize architecture diagram iconText leading to XSS
MediumCVSS 5.1
EPSS 0.43%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
Description
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 11.9.0 and earlier, user supplied input for architecture diagram icons is passed to the d3 html() method, creating a sink for cross site scripting. This vulnerability is fixed in 11.10.0.
Upgrade path
5 packages: 2 fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/node-mermaid(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-mermaid(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| mermaid project mermaid | >= 11.1.0, < 11.10.0 | 11.10.0 | Fixed |
| npm mermaid(npm) | >= 11.1.0, < 11.10.0 | 11.10.0 | Fixed |
| mermaid-js mermaid | = >= 11.1.0, < 11.10.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm mermaid(npm) | >= 11.1.0, < 11.10.0 | 11.10.0 |
| mermaid-js mermaid | = >= 11.1.0, < 11.10.0 | No fix listed |
| ubuntu/node-mermaid(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/node-mermaid(Ubuntu:26.10) | All versions | No fix listed |
| mermaid project mermaid | >= 11.1.0, < 11.10.0 | 11.10.0 |
References
- https://github.com/mermaid-js/mermaid/security/advisories/GHSA-8gwm-58g9-j8pw exploit patch vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/mermaid-js/mermaid/commit/2aa83302795183ea5c65caec3da1edd6cb4791fc patch
- https://github.com/mermaid-js/mermaid/commit/734bde38777c9190a5a72e96421c83424442d4e4 patch product
- github.com
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- Debian Security Tracker CVE-2025-54880 vendor-advisory
- github.com product