Infinite loop in mermaid - CVE-2026-41150

 

Infinite loop in mermaid - CVE-2026-41150

Published: May 12, 2026


Vulnerability identifier: #VU131136
CSH Severity: Low
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-41150
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 loop with an unreachable exit condition in gantt chart rendering when rendering gantt charts with the excludes attribute configured to exclude all dates. A remote attacker can supply a specially crafted gantt chart definition to cause a denial of service.

mermaid.parse alone is unaffected unless ganttDb.getTasks() is called, such as during diagram rendering.


Affected software

mermaid

How to mitigate CVE-2026-41150

Install security update from vendor's website.

mermaid - addressed in versions 10.9.6, 11.15.0

External References

Related Security Bulletins