Vulnerability

CVE-2025-54881

mediumCVSS 4.0 5.3Published 19 Aug 2025

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

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.

Affected products

The NVD has not attached product data to this record yet; the description names what is affected.

Weakness type

References

  • github.com /mermaid-js/mermaid/commit/5c69e5fdb004a6d0a2abe97e23d26e22…
  • github.com /mermaid-js/mermaid/commit/685516a85ec1df64cefd4fd15f26533b…
  • github.com /mermaid-js/mermaid/security/advisories/GHSA-7rqq-prvp-x9jh

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning