CVE-2026-71436: CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop') in mermaid-js mermaid
Mermaid versions from 10.6.0 up to but not including 10.9.8 and version 11.16.1 are affected by an infinite loop vulnerability in the setXAxisRangeData function when invalid parameters are used to configure the X-Axis. This can cause a denial of service due to memory exhaustion or a RangeError. The issue is fixed in versions 10.9.8 and 11.16.1.
AI Analysis
Technical Summary
Mermaid, a JavaScript tool for creating diagrams and charts, has an infinite loop vulnerability (CWE-835) in its XY Charts feature affecting versions 10.6.0 through 10.9.7 and 11.16.0. The vulnerability occurs in the setXAxisRangeData function when invalid parameters are passed for the X-Axis configuration. Each iteration of the loop appends elements to an array without a reachable exit condition, leading to a denial of service via memory exhaustion or a RangeError. This flaw is resolved in versions 10.9.8 and 11.16.1.
Potential Impact
Exploitation of this vulnerability can cause the JavaScript process or page to crash due to memory exhaustion or trigger a RangeError, resulting in denial of service. There is no indication of privilege escalation or data compromise. The impact is limited to availability disruption.
Mitigation Recommendations
This vulnerability is fixed in Mermaid versions 10.9.8 and 11.16.1. Users should upgrade to these versions or later to remediate the issue. No other mitigation or workaround is indicated.
CVE-2026-71436: CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop') in mermaid-js mermaid
Description
Mermaid versions from 10.6.0 up to but not including 10.9.8 and version 11.16.1 are affected by an infinite loop vulnerability in the setXAxisRangeData function when invalid parameters are used to configure the X-Axis. This can cause a denial of service due to memory exhaustion or a RangeError. The issue is fixed in versions 10.9.8 and 11.16.1.
CVSS v4.0
Score 5.3medium
Affected software
pkg:npm/mermaid-js/mermaidRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Mermaid, a JavaScript tool for creating diagrams and charts, has an infinite loop vulnerability (CWE-835) in its XY Charts feature affecting versions 10.6.0 through 10.9.7 and 11.16.0. The vulnerability occurs in the setXAxisRangeData function when invalid parameters are passed for the X-Axis configuration. Each iteration of the loop appends elements to an array without a reachable exit condition, leading to a denial of service via memory exhaustion or a RangeError. This flaw is resolved in versions 10.9.8 and 11.16.1.
Potential Impact
Exploitation of this vulnerability can cause the JavaScript process or page to crash due to memory exhaustion or trigger a RangeError, resulting in denial of service. There is no indication of privilege escalation or data compromise. The impact is limited to availability disruption.
Mitigation Recommendations
This vulnerability is fixed in Mermaid versions 10.9.8 and 11.16.1. Users should upgrade to these versions or later to remediate the issue. No other mitigation or workaround is indicated.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-08-06T16:28:51.183Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a75070fbf8831d5395f5dcd
Added to database: 08/06/2026, 22:13:35 UTC
Last enriched: 08/06/2026, 22:28:31 UTC
Last updated: 08/07/2026, 00:40:27 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.