cve.bz

CVE-2026-71436 mermaid-js mermaid: Infinite Loop

5.3 mediumEPSS 0.6%Fix available

Medium (5.3) in mermaid-js mermaid. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in mermaid 10.9.8, 11.16.1.

On this page
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.

Severity

CVSS 4.0

5.3 medium
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
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 49th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-08-07. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-835 Loop with Unreachable Exit Condition (Infinite Loop)
CWE-1325 Improperly Controlled Sequential Memory Allocation
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

  • mermaid (npm): fixed in 10.9.8, 11.16.1

Ask an AI about this CVE

Show the promptExplain CVE-2026-71436 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-71436?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-71436?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-71436 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

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

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-2v8p-3f2j-5mp7npmmermaid>=10.6.0 <10.9.810.9.8
GHSA-2v8p-3f2j-5mp7npmmermaid>=11.0.0-alpha.1 <11.16.111.16.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian14node-mermaidno fix listedDEBIAN-CVE-2026-71436
Ubuntu22.04:LTS, 26.10node-mermaidno fix listedUBUNTU-CVE-2026-71436

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Red Hat ships Mermaid (a JavaScript diagramming library) embedded in code-server based developer workbench images: OpenShift AI's odh-workbench-codeserver-datascience-cpu-py312 workbench image and OpenShift Dev Spaces' code-rhel9 image. The bundled version falls within the vulnerable range (>=10.6.0,<10.9.8 or below 11.16.1), exposing users who build interactive XY chart diagrams in the editor to a client-side denial of service (infinite loop / memory exhaustion) triggered by invalid X-Axis parameters. Resolution is delegated to the workbench/Dev Spaces image maintainers to bump the pinned mermaid dependency.

Red Hat's mitigation

Avoid rendering or previewing untrusted Mermaid diagram content containing XY chart definitions with attacker-controlled X-Axis parameters in the affected workbench images until the pinned mermaid dependency is upgraded to 10.9.8+/11.16.1+.

ProductPackageStateAdvisory
Red Hat OpenShift Dev Spaces 3.30devspaces/code-rhel9:1789145741Fixed 2026-09-17RHSA-2026:68754
Red Hat Build of Podman Desktoprh-podman-desktop.gitNot affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-71436.

Attack patterns (CAPEC)

  • CAPEC-130 Excessive Allocation Likelihood: Medium · Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON