{"cve":"CVE-2025-54880","nvd":{"published":"2025-08-19T17:15:41.060","modified":"2026-06-17T09:40:51.440","status":"Analyzed","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.","cvss_v4":{"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","score":5.1},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79"],"references":["https://github.com/mermaid-js/mermaid/commit/2aa83302795183ea5c65caec3da1edd6cb4791fc","https://github.com/mermaid-js/mermaid/commit/734bde38777c9190a5a72e96421c83424442d4e4","https://github.com/mermaid-js/mermaid/security/advisories/GHSA-8gwm-58g9-j8pw","https://github.com/mermaid-js/mermaid/security/advisories/GHSA-8gwm-58g9-j8pw"],"products":["mermaid_project:mermaid"],"source":"nvd","synced_at":"2026-10-19T22:07:46.309729541+00:00"},"epss":{"cve":"CVE-2025-54880","score":0.0041,"percentile":0.35239,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-8gwm-58g9-j8pw","url":"https://osv.dev/vulnerability/GHSA-8gwm-58g9-j8pw","summary":"Mermaid does not properly sanitize architecture diagram iconText leading to XSS","modified":"2026-08-07T08:12:20.025979274Z","packages":[{"ecosystem":"npm","name":"mermaid","purl":"pkg:npm/mermaid","ranges":[">=11.1.0 <11.10.0"],"fixed":["11.10.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}