CVE 5.1 MEDIUM

Mermaid does not properly sanitize architecture diagram iconText leading to XSS_CVE-2025-54880

5.1 / 10
MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

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.

Basic Information

ID CVE-2025-54880
Source GitHub_M
Published Aug 19, 2025 at 16:58
Modified Aug 19, 2025 at 17:09

Affected Product

Vendor mermaid-js
Product mermaid
Version >= 11.1.0, < 11.10.0
Affected Versions mermaid-js mermaid >= 11.1.0, < 11.10.0

CWE Classification

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.