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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:14 | node-mermaid | no fix listed | DEBIAN-CVE-2026-41150 |
| Ubuntu:22.04:LTS | node-mermaid | no fix listed | UBUNTU-CVE-2026-41150 |
| Ubuntu:26.10 | node-mermaid | no fix listed | UBUNTU-CVE-2026-41150 |
| npm | mermaid | 11.15.0 | GHSA-6m6c-36f7-fhxh |
| npm | mermaid | 10.9.6 | GHSA-6m6c-36f7-fhxh |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- https://github.com/mermaid-js/mermaid/security/advisories/GHSA-6m6c-36f7-fhxh x_refsource_CONFIRM
- https://github.com/mermaid-js/mermaid/commit/a59ea56174712ee5430dfd5bc877cb5151f501a6 x_refsource_MISC
- https://github.com/mermaid-js/mermaid/commit/faafb5d49106dd32c367f3882505f2dd625aa30e x_refsource_MISC
- https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.15.0 x_refsource_MISC
- https://github.com/mermaid-js/mermaid/releases/tag/v10.9.6 x_refsource_MISC