CVE-2025-54880
Mermaid Project Mermaid vulnerability
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.
Affected products
Mermaid. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Mermaid Project Mermaid runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/mermaid-js/mermaid/security/advisories/GHSA-8gwm-58g9-j8pw · Exploit
- github.com/mermaid-js/mermaid/commit/2aa83302795183ea5c65caec3da1edd6cb4791fc · Patch
- github.com/mermaid-js/mermaid/commit/734bde38777c9190a5a72e96421c83424442d4e4
- nvd.nist.gov/vuln/detail/CVE-2025-54880
- github.com/advisories/GHSA-8gwm-58g9-j8pw
- nvd.nist.gov/vuln/detail/CVE-2025-54880
- cve.org/CVERecord?id=CVE-2025-54880
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.