Improperly Controlled Sequential Memory Allocation Affecting mermaid package, versions >=10.6.0 <10.9.8>=11.0.0-alpha.1 <11.16.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.33% (26th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-MERMAID-18592327
  • published8 Aug 2026
  • disclosed6 Aug 2026
  • creditaloisklink

Introduced: 6 Aug 2026

NewCVE-2026-71436  (opens in a new tab)
CWE-1325  (opens in a new tab)
CWE-835  (opens in a new tab)

How to fix?

Upgrade mermaid to version 10.9.8, 11.16.1 or higher.

Overview

mermaid is a package for generation of diagrams and flowcharts from text in a similar manner as markdown.

Affected versions of this package are vulnerable to Improperly Controlled Sequential Memory Allocation in the setXAxisRangeData function when configuring an X-Axis with invalid parameters. An attacker can cause the JavaScript process or page to crash due to memory exhaustion by supplying specially crafted input that triggers an infinite loop.

CVSS Base Scores

version 4.0
version 3.1