---
id: CVE-2026-71436
title: >-
  Mermaid is a JavaScript tool that uses Markdown-inspired text to create and
  modify diagrams and charts
summary: >-
  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
  setXAxisR…
severity: medium
cwe:
  - CWE-835
  - CWE-1325
vendor: mermaid
product: mermaid
affected:
  - 'mermaid >= 10.6.0, < 10.9.8'
  - 'mermaid >= 11.0.0-alpha.1, < 11.16.1'
patched:
  - mermaid 10.9.8
  - mermaid 11.16.1
published: '2026-08-06'
updated: '2026-09-08'
sourceUpdated: '2026-09-08T20:53:06.753'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-71436'
references:
  - url: >-
      https://github.com/mermaid-js/mermaid/commit/630aa7e5dd417e1f56bff2a1ce8df2c5ad08d289
    label: security-advisories@github.com
  - url: >-
      https://github.com/mermaid-js/mermaid/commit/ef60adc837d9d5107af21285f01e83dea309bd0a
    label: security-advisories@github.com
  - url: 'https://github.com/mermaid-js/mermaid/pull/8022'
    label: security-advisories@github.com
  - url: 'https://github.com/mermaid-js/mermaid/releases/tag/mermaid@11.16.1'
    label: security-advisories@github.com
  - url: 'https://github.com/mermaid-js/mermaid/releases/tag/v10.9.8'
    label: security-advisories@github.com
  - url: >-
      https://github.com/mermaid-js/mermaid/security/advisories/GHSA-2v8p-3f2j-5mp7
    label: security-advisories@github.com
  - url: 'https://github.com/advisories/GHSA-2v8p-3f2j-5mp7'
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-71436.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-71436'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2512242'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-71436'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-71436'
  - url: 'https://access.redhat.com/errata/RHSA-2026:68754'
tags:
  - nvd
  - ghsa
  - npm
  - csaf
  - vex
  - red-hat
epss: 0.00581
epssPercentile: 0.45371
aliases:
  - GHSA-2v8p-3f2j-5mp7
ecosystem: npm
ingestedAt: '2026-08-06T20:03:56.471Z'
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cvssSource: vendor
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-71436)

Affected packages:

- `mermaid >= 10.6.0, < 10.9.8`
- `mermaid >= 11.0.0-alpha.1, < 11.16.1`

Patched in:

- `mermaid 10.9.8`
- `mermaid 11.16.1`

Source: https://github.com/advisories/GHSA-2v8p-3f2j-5mp7

## Vendor advisories

- **RHSA-2026:68754** · Red Hat · fixed in: Red Hat OpenShift Dev Spaces 3.30 · released 2026-09-17 · [advisory](https://access.redhat.com/errata/RHSA-2026:68754)
