Skip to main content

Mistune CVE-2026-76098

| EUVDEUVD-2026-65137 HIGH
Uncontrolled Recursion (CWE-674)
2026-08-24 security-advisories@github.com GHSA-6m44-fpc8-c3rq
7.5
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

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

  1. Access
    Send HTTP request with crafted Markdown body
  2. Delivery
    Submit 1000+ consecutive asterisk characters surrounding text
  3. Exploit
    Inline parser builds unbounded nested emphasis token tree
  4. Execution
    Recursive HTMLRenderer.render_token() exceeds Python recursion limit
  5. Persist
    Unhandled RecursionError crashes worker process
  6. Impact
    Service endpoint unavailable

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
Exploitation Conditions

The target application must accept user-supplied content and pass it to Mistune 3.3.0-3.3.2 for parsing and HTML rendering - this is the sole prerequisite. No authentication is required when the Markdown input endpoint is publicly accessible (CVSS PR:N confirmed). No non-default Mistune configuration or plugin is needed; the vulnerability is present in the default InlineParser with emphasis parsing enabled, which is the out-of-box state. The primary limiting factor is deployment pattern: applications that render Markdown only from trusted internal or author-controlled sources (static site generators, internal wikis with admin-only authorship) are not reachable by external attackers. Applications with public comment fields, issue trackers, API endpoints accepting Markdown bodies, or documentation platforms with user submissions are directly exploitable.

Impact

The CVSS 7.5 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) is well-supported by the technical evidence: any network-reachable endpoint that pipes user input into Mistune 3.3.0-3.3.2 is exploitable with a single, trivially crafted HTTP request. Attack complexity is genuinely low - the fix commit's own test case is a 2001-character string, requiring no reverse engineering or environment-specific knowledge. Impact is bounded strictly to availability; there is no confidentiality or integrity exposure. No EPSS score is available in the provided intelligence, so exploitation probability cannot be quantified statistically; absence from CISA KEV indicates no confirmed active exploitation at time of analysis. Real-world priority should be calibrated by exposure surface: a public-facing comment system or documentation platform parsing untrusted Markdown is a reliable crash target, while an offline static site generator consuming author-controlled files carries negligible risk. The straightforward attack pattern and zero-prerequisite exploitation make this a meaningful operational risk for any service in the former category, despite the DoS-only impact ceiling.

Exploit ScenarioDerived

An attacker submits a POST request to a web application's comment or document-rendering endpoint with a Markdown body consisting of 1000 asterisks, a single letter, and 1000 more asterisks. Mistune 3.3.x builds an unbounded nested emphasis token tree from this input, and the recursive HTMLRenderer.render_token() call exhausts Python's default recursion limit, raising RecursionError and crashing the worker process or thread. The attack is repeatable and requires only HTTP access to any endpoint that renders user-supplied Markdown.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Aug 24, 2026

Denial-of-service in Mistune Python Markdown parser versions 3.3.0-3.3.2 allows remote unauthenticated attackers to crash any process that renders user-supplied Markdown by submitting input with hundreds of consecutive asterisk characters. The recursive HTMLRenderer.render_token() traversal grows proportionally to emphasis nesting depth and exceeds Python's default recursion limit, raising an unhandled RecursionError that terminates the parsing process. No public exploit identified at time of analysis, though the fix commit itself demonstrates the attack pattern explicitly in its regression test suite.

RemediationAI

The primary remediation is upgrading Mistune to version 3.3.3, which caps emphasis token nesting at a configurable depth (default 20) before recursive rendering can exhaust the Python call stack. The fix commit is at https://github.com/lepture/mistune/commit/0938fb7 and the security advisory at https://github.com/lepture/mistune/security/advisories/GHSA-6m44-fpc8-c3rq. If immediate upgrade is not feasible, two compensating controls apply with trade-offs: first, wrapping Markdown parsing calls in a try/except RecursionError block and returning an error response prevents process termination but still allows the DoS to consume a request slot and may mask unrelated recursion bugs elsewhere. Second, pre-filtering input to reject strings where any run of consecutive asterisk characters exceeds a threshold (e.g., 50) blocks the attack vector with low false-positive risk for legitimate Markdown, but requires careful implementation to avoid bypasses via mixed asterisk/underscore sequences. Upgrade to 3.3.3 is strongly preferred over either workaround.

Affected VersionsENISA

mistune 3.3.0, < 3.3.3

Affected Packages

pypi mistune fix: 3.3.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

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

Technical ContextAI · show details

Mistune's inline parser tokenizes Markdown emphasis constructs (*, , *) into a nested tree of 'emphasis' and 'strong' token objects. Prior to 3.3.3, _finalize_emphasis_tokens() and _process_emphasis_delimiters() imposed no upper bound on nesting depth, so input such as 1000 asterisks surrounding a single character produces a deeply recursive token tree. HTMLRenderer.render_token() traverses this tree with recursive calls; with sufficient nesting the Python call stack (default limit approximately 1000 frames) is exhausted, raising RecursionError. CWE-674 (Uncontrolled Recursion) is the precise root cause: recursion depth is directly proportional to attacker-controlled input without any defensive cap. The fix in 3.3.3 introduces a DEFAULT_MAX_EMPHASIS_DEPTH constant of 20, enforced in _process_emphasis_delimiters() via a new _emphasis_depth() iterative stack-walk that rejects emphasis pairs that would exceed the limit.

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

Vendor (github) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

Network-delivered crafted input requires no auth or interaction; impact is strictly process availability loss with no confidentiality or integrity effect.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat 7.5 HIGH

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch available
Aug 24, 2026 - 21:02 EUVD
CVE Published
Aug 24, 2026 - 20:17 cve.org
HIGH 7.5

DescriptionCVE.org

Mistune is a Python Markdown parser with renderers and plugins. Versions 3.3.0 through 3.3.2 are vulnerable to DoS through deeply nested tokens. HTML rendering creates deeply nested emphasis tokens from consecutive asterisk characters, and recursive rendering in HTMLRenderer.render_token() can exceed Python's recursion limit and raise RecursionError, allowing crafted Markdown to crash a parsing process. This issue is fixed in version 3.3.3

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 1 pypi packages depend on mistune (1 direct, 0 indirect)

Ecosystem-wide dependent count for version 3.3.0.

Executive ViewAI

Why It Matters

Mistune Python Markdown parser versions 3.3.0-3.3.2 contain a remote denial-of-service vulnerability allowing unauthenticated attackers to crash any application processing user-supplied Markdown content. Organizations using these versions face immediate availability risk, as attackers can terminate service processes without authentication by submitting specially formatted input.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Implement input sanitization to detect and block Markdown with excessive consecutive punctuation characters; deploy WAF rules targeting payloads with hundreds of consecutive asterisks; enable rate-limiting on endpoints that process markdown; downgrade to Mistune 3.2.x or earlier if feasible; monitor application logs for RecursionError exceptions and unexpected process terminations.

Threat Intelligence Overview

EPSS Score
0.3%
Top 80% exploitable
Prevalence
Medium
popular Python Markdown parsing library, not universally deployed
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA MSRC Vendor CIRCL 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 Yes
EPSS 0.3%
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.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

58
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

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

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

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