ADVISORIES

Vulnerability

CVE-2025-54881

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.

2 advisories report this vulnerability, across 2 ecosystems.

Medium severity All Ubuntu 1npm 1

Advisories

  • GHSA-7rqq-prvp-x9jh

    Mermaid improperly sanitizes sequence diagram labels leading to XSS

    Moderate CVE-2025-54881 npm Updated 7 August 2026
  • UBUNTU-CVE-2025-54881

    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…

    CVE-2025-54881 Ubuntu Updated 17 October 2026

References