Skip to main content
← All vulnerabilities
CVE-2025-54881GHSA-7RQQ-PRVP-X9JH

Mermaid improperly sanitizes of sequence diagram labels leading to XSS

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 11.10.0, 10.9.4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • mermaid-js mermaid

    From 10.9.0-rc.1 · through 11.9.0

  • mermaidnpm

    From 11.0.0-alpha.1 · fixed in 11.10.0

  • mermaidnpm

    From 10.9.0-rc.1 · fixed in 10.9.4

References 3

GitHub · mermaid-js/mermaid