Description
Mermaid is a JavaScript tool that uses Markdown-inspired text to create and modify diagrams and charts. From version 11.6.0 until 11.16.1, Mermaid Radar Diagrams allow arbitrary large values for the ticks parameter, which can cause high CPU usage and freeze the rendering webpage or JavaScript process for long periods of time, potentially until the process is killed from memory exhaustion. This issue is fixed in version 11.16.1.
Published: 2026-08-06
Score: 5.3 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Mermaid Radar Diagrams can accept arbitrarily large values for the ticks parameter, which causes the rendering engine to consume excessive CPU resources and can freeze the webpage or JavaScript process for extended periods. The weakness stems from inadequate input validation (CWE-1322) and unchecked user input (CWE-606), allowing an attacker-controlled diagram definition to trigger a denial of service. The impact is limited to the context where a vulnerable Mermaid instance renders the diagram, potentially disrupting user experience or exhausting memory if the process is killed for resource exhaustion.

Affected Systems

The vulnerability affects mermaid-js:mermaid versions 11.6.0 through 11.16.1. Versions prior to 11.6.0 and 11.16.1 or later are not impacted. Affected users should verify the installed version against the range and apply the patch when available.

Risk and Exploitability

With a CVSS score of 5.3 the risk is considered moderate. The EPSS score is not available, and the vulnerability is not listed in CISA KEV, which suggests no widespread exploitation yet. The exploit is generally local or remote via a malicious diagram; an attacker can embed a large ticks value in a document or webpage that a user’s browser renders, leading to high CPU usage and a denial of service for that user. In high-traffic scenarios, the cumulative effect could degrade service quality for many users at once.

Generated by OpenCVE AI on August 7, 2026 at 00:50 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade mermaid to version 11.16.1 or later.
  • If upgrading is not immediately possible, validate or bound the ticks parameter before passing it to Mermaid, ensuring it remains within a reasonable limit.
  • Configure resource limits or monitor CPU usage for the JavaScript rendering process to prevent complete system resource exhaustion due to excessive diagram rendering.

Generated by OpenCVE AI on August 7, 2026 at 00:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-rhh3-jpg6-66xh Mermaid radar diagrams are vulnerable to DoS
History

Thu, 06 Aug 2026 22:15:00 +0000

Type Values Removed Values Added
Description Mermaid is a JavaScript tool that uses Markdown-inspired text to create and modify diagrams and charts. From version 11.6.0 until 11.16.1, Mermaid Radar Diagrams allow arbitrary large values for the ticks parameter, which can cause high CPU usage and freeze the rendering webpage or JavaScript process for long periods of time, potentially until the process is killed from memory exhaustion. This issue is fixed in version 11.16.1.
Title Mermaid radar diagrams are vulnerable to DoS
Weaknesses CWE-1322
CWE-606
References
Metrics cvssV4_0

{'score': 5.3, 'vector': '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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-06T20:01:04.423Z

Reserved: 2026-08-06T16:28:51.183Z

Link: CVE-2026-71439

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-07T01:00:05Z

Weaknesses
  • CWE-1322

    Use of Blocking Code in Single-threaded, Non-blocking Context

  • CWE-606

    Unchecked Input for Loop Condition