{"cve":"CVE-2025-54881","nvd":{"published":"2025-08-19T17:15:41.247","modified":"2026-06-17T09:40:51.563","status":"Deferred","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.","cvss_v4":{"vector":"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","score":5.3},"cvss_v3":null,"cwes":["CWE-79"],"references":["https://github.com/mermaid-js/mermaid/commit/5c69e5fdb004a6d0a2abe97e23d26e223a059832","https://github.com/mermaid-js/mermaid/commit/685516a85ec1df64cefd4fd15f26533be87d458e","https://github.com/mermaid-js/mermaid/security/advisories/GHSA-7rqq-prvp-x9jh"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:07:46.309729541+00:00"},"epss":{"cve":"CVE-2025-54881","score":0.00799,"percentile":0.56552,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-7rqq-prvp-x9jh","url":"https://osv.dev/vulnerability/GHSA-7rqq-prvp-x9jh","summary":"Mermaid improperly sanitizes sequence diagram labels leading to XSS","modified":"2026-08-07T08:12:11.518764754Z","packages":[{"ecosystem":"npm","name":"mermaid","purl":"pkg:npm/mermaid","ranges":[">=11.0.0-alpha.1 <11.10.0"],"fixed":["11.10.0"]},{"ecosystem":"npm","name":"mermaid","purl":"pkg:npm/mermaid","ranges":[">=10.9.0-rc.1 <10.9.4"],"fixed":["10.9.4"]}]}],"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."]}