GHSA-6m6c-36f7-fhxh

Suggest an improvement
Source
https://github.com/advisories/GHSA-6m6c-36f7-fhxh
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-6m6c-36f7-fhxh/GHSA-6m6c-36f7-fhxh.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-6m6c-36f7-fhxh
Aliases
Downstream
CGA (58)
MINI (2)
Published
2026-05-11T19:36:55Z
Modified
2026-09-10T03:50:45Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
  • 5.3 (Medium) CVSS_V4 - 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 CVSS Calculator
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.

Database specific
{
    "cwe_ids":  [
        "CWE-835"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-05-11T19:36:55Z",
    "nvd_published_at":  "2026-05-29T15:16:22Z",
    "severity":  "MODERATE"
}
References

Affected packages

npm / mermaid

Package

Affected ranges

Type
SEMVER
Events
Introduced
11.0.0-alpha.1
Fixed
11.15.0

Database specific

last_known_affected_version_range
"<= 11.14.0"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-6m6c-36f7-fhxh/GHSA-6m6c-36f7-fhxh.json"

npm / mermaid

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
10.9.6

Database specific

last_known_affected_version_range
"<= 10.9.5"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-6m6c-36f7-fhxh/GHSA-6m6c-36f7-fhxh.json"