CVE-2025-54880 MEDIUM

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

Vendor Mermaid-Js
Product mermaid
Weakness CWE-79 · XSS
Published August 19, 2025
Last update August 19, 2025

CVSS base score

5.1/10
Attack vector Network
Attack complexity Low
Privileges required Low
User interaction
Confidentiality
Integrity

CVSS vector

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

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

August 19, 2025 CVE published
August 19, 2025 Record updated