CVE-2026-71436

Mermaid XY Charts are vulnerable to an infinite loop DoS

State
Published
Severity
5.3 Medium
Published
Aug 6, 2026
Updated
Aug 7, 2026
Reserved
Aug 6, 2026

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
4.05.3 MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:LGitHub_M

Weaknesses

  • CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop')
  • CWE-1325 Improperly Controlled Sequential Memory Allocation

Affected Products

ProductVersions
mermaidmermaid-js
  • >= 10.6.0, < 10.9.8Affected
  • >= 11.0.0-alpha.1, < 11.16.1Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.