CVE 5.3 MEDIUM

Mermaid improperly sanitizes of sequence diagram labels leading to XSS_CVE-2025-54881

5.3 / 10
MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/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 10.9.0-rc.1 to 11.9.0, user supplied input for sequence diagram labels is passed to innerHTML during calculation of element size, causing XSS.

Basic Information

ID CVE-2025-54881
Source GitHub_M
Published Aug 19, 2025 at 17:04

Affected Product

Vendor mermaid-js
Product mermaid
Version >= 10.9.0-rc.1, <= 11.9.0
Affected Versions mermaid-js mermaid >= 10.9.0-rc.1, <= 11.9.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.