What’s Vulnerable › Vulnerabilities

CVE-2025-54880: Mermaid does not properly sanitize architecture diagram iconText leading to XSS

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.

Affected products

How to fix

Upgrade to a fixed version: mermaid-js mermaid 11.10.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-54880 or the next vulnerability affects your stack