Live threats

All CVEs / mermaid-js

CVE-2026-71436mermaid-js mermaid

Medium 5.3 No auth needed

Priority
47
CVSS 4.0
5.3
EPSS
—
Auth required
No
Published
Aug 6, 2026
Updated
Oct 24, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-835, CWE-1325
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for mermaid.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm mermaid ≥ 10.6.0 < 10.9.8 10.9.8 npm install mermaid@10.9.8
npm mermaid ≥ 11.0.0-alpha.1 < 11.16.1 11.16.1 npm install mermaid@11.16.1

Per OSV / GitHub Advisories (GHSA-2v8p-3f2j-5mp7). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.