CVE-2026-33079

Mistune ReDoS in LINK_TITLE_RE allows denial of service with crafted Markdown titles

Published May 6, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
In versions 3.0.0a1 through 3.2.0 of Mistune, there is a ReDoS (Regular Expression Denial of Service) vulnerability in `LINK_TITLE_RE` that allows an attacker who can supply Markdown for parsing to cause denial of service. The regular expression used for parsing link titles contains overlapping alternatives that can trigger catastrophic backtracking. In both the double-quoted and single-quoted branches, a backslash followed by punctuation can be matched either as an escaped punctuation sequence or as two ordinary characters, creating an ambiguous pattern inside a repeated group. If an attacker supplies Markdown containing repeated ! sequences with no closing quote, the regex engine explores an exponential number of backtracking paths. This is reachable through normal Markdown parsing of inline links and block link reference definitions. A small crafted input can therefore cause significant CPU consumption and make applications using Mistune unresponsive.

Analysis

AI-generated

Technical impact

Mistune is a popular Python Markdown parser. A ReDoS flaw exists in the LINK_TITLE_RE regular expression used for parsing link titles. The pattern contains overlapping alternatives that trigger catastrophic backtracking when an attacker supplies a crafted title with repeated exclamation marks and no closing quote. The resulting exponential CPU consumption can make the application using Mistune become unresponsive, thereby causing a denial of service. The vulnerability is ranked as CWE‑1333, indicating an overly complex or inefficient regular expression.

Affected Systems

All applications that embed Mistune versions 3.0.0a1 through 3.2.0 are affected. The flaw is present in the source file mistune/helpers.py and applies to both inline links and block link reference definitions in Markdown documents.

Risk and Exploitability

The CVSS base score of 8.7 denotes high severity, and the EPSS score is not available, meaning no publicly documented exploitation probability. The vulnerability is not listed in the CISA KEV catalog. An attacker can trigger the denial of service by supplying crafted Markdown content to any component that renders it without input validation, requiring no additional privileges and deliverable remotely through normal input channels. Immediate patching is recommended.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Mistune to the most recent stable release that includes the fixed LINK_TITLE_RE regex.
  • If an upgrade cannot be performed immediately, constrain the length of Markdown titles or enforce a timeout on Markdown rendering operations to prevent excessive CPU consumption.
  • Monitor service metrics and logs for abnormal CPU spikes that could indicate exploitation attempts, and consider disabling Markdown rendering for untrusted input until a patch is applied.

Generated by OpenCVE AI on May 6, 2026 at 20:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-8mp2-v27r-99xp Mistune has a ReDoS in LINK_TITLE_RE that allows denial of service via crafted Markdown input
History
Type Values Removed Values Added
References
Metrics threat_severity

None

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'}

threat_severity

Important

Type Values Removed Values Added
First Time appeared Lepture
Lepture mistune
Vendors & Products Lepture
Lepture mistune
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description In versions 3.0.0a1 through 3.2.0 of Mistune, there is a ReDoS (Regular Expression Denial of Service) vulnerability in `LINK_TITLE_RE` that allows an attacker who can supply Markdown for parsing to cause denial of service. The regular expression used for parsing link titles contains overlapping alternatives that can trigger catastrophic backtracking. In both the double-quoted and single-quoted branches, a backslash followed by punctuation can be matched either as an escaped punctuation sequence or as two ordinary characters, creating an ambiguous pattern inside a repeated group. If an attacker supplies Markdown containing repeated ! sequences with no closing quote, the regex engine explores an exponential number of backtracking paths. This is reachable through normal Markdown parsing of inline links and block link reference definitions. A small crafted input can therefore cause significant CPU consumption and make applications using Mistune unresponsive.
Title Mistune ReDoS in LINK_TITLE_RE allows denial of service with crafted Markdown titles
Weaknesses CWE-1333
References
Metrics 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-1333

    Inefficient Regular Expression Complexity

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 28, 2026, 12:04 PM
Reserved
Mar 17, 2026, 7:27 PM
Status
Deferred
Published
May 6, 2026, 6:16 PM
Modified
Oct 26, 2026, 7:10 PM
Severity
Important
Public date
May 6, 2026, 5:25 PM