Skip to main content
← All vulnerabilities
CVE-2026-71436GHSA-2V8P-3F2J-5MP7

Mermaid XY Charts are vulnerable to an infinite loop DoS

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

Summary

Mermaid is a JavaScript tool that uses Markdown-inspired text to create and modify diagrams and charts. From version 10.6.0 until 10.9.8 and 11.16.1, Mermaid XY Charts are vulnerable to an infinite loop denial of service in the setXAxisRangeData function when configuring an X-Axis with invalid parameters. Because each loop iteration appends an element to an array, this generally causes a RangeError to appear after a few seconds, but it may instead cause the page or JavaScript process to crash from memory exhaustion, depending on the environment. This issue is fixed in versions 10.9.8 and 11.16.1.

Timeline

  1. CVE published
  2. CISA SSVC assessment

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

  3. Record last updated

Affected versions

  • mermaid-js mermaid

    From 10.6.0 · fixed in 10.9.8; From 11.0.0-alpha.1 · fixed in 11.16.1

  • mermaidnpm

    From 10.6.0 · fixed in 10.9.8

  • mermaidnpm

    From 11.0.0-alpha.1 · fixed in 11.16.1

References 6

GitHub · mermaid-js/mermaid