8.7
/ 10
HIGH
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
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.
AI Analysis
Mistune is vulnerable to a ReDoS attack via the LINK_TITLE_RE regular expression, allowing an attacker to cause denial of service by supplying crafted Markdown titles.
Basic Information
ID
CVE-2026-33079
Source
GitHub_M
Published
May 6, 2026 at 17:25
Affected Product
Vendor
lepture
Product
mistune
Version
>=3.0.0a1, <= 3.2.0
Affected Versions
lepture mistune >=3.0.0a1, <= 3.2.0
CWE Classification
AI Assessment
AI Score
8.7 / 10
AI Severity
High
Vendor
lepture
Product
Mistune
Version
3.0.0a1-3.2.0