Skip to main content

Mistune EUVDEUVD-2026-127201

| CVE-2026-97699 HIGH
Uncontrolled Resource Consumption (CWE-400)
2026-11-17 GitHub_M GHSA-ww7q-mxrj-5ffg
7.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Submit crafted nested-image Markdown payload
  2. Exploit
    Reach precedence_scan on each ![ opener
  3. Execution
    Trigger O(N²) re-scanning of body
  4. Impact
    Exhaust worker CPU at 100%

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

The affected application must parse attacker-controllable Markdown with mistune (versions < 3.3.4) using the default HTML renderer - notably NO plugins are required and the vulnerability is present in the default, out-of-the-box configuration (mistune.create_markdown()). The only prerequisite is an input path where untrusted Markdown reaches the parser (e.g. a comment, document-preview, or content-rendering endpoint). Limiting factors: exploitation is confined to availability (worker CPU exhaustion) and is fully remediated by upgrading to 3.3.4; deployments that never render untrusted Markdown, or that have already upgraded, are not exposed. No authentication is required (PR:N) and no user interaction is needed beyond the attacker submitting the payload.

Impact

This is a genuine but bounded-priority issue: an availability-only denial-of-service with no confidentiality or integrity impact. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, 7.5 HIGH) is internally consistent with the mechanism - any endpoint that renders attacker-supplied Markdown with mistune's default HTML renderer can be hit remotely, unauthenticated, with a small payload, and the A:H/C:N/I:N profile correctly reflects CPU exhaustion rather than data compromise. The GHSA advisory includes a reproduced proof-of-concept (a single request of the form '![' * 16000 + 'x' + ']' * 16000 pins a worker at 100% CPU, scaling ~3.8x per input doubling), so exploitability is well-established, not theoretical. No EPSS score was provided in the input, and the CVE is NOT listed in CISA KEV, so there is no evidence of active or widespread exploitation - the signal is a vendor-confirmed PoC, not in-the-wild use. The vuln.today decision label is 'this_week' (not act_now/emergency), which aligns with a serviceable DoS carrying a clean upgrade path. Net: a real, easily-triggered DoS worth patching promptly, but not a code-execution or data-breach emergency; the absence of EPSS/KEV data means prioritization rests on the confirmed PoC and deployment exposure rather than observed attacker activity.

Exploit ScenarioDerived

An attacker sends a single small Markdown document consisting of many nested image openers (e.g. '![' repeated thousands of times, a terminal character, then matching ']') to any service that renders untrusted Markdown via mistune's default HTML renderer. Because the no_link_before and _label_contains_link linearization guards are gated behind 'not is_image', each outer '![' opener re-scans the remaining body, producing O(N²) CPU work that keeps the worker at 100% utilization - roughly 16 seconds for a 48KB input. A working proof-of-concept is published in the GHSA advisory and was reproduced against the 3.3.3 release tag, so no attacker development effort is required.

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

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

Alert me

AnalysisAIv1 – Nov 18, 2026

Quadratic-time CPU exhaustion in Mistune before 3.3.4 lets an unauthenticated remote attacker stall a worker by submitting crafted Markdown containing deeply nested inline image openers (![) to any endpoint that renders untrusted content with the default HTML renderer. No plugins are required, and a proof-of-concept payload documented in the advisory was reproduced against 3.3.3, with measured times rising from about 0.28s at 6KB to 15.8s at 48KB. Impact is availability-only (CVSS 7.5, CWE-400), no active exploitation is indicated in the provided intelligence, and the vendor released a fix in 3.3.4.

RemediationAI

Upgrade to Mistune 3.3.4 or later; the vendor states 3.3.4 is the first patched version and provides the comparison between v3.3.3 and v3.3.4. For pip deployments, install and pin mistune>=3.3.4, then verify the installed version. The advisory is at https://github.com/lepture/mistune/security/advisories/GHSA-ww7q-mxrj-5ffg and the release at https://github.com/lepture/mistune/releases/tag/v3.3.4; the fix commit is https://github.com/lepture/mistune/commit/b4dd3284e52ec741ed9a227db29ade9017828e90. The advisory does not document a code-level workaround, so the complete fix is the version upgrade; per the assessment, only deployments that pass attacker-controlled Markdown to affected versions are exposed, and ensuring untrusted Markdown does not reach the default renderer limits that exposure but is a scoping control rather than a patch replacement.

Affected VersionsENISA

mistune < 3.3.4

Affected Packages

pypi mistune fix: 3.3.4

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 is a Python Markdown parser; the affected package is identified by cpe:2.3:a:lepture:mistune, and the flaw is in src/mistune/inline_parser.py. For image openers (![), is_image is true, so the two linearization guards used on the link path - pos <= state.no_link_before and _label_contains_link(...) - are skipped. Execution therefore reaches precedence_scan, which runs sc.search(state.src, mark_pos, end_pos) over the remaining image body for each outer opener, producing O(N²) work; max_image_depth does not stop it because the failed scans never create an image token and image_depth stays at zero. The advisory classifies this as CWE-400, with CWE-407 algorithmic complexity also noted, and reproduced O(N²) scaling with '![' * N + 'x' + ']' * N under the default mistune.create_markdown() configuration and HTML renderer with no plugins. The 3.3.4 fix adds a no_image_before high-water mark and scan-end tracking so failed image candidates are not repeatedly rescanned.

Know when Mistune 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_M) 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

Remote unauthenticated request rendering untrusted Markdown triggers quadratic CPU with no interaction (AV:N/AC:L/PR:N/UI:N); impact is availability-only (A:H, C:N, I:N).

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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
Nov 17, 2026 - 20:18 EUVD
CVE Published
Nov 17, 2026 - 19:17 cve.org
HIGH 7.5

DescriptionCVE.org

Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.3.4, inline image parsing sends nested ![ openers through precedence_scan because the no_link_before and _label_contains_link linearization guards are gated by not is_image. In src/mistune/inline_parser.py, each outer image opener can therefore search the remaining image body, while max_image_depth does not apply because the failed scans do not produce image tokens. Rendering untrusted Markdown with the default HTML renderer and no plugins can perform quadratic CPU work and keep a worker at 100 percent utilization. This issue is fixed in version 3.3.4.

Blast Radius

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

Ecosystem-wide dependent count for version 3.3.4.

Technical POC Analysis

CWE-400 (Uncontrolled Resource Consumption), specifically an algorithmic-complexity defect (CWE-407 also assigned).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

Mistune versions before 3.3.4 are vulnerable to a denial-of-service flaw that can be triggered by unauthenticated attackers through crafted Markdown, causing worker CPU exhaustion and service unavailability. Any public-facing endpoint rendering untrusted content with Mistune is at risk, and successful attacks could disrupt operations for customers and internal users. Leadership should prioritize patching because the vulnerability is remotely exploitable and directly impacts service availability.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.7%
Top 47% exploitable
Prevalence
Medium
popular Python Markdown library, common in content and documentation pipelines
Threat Intel
1
1 source
Data Quality
4 sources
Confidence: Medium

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 0.7%
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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Medium

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +38
PoC: 0
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.

CVE-2026-49851 HIGH POC
8.7 Jun 24

Uncontrolled CPU consumption in Mistune, a Python Markdown parser, allows remote unauthenticated attackers to cause deni

CVE-2026-59928 HIGH POC
7.5 Jul 08

Denial of service in Mistune (the lepture Python Markdown parser) before 3.3.0 lets remote unauthenticated attackers exh

CVE-2026-59922 HIGH POC
7.5 Jul 08

Denial of service in Mistune, a Python Markdown parser, affects all versions prior to 3.3.0 when the strikethrough, mark

CVE-2026-59925 HIGH POC
7.5 Jul 08

Denial of service in Mistune, a widely used pure-Python Markdown parser, affects all versions prior to 3.3.0 where the d

CVE-2026-59923 MEDIUM POC
6.1 Jul 08

Cross-site scripting in Mistune Python Markdown parser (all versions before 3.3.0) allows attacker-controlled Markdown c

CVE-2026-59929 MEDIUM POC
6.1 Jul 08

Cross-site scripting in Mistune prior to 3.3.0 stems from an incomplete URI scheme blocklist in the `safe_url` filter, p

CVE-2017-15612 MEDIUM POC
6.1 Oct 19

mistune.py in Mistune 0.7.4 allows XSS via an unexpected newline (such as in java\nscript:) or a crafted email address,

CVE-2026-59924 MEDIUM POC
5.9 Jul 08

Path traversal in Mistune's Include plugin allows reading arbitrary files from the server filesystem when processing att

CVE-2026-59927 MEDIUM POC
5.3 Jul 08

Unbounded recursion in Mistune's Include directive (all versions prior to 3.3.0) can be triggered by a pair of mutually-

CVE-2026-115347 HIGH
8.7 Oct 22

Quadratic denial of service in Mistune's Markdown parser (parse_link_text) affects versions 3.2.0, 3.2.1 and main prior

CVE-2026-121437 HIGH
8.7 Nov 03

Denial of service in Mistune 3.3.0 through 3.3.3 allows unauthenticated remote attackers to exhaust CPU and stall reques

CVE-2026-59930 MEDIUM POC
4.3 Jul 08

Predictable heading anchor ID generation in Mistune's toc plugin (all versions prior to 3.3.0) enables same-page navigat

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