Vulnerability · Published May 29, 2026 · Assigned by GitHub_M

CVE-2026-41150Mermaid Gantt Charts are vulnerable to an Infinite Loop DoS

Medium 5.3

In plain English

A medium-severity infinite loop in mermaid from mermaid-js. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 33% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)5.3Medium
Exploit odds (30 days)0.4%top 67.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

Mermaid is a JavaScript tool that uses Markdown-inspired text to create and modify diagrams and charts. Prior to 10.9.6 and 11.15.0, there is a denial-of-service attack when rendering gantt charts, if they use the excludes attribute to exclude all dates. mermaid.parse is unaffected, unless you then call the ganttDb.getTasks() (which is called when rendering a diagram). This vulnerability is fixed in 10.9.6 and 11.15.0.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:14node-mermaidno fix listedDEBIAN-CVE-2026-41150
Ubuntu:22.04:LTSnode-mermaidno fix listedUBUNTU-CVE-2026-41150
Ubuntu:26.10node-mermaidno fix listedUBUNTU-CVE-2026-41150
npmmermaid11.15.0GHSA-6m6c-36f7-fhxh
npmmermaid10.9.6GHSA-6m6c-36f7-fhxh

Affected products (as reported)

VendorProductVersions
mermaid-js mermaid >= 11.0.0-alpha.1, < 11.15.0< 10.9.6

Weakness: CWE-835 · 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

References