{"id":"CVE-2025-54880","published":"2025-08-19T16:58:41Z","modified":"2025-08-19T17:09:32Z","title":"Mermaid does not properly sanitize architecture diagram iconText leading to XSS","vendor":"mermaid-js","product":"mermaid","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.1,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00467,"percentile":0.41329,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/mermaid-js/mermaid/security/advisories/GHSA-8gwm-58g9-j8pw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/mermaid-js/mermaid/commit/2aa83302795183ea5c65caec3da1edd6cb4791fc","tags":["x_refsource_MISC"]},{"url":"https://github.com/mermaid-js/mermaid/commit/734bde38777c9190a5a72e96421c83424442d4e4","tags":["x_refsource_MISC"]}],"priority":{"score":11.8,"factors":[{"name":"EPSS percentile","points":8.27},{"name":"CVSS severity","points":3.57}]},"vendorSlug":"mermaid-js","affectedVersions":[{"vendor":"mermaid-js","product":"mermaid","versions":[">= 11.1.0, < 11.10.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-08-19T17:09:29.632307Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"mermaid","vulnerableRanges":[">=11.1.0, <11.10.0"],"patched":["11.10.0"],"from":["GHSA-8gwm-58g9-j8pw"],"provenance":"source"}],"summary":{"text":"Mermaid, the JavaScript diagramming tool, contains a flaw in its architecture diagram rendering where user-supplied icon text is passed unsanitized to the d3 html() method, creating a cross-site scripting sink in mermaid 11.9.0 and earlier under default configuration. An attacker who can get a user to view a crafted diagram, which requires low privileges and user interaction, can inject and run script in that user's browser session.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:04:07Z"},"euvd":{"id":"EUVD-2025-25190","exploited":false,"provenance":"source"}}