Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted nested-image Markdown payload
-
ExploitReach precedence_scan on each ![ opener
-
ExecutionTrigger O(N²) re-scanning of body
-
ImpactExhaust 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
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).
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.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- 42 pypi packages depend on mistune (14 direct, 29 indirect)
Ecosystem-wide dependent count for version 3.3.4.
Articles & Coverage 1
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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Uncontrolled CPU consumption in Mistune, a Python Markdown parser, allows remote unauthenticated attackers to cause deni
Denial of service in Mistune (the lepture Python Markdown parser) before 3.3.0 lets remote unauthenticated attackers exh
Denial of service in Mistune, a Python Markdown parser, affects all versions prior to 3.3.0 when the strikethrough, mark
Denial of service in Mistune, a widely used pure-Python Markdown parser, affects all versions prior to 3.3.0 where the d
Cross-site scripting in Mistune Python Markdown parser (all versions before 3.3.0) allows attacker-controlled Markdown c
Cross-site scripting in Mistune prior to 3.3.0 stems from an incomplete URI scheme blocklist in the `safe_url` filter, p
mistune.py in Mistune 0.7.4 allows XSS via an unexpected newline (such as in java\nscript:) or a crafted email address,
Path traversal in Mistune's Include plugin allows reading arbitrary files from the server filesystem when processing att
Unbounded recursion in Mistune's Include directive (all versions prior to 3.3.0) can be triggered by a pair of mutually-
Quadratic denial of service in Mistune's Markdown parser (parse_link_text) affects versions 3.2.0, 3.2.1 and main prior
Denial of service in Mistune 3.3.0 through 3.3.3 allows unauthenticated remote attackers to exhaust CPU and stall reques
Predictable heading anchor ID generation in Mistune's toc plugin (all versions prior to 3.3.0) enables same-page navigat
EUVD-2026-127201
GHSA-ww7q-mxrj-5ffg
NVD
CVE.org
EPSS
Exploit-DB