Infinite loop in mermaid - #VU140935

 

Infinite loop in mermaid - #VU140935

Published: August 4, 2026


Vulnerability identifier: #VU140935
CSH Severity: Low
CVSS v4: 4.6 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-835
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service.

The vulnerability exists due to a loop with an unreachable exit condition in the setXAxisRangeData() function when processing crafted XY chart input with invalid x-axis parameters. A remote attacker can supply specially crafted chart data to cause a denial of service.

User interaction is required to load or render the crafted chart content.


Affected software

mermaid

Remediation

Install security update from vendor's website.

mermaid - addressed in versions 10.9.8, 11.16.1

External References