CVE-2025-54880 Details
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.
A cross-site scripting (XSS) vulnerability has been identified in Mermaid versions through 11.9.0. In the default configuration, user-supplied input for architecture diagram icons is not properly sanitized before being passed to the D3 'html()' method. This oversight creates an opportunity for malicious users to inject arbitrary HTML, which can be executed as JavaScript, potentially leading to XSS attacks. The vulnerability was introduced in version 11.1.0 and has been fixed in version 11.10.0.
Users can update to Mermaid version 11.10.0 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 19, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/mermaid-js/mermaid/security/advisories/GHSA-8gwm-58g9-j8pw | CISA-ADP | ExploitPatchVendor Advisory |
| https://github.com/mermaid-js/mermaid/commit/2aa83302795183ea5c65caec3da1edd6cb4791fc | [email protected] | Patch |
| https://github.com/mermaid-js/mermaid/commit/734bde38777c9190a5a72e96421c83424442d4e4 | [email protected] | Product |
| https://github.com/mermaid-js/mermaid/security/advisories/GHSA-8gwm-58g9-j8pw | [email protected] | ExploitPatchVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| mermaid project mermaid | >= 11.1.0, < 11.10.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 20, 2025 | Initial Analysis | [email protected] |
| Aug 19, 2025 | CVE Modified | CISA-ADP |
| Aug 19, 2025 | New CVE Received | [email protected] |