{"id":"CVE-2026-71436","published":"2026-08-06T19:49:44Z","modified":"2026-08-07T16:17:15Z","title":"Mermaid XY Charts are vulnerable to an infinite loop DoS","vendor":"mermaid-js","product":"mermaid","tier":"tail","description":{"text":"Mermaid is a JavaScript tool that uses Markdown-inspired text to create and modify diagrams and charts. From version 10.6.0 until 10.9.8 and 11.16.1, Mermaid XY Charts are vulnerable to an infinite loop denial of service in the setXAxisRangeData function when configuring an X-Axis with invalid parameters. Because each loop iteration appends an element to an array, this generally causes a RangeError to appear after a few seconds, but it may instead cause the page or JavaScript process to crash from memory exhaustion, depending on the environment. This issue is fixed in versions 10.9.8 and 11.16.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00581,"percentile":0.48689,"provenance":"source"},"cwes":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition"},{"id":"CWE-1325","name":"Improperly Controlled Sequential Memory Allocation"}],"references":[{"url":"https://github.com/mermaid-js/mermaid/security/advisories/GHSA-2v8p-3f2j-5mp7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/mermaid-js/mermaid/pull/8022","tags":["x_refsource_MISC"]},{"url":"https://github.com/mermaid-js/mermaid/commit/630aa7e5dd417e1f56bff2a1ce8df2c5ad08d289","tags":["x_refsource_MISC"]},{"url":"https://github.com/mermaid-js/mermaid/commit/ef60adc837d9d5107af21285f01e83dea309bd0a","tags":["x_refsource_MISC"]},{"url":"https://github.com/mermaid-js/mermaid/releases/tag/mermaid@11.16.1","tags":["x_refsource_MISC"]},{"url":"https://github.com/mermaid-js/mermaid/releases/tag/v10.9.8","tags":["x_refsource_MISC"]}],"priority":{"score":13.4,"factors":[{"name":"EPSS percentile","points":9.74},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"mermaid-js","affectedVersions":[{"vendor":"mermaid-js","product":"mermaid","versions":[">= 10.6.0, < 10.9.8",">= 11.0.0-alpha.1, < 11.16.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-08-07T16:15:22.877895Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"mermaid","vulnerableRanges":[">=10.6.0, <10.9.8",">=11.0.0-alpha.1, <11.16.1"],"patched":["10.9.8","11.16.1"],"from":["GHSA-2v8p-3f2j-5mp7"],"provenance":"source"}],"summary":{"text":"A flaw in the setXAxisRangeData function of the Mermaid XY Charts component of the mermaid JavaScript diagramming tool causes an infinite loop when an X-Axis is configured with invalid parameters. An attacker who can get a user to open or render crafted chart content, with no authentication required, can trigger a denial of service: rendering typically fails with a RangeError after a few seconds, but it may instead crash the page or JavaScript process through memory exhaustion, depending on the environment.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:45:51Z"},"euvd":{"id":"EUVD-2026-54241","exploited":false,"provenance":"source"}}