Skip to main content

Mistune CVE-2026-97698

| EUVDEUVD-2026-127355 HIGH
Uncontrolled Resource Consumption (CWE-400)
2026-11-17 GitHub_M GHSA-phmp-hrw4-r36r
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 untrusted Markdown body of '[](' repeated
  2. Exploit
    Empty [] label bypasses no_close_bracket_before guard
  3. Execution
    Each opener triggers unbounded parenthesis scan to EOF
  4. Impact
    O(N^2) CPU pins worker at 100%, denial of service

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

Exploitation requires an application to render attacker-controlled/untrusted Markdown using mistune < 3.3.4; the flaw triggers on the DEFAULT HTML renderer (mistune.create_markdown() / mistune.html()) with NO plugins enabled, so no non-default configuration is needed. The specific trigger is Markdown containing repeated empty-label link openers of the form '[](' - the empty [] label bypasses the no_close_bracket_before high-water-mark guard, so each opener drives parse_link_href to scan to end-of-document. No authentication and no user interaction are required (PR:N/UI:N). The principal LIMITING factor is deployment-dependent: the target application must accept and render untrusted Markdown input; impact is confined to CPU/availability (a single-threaded worker pinned to 100%), with no confidentiality or integrity effect, and larger inputs scale quadratically (6KB->0.8s, 48KB->~50s).

Impact

This is a genuine, actionable availability risk rather than a paper-high CVSS. The CVSS 3.1 base score of 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) describes a network-reachable, low-complexity, unauthenticated flaw with pure availability impact (no confidentiality or integrity loss), which is consistent with the described quadratic-time (CWE-400/CWE-407) denial of service. The SSVC signals reinforce priority: Exploitation=poc, Automatable=yes, Technical Impact=partial - the payload is trivial to generate and script, and the vendor advisory (GHSA-phmp-hrw4-r36r) includes a reproducible proof of concept with measured timings (48KB input stalls a worker ~50s on the default mistune.html renderer). The vuln.today decision label is 'this_week', not act_now/emergency, which fits an unauthenticated DoS with no code-execution or data-exposure component. There is NO CISA KEV listing and NO EPSS score in the supplied data, so there is no evidence of active in-the-wild exploitation and no modeled exploitation probability to compare against - this appears to be a credible but not yet weaponized issue. Net: a real priority for any service that renders untrusted Markdown with an affected mistune version, but bounded to availability only; treat as a worker-exhaustion/DoS hardening item to patch promptly rather than an incident.

Exploit ScenarioDerived

An application exposes an endpoint that renders user-supplied Markdown with mistune's default HTML renderer (e.g. a comment box, issue tracker, or documentation preview). An unauthenticated attacker submits a small body consisting of the pattern '[](' repeated (roughly 48KB pins a single worker for ~50 seconds), driving O(N^2) CPU in parse_link_href. A vendor-reproduced public PoC exists, so repeated or concurrent requests can starve the worker pool and deny service to legitimate users.

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

Rendering untrusted Markdown with Mistune before 3.3.4 can pin a single worker at 100% CPU because repeated empty-label link openers of the form []( make parse_link_href rescan to end-of-document for each opener, producing quadratic CPU work; the flaw is reachable through the default HTML renderer with no plugins. The issue is remotely triggerable without authentication or user interaction (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H), and the advisory includes a proof-of-concept payload; active exploitation is not confirmed by CISA KEV. Mistune 3.3.4 fixes it.

RemediationAI

Upgrade to Mistune 3.3.4 or later; vendor-released patch: 3.3.4. The advisory states the issue is fixed in 3.3.4 and points to the release at https://github.com/lepture/mistune/releases/tag/v3.3.4 and the fix commit at https://github.com/lepture/mistune/commit/b4dd3284e52ec741ed9a227db29ade9017828e90. The advisory does not describe a validated workaround; because the documented trigger path is rendering untrusted Markdown through the default HTML renderer, deployments that cannot immediately upgrade should avoid feeding attacker-controlled Markdown to Mistune's default renderer, but this is a deployment restriction rather than a vendor-validated fix.

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 with renderers and plugins. The advisory maps this to CWE-400 (uncontrolled resource consumption) and also cites CWE-407 (inefficient algorithm). In src/mistune/helpers.py, parse_link_href performs a parenthesis-balancing scan that can run to end-of-document when it encounters unmatched opening parentheses. In src/mistune/inline_parser.py, an empty [] link label matches early and bypasses the no_close_bracket_before high-water-mark guard, while no_link_before advances only past the short label; successive []( candidates therefore each trigger a full remaining-document scan. The trigger is documented against the default mistune.create_markdown()/mistune.html() renderer with no plugins, and measurements show quadratic scaling: 6KB input took 0.80s, 12KB 3.15s, 24KB 12.5s, and 48KB about 49.8s. The CPE cpe:2.3:a:lepture:mistune:*:*:*:*:*:*:*:* covers the affected package. Impact is confined to CPU/availability, with no confidentiality or integrity effect.

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

Untrusted Markdown is rendered remotely without auth or interaction on the default renderer (AV:N/AC:L/PR:N/UI:N); quadratic CPU exhaustion yields availability-only impact (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 - 21:02 EUVD
CVE Published
Nov 17, 2026 - 19:20 cve.org
HIGH 7.5

DescriptionCVE.org

Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.3.4, parse_link_href performs an unbounded parenthesis-balancing scan to the end of the document for each unmatched opening parenthesis reached through an empty [] link label. In src/mistune/helpers.py and src/mistune/inline_parser.py, the empty label bypasses no_close_bracket_before, and no_link_before advances only past the short label, so successive [] ( candidates repeatedly scan the remaining document. 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); the advisory also tags CWE-407 (Inefficient Algorithmic Complexity).

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

The Markdown parsing library Mistune, used in many internal and customer-facing applications, contains a high-severity flaw that allows an unauthenticated attacker to exhaust server CPU resources by sending a specially crafted Markdown document. This can lead to service outages or degraded performance for any application that processes untrusted Markdown, affecting both internal users and external customers. Leadership should prioritize remediation to maintain service availability and prevent potential reputational and financial damage.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.7%
Top 45% exploitable
Prevalence
Medium
popular Python Markdown library, common in Python web and documentation stacks
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment GHSA 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 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
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

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