Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-49851: CWE-400: Uncontrolled Resource Consumption in lepture mistune

0
High
VulnerabilityCVE-2026-49851cvecve-2026-49851cwe-400cwe-770cwe-407
Published: 06/24/2026 (06/24/2026, 17:05:33 UTC)
Source: CVE Database V5
Vendor/Project: lepture
Product: mistune

Description

Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.3.0, Mistune is vulnerable to a CPU exhaustion DoS due to superlinear (approximately O(n²)) behavior in parse_link_text. When parsing Markdown containing many consecutive [ characters, parse_link_text repeatedly scans the input using a regex search inside a loop. Each iteration re-scans a large portion of the remaining string, resulting in quadratic-time behavior. An attacker-controlled Markdown input can therefore trigger excessive CPU usage with a very small payload. This vulnerability is fixed in 3.3.0.

CVSS v4.0

Score 8.7high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

mistune
pkg:pypi/mistune
Affected versions
<3.3.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/24/2026, 18:09:12 UTC

Technical Analysis

CVE-2026-49851 describes an uncontrolled resource consumption vulnerability (CWE-400) in the Mistune Markdown parser before version 3.3.0. The vulnerability arises from the parse_link_text function's superlinear (approximately O(n²)) behavior when parsing Markdown containing many consecutive '[' characters. This function repeatedly applies a regex search inside a loop, causing repeated rescanning of large portions of the input string. An attacker can exploit this by crafting a small Markdown payload that triggers excessive CPU usage, resulting in a denial-of-service condition. The vulnerability is resolved in Mistune version 3.3.0.

Potential Impact

An attacker can cause a denial-of-service by triggering excessive CPU consumption in applications using vulnerable versions of Mistune. This can degrade service availability or cause application unresponsiveness. There are no indications of privilege escalation, data disclosure, or other impacts beyond resource exhaustion.

Mitigation Recommendations

Upgrade Mistune to version 3.3.0 or later, where this vulnerability is fixed. Patch status is confirmed by the vendor stating the fix in version 3.3.0. No other mitigations are indicated.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-06-01T22:03:19.640Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a3c19c6eed863c81e395159

Added to database: 06/24/2026, 17:54:14 UTC

Last enriched: 06/24/2026, 18:09:12 UTC

Last updated: 06/24/2026, 18:31:10 UTC

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses