Skip to content

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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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