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.
Advisories
Source ID Title
EUVD EUVD EUVD-2025-25190 Mermaid does not properly sanitize architecture diagram iconText leading to XSS
Github GHSA Github GHSA GHSA-8gwm-58g9-j8pw Mermaid does not properly sanitize architecture diagram iconText leading to XSS
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Mon, 20 Oct 2025 15:15:00 +0000

Type Values Removed Values Added
First Time appeared Mermaid Project
Mermaid Project mermaid
CPEs cpe:2.3:a:mermaid_project:mermaid:*:*:*:*:*:node.js:*:*
Vendors & Products Mermaid Project
Mermaid Project mermaid
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}


Tue, 19 Aug 2025 17:15:00 +0000

Type Values Removed Values Added
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.
Title Mermaid does not properly sanitize architecture diagram iconText leading to XSS
Weaknesses CWE-79
References
Metrics cvssV4_0

{'score': 5.1, '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'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2025-08-19T17:09:32.759Z

Reserved: 2025-07-31T17:23:33.475Z

Link: CVE-2025-54880

cve-icon Vulnrichment

Updated: 2025-08-19T17:09:21.346Z

cve-icon NVD

Status : Analyzed

Published: 2025-08-19T17:15:41.060

Modified: 2025-10-20T15:12:18.170

Link: CVE-2025-54880

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.