Skip to content
OpenAdvisories
Medium · 5.3 CVE-2026-71436 EUVD-2026-54241GHSA-2v8p-3f2j-5mp7

Mermaid XY Charts are vulnerable to an infinite loop DoS

Published Aug 6, 2026 · Updated Aug 7, 2026 · Assigned by GitHub_M

Description

Mermaid is a JavaScript tool that uses Markdown-inspired text to create and modify diagrams and charts. From version 10.6.0 until 10.9.8 and 11.16.1, Mermaid XY Charts are vulnerable to an infinite loop denial of service in the setXAxisRangeData function when configuring an X-Axis with invalid parameters. Because each loop iteration appends an element to an array, this generally causes a RangeError to appear after a few seconds, but it may instead cause the page or JavaScript process to crash from memory exhaustion, depending on the environment. This issue is fixed in versions 10.9.8 and 11.16.1.

Affected products

VendorProductAffectedFixed
mermaid-js mermaid >= 10.6.0, < 10.9.8, >= 11.0.0-alpha.1, < 11.16.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-mermaid No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 node-mermaid No fix yet —
Ubuntu 22.04 LTS node-mermaid No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling jupyter-base-notebook 7.6.3-r2 —
Wolfi rolling langfuse-3-compat 3.225.7-r6 —
Wolfi rolling langfuse-3-worker 3.225.1-r2 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm mermaid >= 10.6.0, < 10.9.8 10.9.8 GHSA-2v8p-3f2j-5mp7
npm mermaid >= 11.0.0-alpha.1, < 11.16.1 11.16.1 GHSA-2v8p-3f2j-5mp7

References