CVE-2025-54880

Severity CVSS v4.0:
MEDIUM
Type:
CWE-79 Cross-Site Scripting (XSS)
Publication date:
19/08/2025
Last modified:
20/10/2025

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.

Vulnerable products and versions

CPE From Up to
cpe:2.3:a:mermaid_project:mermaid:*:*:*:*:*:node.js:*:* 11.1.0 (including) 11.10.0 (excluding)