CVE-2026-71436: CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop') in mermaid-js mermaid
Mermaid-js versions from 10.6.0 up to but not including 10.9.8, and version 11.16.0, contain a vulnerability in the XY Charts feature where an infinite loop can occur in the setXAxisRangeData function when invalid parameters are used. This infinite loop can lead to a denial of service by causing a RangeError or crashing the JavaScript process due to memory exhaustion. The issue is resolved in versions 10.9.8 and 11.16.1.
AI Analysis
Technical Summary
The vulnerability identified as CVE-2026-71436 affects the mermaid-js mermaid JavaScript library, specifically in the XY Charts component. When configuring the X-Axis with invalid parameters, the setXAxisRangeData function enters an infinite loop due to an unreachable exit condition. Each iteration appends an element to an array, which eventually triggers a RangeError or causes the JavaScript environment to crash from memory exhaustion. This affects versions >=10.6.0 <10.9.8 and =11.16.0. The issue is fixed in versions 10.9.8 and 11.16.1.
Potential Impact
Exploitation of this vulnerability results in a denial of service condition by causing the JavaScript process or page to crash or throw a RangeError due to an infinite loop and memory exhaustion. This can disrupt applications using affected versions of mermaid-js, impacting availability.
Mitigation Recommendations
This vulnerability is fixed in mermaid-js versions 10.9.8 and 11.16.1. Users should upgrade to these or later versions to remediate the issue. No vendor advisory states otherwise, so patching is the recommended mitigation.
CVE-2026-71436: CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop') in mermaid-js mermaid
Description
Mermaid-js versions from 10.6.0 up to but not including 10.9.8, and version 11.16.0, contain a vulnerability in the XY Charts feature where an infinite loop can occur in the setXAxisRangeData function when invalid parameters are used. This infinite loop can lead to a denial of service by causing a RangeError or crashing the JavaScript process due to memory exhaustion. The issue is resolved in versions 10.9.8 and 11.16.1.
CVSS v4.0
Score 5.3medium
Affected software
mermaid-js
mermaid
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
The vulnerability identified as CVE-2026-71436 affects the mermaid-js mermaid JavaScript library, specifically in the XY Charts component. When configuring the X-Axis with invalid parameters, the setXAxisRangeData function enters an infinite loop due to an unreachable exit condition. Each iteration appends an element to an array, which eventually triggers a RangeError or causes the JavaScript environment to crash from memory exhaustion. This affects versions >=10.6.0 <10.9.8 and =11.16.0. The issue is fixed in versions 10.9.8 and 11.16.1.
Potential Impact
Exploitation of this vulnerability results in a denial of service condition by causing the JavaScript process or page to crash or throw a RangeError due to an infinite loop and memory exhaustion. This can disrupt applications using affected versions of mermaid-js, impacting availability.
Mitigation Recommendations
This vulnerability is fixed in mermaid-js versions 10.9.8 and 11.16.1. Users should upgrade to these or later versions to remediate the issue. No vendor advisory states otherwise, so patching is the recommended mitigation.
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
Threat ID: 6a75070fbf8831d5395f5dcd
Added to database: 08/06/2026, 22:13:35 UTC
Last enriched: 08/14/2026, 16:11:05 UTC
Last updated: 09/21/2026, 22:01:37 UTC
Views: 69
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.