Cross-Site Scripting Vulnerability in Mermaid Diagramming Tool by Mermaid
CVE-2025-54880

5.1MEDIUM

Key Information:

Vendor

Mermaid-js

Status
Vendor
CVE Published:
19 August 2025

What is CVE-2025-54880?

Mermaid, a JavaScript-based tool for creating and modifying diagrams, is susceptible to a Cross-Site Scripting vulnerability. This arises in versions 11.9.0 and earlier, where user-provided input for architecture diagram icons is mishandled, leading to potential exploitation through the d3 html() method. To mitigate this risk, users should upgrade to version 11.10.0 or later, where the vulnerability has been addressed, ensuring a more secure diagramming environment.

Affected Version(s)

mermaid >= 11.1.0, < 11.10.0

References

CVSS V4

Score:
5.1
Severity:
MEDIUM
Confidentiality:
None
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.