CVE-2025-54880
MEDIUM 5.1CVSS 4.0Mermaid does not properly sanitize architecture diagram iconText leading to XSS
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.
- Published
- 19 Aug 2025
- Last modified
- 7 Aug 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-79
- Also known as
- GHSA-8gwm-58g9-j8pw
- Sources
- NVDJSONOSV GHSA-8gwm-58g9-j8pwJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 5.1 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mermaid_project | mermaidcpe:2.3:a:mermaid_project:mermaid:*:*:*:*:*:node.js:*:* |
>= 11.1.0, < 11.10.0 | 11.10.0 |
| OSV | npm | mermaid | >= 11.1.0, < 11.10.0 | 11.10.0 |
References
- https://github.com/mermaid-js/mermaid/commit/2aa83302795183ea5c65caec3da1edd6cb4791fc · Patch, WEB
- https://github.com/mermaid-js/mermaid/commit/734bde38777c9190a5a72e96421c83424442d4e4 · Product, WEB
- https://github.com/mermaid-js/mermaid/security/advisories/GHSA-8gwm-58g9-j8pw · Exploit, Patch, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-54880 · ADVISORY
- https://github.com/mermaid-js/mermaid · PACKAGE
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 19 Aug 2025)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 19 Aug 2025)