CVE-2026-71439: Mermaid radar diagrams are vulnerable to DoS
Impact Mermaid radar diagrams allow arbitrary large values for ticks, which can cause high CPU usage, freezing the webpage/JavaScript process for long periods of time, until the process is eventually killed due to OOM/running out of memory.
Published Aug 6, 2026
Affected packages
mermaid
- Ecosystem
- npm
- Affected
- >= 11.6.0, < 11.16.1
- Fixed in
- 11.16.1
- Check
npm ls mermaid
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
Mermaid radar diagrams allow arbitrary large values for ticks, which can cause high CPU usage, freezing the webpage/JavaScript process for long periods of time, until the process is eventually killed due to OOM/running out of memory.
Proof-of-concept
radar-beta
axis a, b
curve c {1, 1}
ticks 1000000000Patches
_Has the problem been patched? What versions should users upgrade to?_
This problem has been patched by https://github.com/mermaid-js/mermaid/commit/59b22fad2b3bb04f87a476c84a8a2b24679e607e, which was released in Mermaid v11.16.1
Workarounds
_Is there a way for users to fix or remediate the vulnerability without upgrading?_
There are no known workarounds without updating to a patched version of mermaid.
References
_Are there any links users can visit to find out more?_
- https://github.com/mermaid-js/mermaid/commit/59b22fad2b3bb04f87a476c84a8a2b24679e607e
- https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.16.1
Credited to aloisklink.
References
- https://github.com/mermaid-js/mermaid/security/advisories/GHSA-rhh3-jpg6-66xh
- https://github.com/mermaid-js/mermaid/pull/8022
- https://github.com/mermaid-js/mermaid/commit/59b22fad2b3bb04f87a476c84a8a2b24679e607e
- https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.16.1
- https://github.com/advisories/GHSA-rhh3-jpg6-66xh
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesCVE-2026-50159
Mermaid allows CSS injection applying to sibling elements of the diagram
medium5.3Aug 6, 2026CVE-2026-71436
Mermaid XY Charts are vulnerable to an infinite loop DoS
medium5.3Aug 6, 2026CVE-2026-71437
Mermaid Architecture diagrams are vulnerable to prototype pollution
medium6.5Aug 6, 2026CVE-2026-71438
Mermaid configuration APIs allow prototype pollution
low2.4Aug 6, 2026CVE-2026-41148
Mermaid: Improper sanitization of `classDefs` in diagrams leads to CSS injection
medium5.3May 11, 2026CVE-2026-41149
Mermaid: Improper sanitization of `classDef` in state diagrams leads to HTML injection
medium5.3May 11, 2026
