Skip to main content
EPSS 0.4%top 65%

CVE-2026-71436: CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop') in mermaid-js mermaid

0
Medium
Published: 08/06/2026 (08/06/2026, 19:49:44 UTC)
Source: CVE Database V5
Vendor/Project: mermaid-js
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
Low
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L

Affected software

mermaid-js

mermaid

Affected versions
>=10.6.0 <10.9.8>=11.0.0-alpha.1 <11.16.1
mermaid-js/mermaid
pkg:npm/mermaid-js/mermaid
Affected versions
>=10.6.0 <10.9.8=11.16.0

Run 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

AILast updated: 08/14/2026, 16:11:05 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses