Skip to main content

Mermaid CVE-2026-71439

| EUVDEUVD-2026-54249 MEDIUM
Unchecked Input for Loop Condition (CWE-606)
2026-08-06 https://github.com/mermaid-js/mermaid GHSA-rhh3-jpg6-66xh
5.3
CVSS 4.0 · Vendor: https://github.com/mermaid-js/mermaid
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit crafted radar-beta Mermaid input
  2. Delivery
    Diagram reaches server-side renderer
  3. Exploit
    Unbounded tick loop consumes CPU/memory
  4. Execution
    JS process freezes or is OOM-killed
  5. Impact
    Service unavailability

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Unchecked input for loop condition
Exploitation Conditions

Exploitation requires that the target application renders user-supplied Mermaid diagram content containing a radar-beta block with an attacker-controlled ticks value. The radar-beta diagram type (a beta feature in Mermaid 11.6.0+) must be enabled and reachable by the attacker's input. For server-side DoS impact, the Mermaid rendering must occur in a server-side Node.js process handling attacker input without input sanitization. For client-side impact only (browser tab freeze), the attacker must socially engineer a victim into viewing a page that renders the malicious diagram. Exploitation is limited to Mermaid versions >= 11.6.0, where the radar-beta feature was introduced - earlier versions are unaffected. No authentication is required at the Mermaid library level, but the surrounding application may impose its own access controls on diagram submission.

Impact

No vendor-supplied CVSS vector is available; independent assessment places this at medium severity (see assessed_cvss_vector). Real-world risk depends heavily on whether the deployment allows user-controlled Mermaid diagram input to reach the renderer. Applications like wikis, documentation sites, or collaboration tools that render arbitrary user-submitted diagrams server-side face the highest risk: a single crafted request can freeze or kill the server-side Node.js process. Client-side-only deployments limit the blast radius to the victim's browser tab. No EPSS score is available and the vulnerability is not in CISA KEV, indicating no confirmed active exploitation at time of analysis. However, a POC is embedded directly in the public GitHub advisory, lowering the barrier to weaponization significantly. The tag 'Information Disclosure' in the source data appears to be a mislabeling - this is a pure availability impact vulnerability with no confidentiality or integrity consequences.

Exploit ScenarioDerived

An attacker submits a crafted Mermaid radar-beta diagram containing ticks 1000000000 (as shown in the public POC) to a documentation platform or wiki that renders user-supplied diagrams server-side. The Mermaid renderer enters an effectively infinite loop consuming 100% CPU and exhausting heap memory, causing the Node.js server process to become unresponsive or be killed by the OS OOM killer. Publicly available exploit code exists embedded in the GitHub advisory GHSA-rhh3-jpg6-66xh.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 06, 2026

Denial-of-service in Mermaid's radar-beta diagram renderer allows an attacker who can supply diagram input to trigger unbounded CPU and memory consumption by setting the ticks parameter to an arbitrarily large integer. Affected npm package versions >= 11.6.0 and < 11.16.1 perform no upper-bound validation on the ticks value, causing the JavaScript process - whether a browser tab or a server-side renderer - to freeze indefinitely until the OS terminates it due to OOM. A proof-of-concept is publicly available in the advisory. No KEV listing exists and no EPSS score is provided.

RemediationAI

Upgrade the mermaid npm package to version 11.16.1 or later, which caps the ticks value at 32 via commit 59b22fad2b3bb04f87a476c84a8a2b24679e607e. The release is available at https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.16.1 and via standard npm update. The vendor advisory (GHSA-rhh3-jpg6-66xh at https://github.com/mermaid-js/mermaid/security/advisories/GHSA-rhh3-jpg6-66xh) confirms no workarounds exist short of upgrading. If an immediate upgrade is not possible, operators running server-side Mermaid rendering should consider sandboxing the rendering process (e.g., a separate worker with memory and CPU limits via Node.js worker_threads or containerization with cgroup constraints) to bound the impact of a DoS attempt - this does not prevent the DoS but limits blast radius to the isolated process rather than the host service. Input-layer filtering to reject diagram strings containing ticks values above a safe threshold (e.g., > 100) is a viable short-term application-layer workaround, though it requires custom validation logic and may break legitimate edge-case diagrams.

Affected VersionsENISA

mermaid 11.6.0, < 11.16.1

Affected Packages

npm mermaid fix: 11.16.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Mermaid (pkg:npm/mermaid) is a JavaScript-based diagramming library widely embedded in documentation platforms including GitHub, GitLab, and Confluence. The radar-beta diagram type exposes a ticks configuration parameter that controls how many concentric tick rings are drawn. The fix (commit 59b22fad) reveals the renderer previously iterated up to the caller-supplied value without any ceiling, and the fix caps it at 32 (matching the visual maximum). CWE-606 (Unchecked Input for Loop Condition) is the accurate root cause: user-controlled numeric input is fed directly into a rendering loop whose iteration count is unbounded, leading to resource exhaustion. The vulnerability exists in the npm package across versions 11.6.0 through 11.16.0 inclusive.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/mermaid-js/mermaid) PRIMARY 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
vuln.today AI 6.5 MEDIUM

Network-delivered diagram input, no privileges needed, but a user or server must trigger rendering; pure availability impact with no confidentiality or integrity effect.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE MEDIUM
Red Hat 6.5 MEDIUM

Primary rating from Vendor (https://github.com/mermaid-js/mermaid).

CVSS VectorVendor: https://github.com/mermaid-js/mermaid

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
Low

Lifecycle Timeline

2
CVSS changed
Aug 06, 2026 - 22:22 NVD
5.3 (MEDIUM)
CVE Published
Aug 06, 2026 - 20:01 cve.org
MEDIUM

DescriptionCVE.org

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
txt
radar-beta
  axis a, b
  curve c {1, 1}
  ticks 1000000000

Patches

_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

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 7 npm packages depend on mermaid (7 direct, 0 indirect)

Ecosystem-wide dependent count for version 11.6.0.

Threat Intelligence Overview

EPSS Score
0.4%
Top 68% exploitable
Prevalence
High
embedded in GitHub, GitLab, and major documentation platforms
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: Moderate

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy