CVE-2026-121438

Mistune before 3.3.3 Denial of Service via Balanced Bracket Link Parsing

Published Nov 3, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
Mistune before 3.3.3 contains a denial of service vulnerability in InlineParser.parse_link that allows attackers to cause quadratic CPU growth by supplying balanced nested brackets. Attackers can submit crafted Markdown with thousands of nested bracket pairs not forming a valid link, triggering repeated _contains_nested_link scans that exhaust CPU in parsing applications.

Analysis

AI-generated

Technical impact

Mistune versions earlier than 3.3.3 contain a flaw in InlineParser.parse_link that causes quadratic CPU growth when encountering balanced, nested brackets that do not form a valid link. The vulnerability arises from repeated contains_nested_link scans, draining processing resources and rendering the parser unresponsive. The issue involves a resource exhaustion weakness (CWE‑400) and an unchecked input validation weakness (CWE‑606), leading to a denial of service that affects the availability of any application relying on this parsing routine.

Affected Systems

Products affected are all Mistune releases prior to version 3.3.3, distributed by Lepture. Any deployment that uses these vulnerable versions, regardless of operating system, is susceptible unless patched or mitigated.

Risk and Exploitability

The CVSS score of 6.9 indicates moderate severity, and the EPSS score is not available, suggesting that exploitation likelihood cannot be precisely quantified. The vulnerability, characterized by resource exhaustion (CWE‑400) and unchecked input validation (CWE‑606), is not listed in CISA's KEV catalog, but its impact can be substantial in high‑traffic or user‑generated content scenarios. Attackers can supply crafted Markdown containing thousands of nested brackets, and unless the host environment limits input size or depth, the parser will consume excessive CPU, potentially disrupting services. The impact is confined to availability and does not provide persistence, privilege escalation, or data exfiltration.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Mistune to version 3.3.3 or later to eliminate the quadratic parsing issue.
  • If upgrading is not immediately possible, implement input size or depth limits on Markdown content before parsing to avoid excessive nesting.
  • Consider disabling or sanitizing nested bracket constructs in user‑generated content when the parser is not under strict control to reduce the risk of runaway CPU usage.

Generated by OpenCVE AI on November 4, 2026 at 09:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Lepture
Lepture mistune
Vendors & Products Lepture
Lepture mistune
Type Values Removed Values Added
Description Mistune before 3.3.3 contains a denial of service vulnerability in InlineParser.parse_link that allows attackers to cause quadratic CPU growth by supplying balanced nested brackets. Attackers can submit crafted Markdown with thousands of nested bracket pairs not forming a valid link, triggering repeated _contains_nested_link scans that exhaust CPU in parsing applications.
Title Mistune before 3.3.3 Denial of Service via Balanced Bracket Link Parsing
First Time appeared Mistune Project
Mistune Project mistune
Weaknesses CWE-400
CPEs cpe:2.3:a:mistune_project:mistune:*:*:*:*:*:*:*:*
Vendors & Products Mistune Project
Mistune Project mistune
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-606

    Unchecked Input for Loop Condition

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 7, 2026, 3:02 AM
Reserved
Nov 3, 2026, 12:32 PM
Status
Deferred
Published
Nov 3, 2026, 3:17 PM
Modified
Nov 7, 2026, 3:17 AM
Severity
Moderate
Public date
Nov 3, 2026, 2:28 PM