A high-severity denial-of-service vulnerability, tracked as CVE-2026-49851, was disclosed in the Python Markdown parser Mistune. The flaw affects versions prior to 3.3.0 and allows attacker-controlled Markdown input to trigger excessive CPU consumption through quadratic-time parsing in parse_link_text. Inputs containing long runs of consecutive [ characters can force repeated regex scans, causing parsing time to grow superlinearly and making the issue remotely exploitable in applications that process untrusted Markdown.
The bug stems from an interaction in mistune/inline_parser.py where InlineParser.parse() advances one character at a time after parse_link() fails, while parse_link_text() rescans for a closing bracket on each attempt. A published proof of concept showed a 6,400-character payload increasing processing time to about 3.19 seconds, creating practical denial-of-service risk for web applications, APIs, and documentation platforms. Advisories classify the issue as CWE-400: Uncontrolled Resource Consumption and recommend upgrading to Mistune 3.3.0 or later; a proposed code-level fix is to return the furthest scanned position even on parse failure so the outer loop can skip ahead.

Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.
2 events from the most recent confirmed update back to the earliest known activity.
CVE-2026-49851 was published for a high-severity denial-of-service vulnerability affecting Mistune versions prior to 3.3.0. The CVE entry states the issue is remotely exploitable via attacker-controlled Markdown input and recommends upgrading to Mistune 3.3.0 or later.
A GitHub security advisory disclosed a CPU exhaustion denial-of-service issue in Mistune caused by approximately O(n²) behavior in parse_link_text when parsing Markdown containing many consecutive "[" characters. The advisory described the root cause, provided a proof of concept and benchmark, and suggested changing parsing behavior to skip ahead after failed link parsing.
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
3 references tracked. Mallory keeps watching after this page renders.
cvefeed.io
Open sourcegithub.com
Open sourceraw.githubusercontent.com
Open sourceMap indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.