Skip to main content

Mistune CVE-2026-33441

HIGH
Uncontrolled Resource Consumption (CWE-400)
2026-05-06 https://github.com/lepture/mistune
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify Mistune-powered endpoint
  2. Delivery
    Submit crafted Markdown with nested reference links
  3. Exploit
    Trigger parse_link_title() infinite loop
  4. Execution
    Exhaust CPU and thread resources
  5. Impact
    Achieve service unavailability

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Application must process attacker-controlled Markdown input through Mistune 3.2.0's parsing functions, specifically mistune.html() or equivalent rendering methods that invoke the block parser and reference link processing logic. Most commonly occurs in web applications accepting user-generated Markdown content for rendering-forum systems, comment sections, documentation platforms, content management systems, or API endpoints that convert Markdown to HTML. No authentication required if the Markdown processing endpoint is publicly accessible (common for user registration forms, public comment systems, or API documentation generators). Exploitation succeeds against default Mistune configurations without additional hardening. Limiting factors: applications that pre-sanitize Markdown input to strip reference-style links, systems with aggressive timeout enforcement at the web server or reverse proxy layer (sub-second timeouts), or deployments using older Mistune versions with different parsing implementations may be protected. Does not affect applications that render static Markdown content only or those using alternative Markdown parsers.

Impact

Despite the absence of CVSS scoring and EPSS data, real-world risk is elevated due to multiple confirmed factors. The publicly available POC (base64-encoded payload) enables trivial reproduction with a simple Python script execution, lowering the barrier to weaponization. Mistune's widespread adoption in web frameworks and API endpoints that accept user-generated Markdown creates extensive attack surface. The attack vector is effectively network-based when deployed in web applications processing untrusted input, requires no authentication (PR:N equivalent based on description), and demands low complexity (single HTTP POST with malformed Markdown). The 100% CPU consumption and permanent hang represent complete service unavailability, not transient degradation. However, impact is contained to availability (no confidentiality or integrity breach), and exploitation requires the application to process attacker-controlled Markdown content. The availability of vendor patch 3.2.1 significantly reduces risk for organizations with active patch management. Key limiting factor: exploitation only affects applications that directly expose Mistune parsing to untrusted external input without pre-validation or resource controls.

Exploit ScenarioDerived

An attacker identifies a web application using Mistune 3.2.0 for user-generated content rendering (forum posts, comments, documentation submissions). They craft a POST request containing the base64-decoded POC payload embedded in a Markdown field, submitting it through the application's content creation API. The application passes the malicious Markdown to mistune.html() for rendering. Upon parsing, the parse_link_title() function enters an infinite loop attempting to resolve the nested reference links with excessive escape sequences. The server thread handling the request consumes 100% CPU and never returns, eventually exhausting the application's thread pool or process limits. Repeated submissions cause complete service unavailability as all available workers become blocked in parsing operations.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 06, 2026

Malformed reference links in Mistune 3.2.0 trigger algorithmic complexity attacks in the parse_link_title() function, causing 100% CPU consumption and permanent process hangs. The vulnerability affects Python applications processing untrusted Markdown content, enabling remote denial-of-service through minimal-size payloads (the provided POC is under 200 bytes). A publicly available proof-of-concept demonstrates consistent exploitation discovered via coverage-guided fuzzing. Vendor patch 3.2.1 addresses the issue by implementing parsing limits and defensive checks.

RemediationAI

Upgrade to Mistune version 3.2.1 immediately, which implements parsing depth limits, reference-link title length restrictions, and defensive validation in parse_link_title() per vendor advisory at https://github.com/lepture/mistune/security/advisories/GHSA-hjph-f4mc-wx4c. Execute upgrade via pip: 'pip install --upgrade mistune==3.2.1' and verify installation with 'pip show mistune'. For environments unable to patch immediately, implement application-layer mitigations: configure process timeout limits (5-10 seconds maximum for Markdown parsing operations) to prevent indefinite hangs, deploy resource controls using cgroups or containerization to cap CPU allocation per parsing request, implement input validation rejecting Markdown documents exceeding reasonable size thresholds (suggested 100KB maximum), and sanitize or strip reference-style link syntax before passing to Mistune. Trade-off: timeout mechanisms will terminate legitimate parsing of very large documents; input filtering may break valid Markdown features. These compensating controls provide partial protection but do not address the root cause and may impact legitimate use cases. Add the provided POC to regression test suites to validate remediation effectiveness.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Mistune is a widely-used fast Markdown parser written in pure Python, commonly deployed in web applications, static site generators, documentation systems, and content management platforms. The vulnerability resides in the parse_link_title() function within helpers.py, which handles Markdown reference-style link syntax parsing. CWE-400 (Uncontrolled Resource Consumption) manifests when the parser encounters specially crafted input containing nested reference links with excessive escape character sequences. The malformed syntax triggers catastrophic backtracking in the parsing loop, where each iteration attempts to resolve deeply nested reference structures without depth or iteration limits. The stack trace confirms the attack path flows through parse_ref_link in the block parser, leading to unbounded recursion. The vulnerable package identifier is pkg:pip/mistune version 3.2.0, affecting Python environments running this specific release.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

SUSE PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Primary rating from SUSE · only source for this CVE.

DescriptionCVE.org

Summary

Denial-of-Service (DoS) vulnerability in the Mistune Markdown parser. The issue occurs when processing specially crafted reference links, which can cause excessive parsing and CPU consumption, leading to application hangs.

Function affected: parse_link_title() in helpers.py Issue: Malformed reference links cause excessive backtracking and parsing loops. Impact: Remote attackers can submit malicious Markdown to hang processes, causing service unavailability.

Details

Name: mistune
Version: 3.2.0
Python version: Python 3.13.9
PIP version: pip 25.2
OS: Kali-linux-VERSION="2025.4"

PoC

import mistune
import base64

print("Exploit started....!")
data = base64.b64decode(
    "WX5Efn5+RH5+fkRbIVt6XQoKW3q7XTpdOgoifn5+RFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcflt+RFshW3pdCgpbeg=="
)
mistune.html(data.decode("utf-8", errors="ignore"))

Reproduce steps:

Simply execute above python script it will hang & increase cpu utilization to 100%

Fuzzer Output (libFuzzer):

ERROR: libFuzzer: timeout after 3 seconds
SUMMARY: libFuzzer: timeout

Stack Trace (Excerpt):

mistune/helpers.py:170 in parse_link_title
mistune/block_parser.py:259 in parse_ref_link
mistune/core.py:216 in parse_method
mistune/block_parser.py:458 in parse
mistune/markdown.py:93 in parse
mistune/markdown.py:120 in __call__

IMAGE POC:

<img width="1194" height="728" alt="POC" src="https://github.com/user-attachments/assets/009e836f-fff7-439e-b0be-6e889bed0077" />

Impact:

Denial-of-Service (DoS) High CPU usage and application hang Potential for service unavailability in web apps or APIs processing untrusted Markdown

Suggested Mitigations:

Implement parsing depth and iteration limits. Limit reference-link title length. Detects excessive escape character sequences. Add defensive checks in parse_link_title. Add fuzz regression tests using the provided PoC.

This vulnerability was discovered using coverage-guided fuzzing and is reproducible consistently.

Executive ViewAI

Why It Matters

Mistune 3.2.0 contains a denial-of-service vulnerability in link parsing that causes complete application unresponsiveness when processing malicious Markdown content, affecting any Python service that accepts user-supplied Markdown input. Organizations using Mistune for content rendering, documentation platforms, or comment systems face immediate risk of service disruption from attackers sending minimally-sized payloads.

Business Impact: High
Compensating Controls

Vendor-released patch: Mistune 3.2.1. If immediate patching is blocked: implement strict input size limits on Markdown payloads, implement request timeouts at application level (max 5 seconds for parse operations), and filter or sanitize reference link syntax in untrusted input prior to processing by Mistune.

Threat Intelligence Overview

Data Quality
2 sources
Confidence: Low
CVE.org Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)CVE.org

pkg:pip/mistune

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

Vendor StatusVendor

SUSE

Severity: High
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed
SUSE Linux Enterprise Module for Package Hub 15 SP7 Fixed
SUSE Linux Enterprise Module for Python 3 15 SP7 Fixed
SUSE Linux Enterprise Server 15 SP7 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy