{"id":"CVE-2026-41150","aliases":["CVE-2026-41150","GHSA-6m6c-36f7-fhxh"],"related":[],"kind":"vulnerability","state":"published","title":"Mermaid Gantt Charts are vulnerable to an Infinite Loop DoS","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nMermaid v11.14.0 and earlier are vulnerable to a denial-of-service attack when rendering gantt charts, if they use the [`excludes` attribute](https://mermaid.js.org/syntax/gantt.html?#excludes) to exclude all dates.\n\nExample:\n\n```\ngantt\n  excludes monday,tuesday,wednesday,thursday,friday,saturday,sunday\n  DoS :2025-01-01, 1d\n```\n\n`mermaid.parse` is unaffected, unless you then call the `ganttDb.getTasks()` (which is called when rendering a diagram).\n\n### Patches\n\nThis has been patched in:\n\n- [v11.15.0](https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.15.0) (see [faafb5d49106dd32c367f3882505f2dd625aa30e](https://github.com/mermaid-js/mermaid/commit/faafb5d49106dd32c367f3882505f2dd625aa30e))\n- [v10.9.6](https://github.com/mermaid-js/mermaid/releases/tag/v10.9.6) (see [a59ea56174712ee5430dfd5bc877cb5151f501a6](https://github.com/mermaid-js/mermaid/commit/a59ea56174712ee5430dfd5bc877cb5151f501a6))\n\n### Workarounds\n\nThere are no workarounds available without updating to a newer version of mermaid.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Mermaid es una herramienta de JavaScript que utiliza texto inspirado en Markdown para crear y modificar diagramas y gráficos. Antes de las versiones 10.9.6 y 11.15.0, existe un ataque de denegación de servicio al renderizar diagramas de Gantt, si estos utilizan el atributo excludes para excluir todas las fechas. mermaid.parse no se ve afectado, a menos que luego se llame a ganttDb.getTasks() (lo cual se invoca al renderizar un diagrama). Esta vulnerabilidad se corrige en las versiones 10.9.6 y 11.15.0.","source":"nvd"}],"published":"2026-05-11T19:36:55.000Z","modified":"2026-09-10T03:50:45.806Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-835"],"affected":[{"ranges":[{"version":">= 11.0.0-alpha.1, < 11.15.0","status":"affected"},{"version":"< 10.9.6","status":"affected"}],"vendor":"mermaid-js","product":"mermaid","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"11.0.0-alpha.1","status":"affected","fixed":"11.15.0"}],"ecosystem":"npm","package":"mermaid","purl":"pkg:npm/mermaid","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"10.9.6"}],"ecosystem":"npm","package":"mermaid","purl":"pkg:npm/mermaid","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"10.9.6"},{"status":"affected","introduced":"11.0.0","fixed":"11.15.0"}],"vendor":"mermaid_project","product":"mermaid","cpe":"cpe:2.3:a:mermaid_project:mermaid:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/mermaid-js/mermaid/security/advisories/GHSA-6m6c-36f7-fhxh","tags":["exploit","third-party-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mermaid-js/mermaid/commit/a59ea56174712ee5430dfd5bc877cb5151f501a6","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mermaid-js/mermaid/commit/faafb5d49106dd32c367f3882505f2dd625aa30e","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.15.0","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mermaid-js/mermaid/releases/tag/v10.9.6","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41150","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/mermaid-js/mermaid","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-05-29T16:16:21.549Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-41150","url":"https://www.cve.org/CVERecord?id=CVE-2026-41150","licence":"CVE Terms of Use","modified":"2026-05-29T16:17:31.324Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6m6c-36f7-fhxh","url":"https://github.com/advisories/GHSA-6m6c-36f7-fhxh","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:45.806Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-41150","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41150","licence":"Public domain","modified":"2026-07-21T12:10:00.090Z"}],"updatedAt":"2026-11-25T22:59:23.325Z","epss":{"score":0.00384,"percentile":0.34605,"date":"2026-12-01T12:00:22.000Z"}}