CVE-2026-121437

Mistune 3.3.0 before 3.3.4 Quadratic-Time DoS via _process_emphasis_delimiters

Published Nov 3, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
Mistune from 3.3.0 before 3.3.4 contains a denial of service vulnerability that allows remote attackers to exhaust CPU through quadratic-time emphasis delimiter processing. Attackers can submit small markdown documents with repeated patterns like "*a_b" to trigger an O(n²) index-fixup loop, stalling workers for seconds.

Analysis

AI-generated

Technical impact

Mistune versions 3.3.0 through 3.3.3 contain a quadratic‑time denial of service vulnerability. By submitting markdown that repeats emphasis patterns such as "*a_b", an attacker can cause the parser to execute an O(n²) index‑fixup loop, exhausting CPU resources and delaying task completion. The weakness is identified as CWE-407 and CWE-606, describing excessive or infinite computation and input validation issues.

Affected Systems

The affected package is Mistune from lepture:mistune, specifically versions 3.3.0 up to, but not including, 3.3.4. Systems that incorporate the Mistune markdown processor in their application stack are at risk.

Risk and Exploitability

The CVSS score is 8.7, indicating high severity. The EPSS score is not available, so the probability of exploitation cannot be quantified, but the vulnerability is exposed to any remote client that feeds markdown to the parser. The issue is not listed in CISA KEV, suggesting no confirmed widespread exploitation. The attack vector is remote, achieved by sending malicious markdown to an application that uses Mistune for rendering, leading to a denial of service.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Mistune to version 3.3.4 or newer to apply the fixed parser logic.
  • If an upgrade cannot be performed immediately, limit the size of markdown input, apply request rate limiting, and validate content before rendering to mitigate resource exhaustion.
  • Monitor CPU usage and application responsiveness, and set alerts for abnormal spikes during markdown rendering to detect potential denial‑of‑service attempts.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description Mistune from 3.3.0 before 3.3.4 contains a denial of service vulnerability that allows remote attackers to exhaust CPU through quadratic-time emphasis delimiter processing. Attackers can submit small markdown documents with repeated patterns like "*a_b" to trigger an O(n²) index-fixup loop, stalling workers for seconds.
Title Mistune 3.3.0 before 3.3.4 Quadratic-Time DoS via _process_emphasis_delimiters
First Time appeared Mistune Project
Mistune Project mistune
Weaknesses CWE-407
CPEs cpe:2.3:a:mistune_project:mistune:*:*:*:*:*:*:*:*
Vendors & Products Mistune Project
Mistune Project mistune
References
Metrics cvssV3_1

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

cvssV4_0

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

Weaknesses
  • CWE-407

    Inefficient Algorithmic Complexity

  • CWE-606

    Unchecked Input for Loop Condition

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 3, 2026, 4:59 PM
Reserved
Nov 3, 2026, 12:32 PM
Status
Deferred
Published
Nov 3, 2026, 3:17 PM
Modified
Nov 3, 2026, 5:18 PM
Severity
Important
Public date
Nov 3, 2026, 2:28 PM