CVE-2025-54881
Mermaid is a JavaScript based diagramming and charting tool that …
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.
What to do now
- Check your exposureFind out whether the affected software 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/commit/5c69e5fdb004a6d0a2abe97e23d26e223a059832
- github.com/mermaid-js/mermaid/commit/685516a85ec1df64cefd4fd15f26533be87d458e
- github.com/mermaid-js/mermaid/security/advisories/GHSA-7rqq-prvp-x9jh
- nvd.nist.gov/vuln/detail/CVE-2025-54881
- github.com/advisories/GHSA-7rqq-prvp-x9jh
- nvd.nist.gov/vuln/detail/CVE-2025-54881
- cve.org/CVERecord?id=CVE-2025-54881
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.