# CVE-2026-71436: Mermaid XY Charts are vulnerable to an infinite loop DoS

- Severity: Medium 5.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Published: 2026-08-06T19:49:44.739Z
- Modified: 2026-10-24T15:10:00.190Z
- Also known as: GHSA-2v8p-3f2j-5mp7
- Weaknesses: CWE-835, CWE-1325
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- mermaid-js mermaid: >= 10.6.0, < 10.9.8; >= 11.0.0-alpha.1, < 11.16.1
- mermaid (npm): from 10.6.0 before 10.9.8; from 11.0.0-alpha.1 before 11.16.1

## Every score

- GitHub_M: CVSS:4.0 5.3 Medium `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`
- GitHub: CVSS:4.0 Medium `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`

## References

- <https://github.com/mermaid-js/mermaid/security/advisories/GHSA-2v8p-3f2j-5mp7> (web)
- <https://github.com/mermaid-js/mermaid/pull/8022> (web)
- <https://github.com/mermaid-js/mermaid/commit/630aa7e5dd417e1f56bff2a1ce8df2c5ad08d289> (web)
- <https://github.com/mermaid-js/mermaid/commit/ef60adc837d9d5107af21285f01e83dea309bd0a> (web)
- <https://github.com/mermaid-js/mermaid/releases/tag/mermaid@11.16.1> (web)
- <https://github.com/mermaid-js/mermaid/releases/tag/v10.9.8> (web)
- <https://github.com/mermaid-js/mermaid> (package)

## Sources

- CVE List: [CVE-2026-71436](https://www.cve.org/CVERecord?id=CVE-2026-71436), CVE Terms of Use, modified 2026-08-07
- GitHub Advisory Database: [GHSA-2v8p-3f2j-5mp7](https://github.com/advisories/GHSA-2v8p-3f2j-5mp7), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-71436](https://nvd.nist.gov/vuln/detail/CVE-2026-71436), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-71436 · Whole record: https://cve.day/CVE-2026-71436.json · Rebuilt by cve.day 2026-11-25T22:59:31.809Z
