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

5.3MEDIUM

Key Information:

Vendor

Mermaid-js

Status
Vendor
CVE Published:
19 August 2025

What is CVE-2025-54881?

A Cross-Site Scripting (XSS) vulnerability has been identified in the Mermaid diagramming tool that affects versions from 10.9.0-rc.1 to 11.9.0. This issue arises from the handling of user-provided input for sequence diagram labels, which is incorrectly processed and passed directly to innerHTML. This oversight allows attackers to inject malicious scripts that could execute in the context of the user's browser, posing severe security risks. It is crucial for users of affected versions to apply the necessary updates and patches to mitigate this vulnerability.

Affected Version(s)

mermaid >= 10.9.0-rc.1, <= 11.9.0

References

CVSS V4

Score:
5.3
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

.