Advisory

GHSA-6m6c-36f7-fhxh

Also known as: CVE-2026-41150

Summary

Mermaid Gantt Charts are vulnerable to an Infinite Loop DoS

Details

Impact

Mermaid v11.14.0 and earlier are vulnerable to a denial-of-service attack when rendering gantt charts, if they use the `excludes` attribute to exclude all dates.

Example:

gantt
  excludes monday,tuesday,wednesday,thursday,friday,saturday,sunday
  DoS :2025-01-01, 1d

mermaid.parse is unaffected, unless you then call the ganttDb.getTasks() (which is called when rendering a diagram).

Patches

This has been patched in:

Workarounds

There are no workarounds available without updating to a newer version of mermaid.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-05-11 19:36 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

mermaid

npm · All systems

Affected

  • introduced 11.0.0-alpha.1, fixed 11.15.0 (semver)

Fixed versions

11.15.0

Fix

mermaid

npm · All systems

Affected

  • introduced 0, fixed 10.9.6 (semver)

Fixed versions

10.9.6

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences