Skip to main content

Mistune EUVDEUVD-2026-108421

| CVE-2026-115352 HIGH
Inefficient Algorithmic Complexity (CWE-407)
2026-10-22 disclosure@vulncheck.com GHSA-84gc-h84g-h8g5
8.7
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

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

  1. Access
    Submit small markdown payload of unmatched '[' brackets
  2. Exploit
    Inline link parser probes every bracket O(N^2)
  3. Execution
    Rendering worker CPU pegged 30+ seconds
  4. Impact
    Repeat to exhaust worker pool and deny service

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Algorithmic complexity limits
Exploitation Conditions

Exploitable only when an application uses mistune (<= 3.2.1) to render attacker-supplied markdown to HTML server-side; the advisory states the default configuration is sufficient with no plugins or special options required. The concrete trigger is a long run of unmatched '[' characters (or nested '[[..]]', which carries a ~4x constant-factor penalty) that forces parse_link_text/parse_link_label to probe from every bracket position. Limiting factors for defenders: the app must accept and render multi-KB untrusted markdown, impact is CPU-time only (no memory growth, no data impact), and because it ties up one worker per request, sustained denial requires repeated requests to exhaust a thread/worker pool (a single request is a per-request stall, most impactful on single-threaded WSGI deployments).

Impact

This is a genuine but bounded availability risk, not a confidentiality/integrity emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) confirms a network-reachable, low-complexity, unauthenticated trigger with no user interaction, and impact is isolated to availability (VC:N/VI:N/VA:H) - consistent with the CWE-407/CWE-1333 algorithmic-complexity DoS described. The GHSA advisory includes a verified PoC (run against mistune@3.2.1) demonstrating O(N^2) scaling, so publicly available exploit code exists; however, there is no CISA KEV listing and no EPSS score was supplied, so there is no evidence of active exploitation - treat exploit maturity as 'PoC available, exploitation not confirmed.' The vuln.today Decision label is 'this_week' (not act_now/emergency), which aligns with a serious-but-non-critical DoS: easy to trigger and repeatable, but it only exhausts CPU (no data exposure, no code execution, no memory growth). Note one labeling conflict to flag: the input Tags list 'Information Disclosure,' which contradicts both the description and the CVSS vector (VC:N/VI:N, VA:H) - this is an availability/DoS issue, not information disclosure. Overall: a real priority for any service rendering untrusted markdown server-side, but severity is driven entirely by availability.

Exploit ScenarioDerived

An attacker submits a small (~16 KB) markdown payload consisting of a long run of unmatched '[' characters (or nested '[[..]]') into any field an application renders with mistune - a comment box, wiki page, issue tracker, or chat message. When the server calls mistune to render it, the inline link parser performs O(N^2) probing and pegs a rendering worker's CPU for 30+ seconds per request (≈120 s at 32 KB), and the attacker repeats requests to exhaust the worker pool and deny service. A working proof-of-concept demonstrating this scaling is published in the GHSA advisory.

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 – Oct 22, 2026

Quadratic-time parsing in Mistune's inline link parser (all versions through 3.2.1) lets remote attackers stall server-side markdown rendering by submitting a small payload made of long runs of unmatched '[' characters. Each '[' triggers a probe of parse_link_text/parse_link_label, so work grows O(N^2): roughly 30+ seconds of CPU for a 16 KB input and proportionally worse as input grows, with the nested '[[..]]' shape costing a further ~4x. The vendor advisory reports a reproducible benchmark proof-of-concept against mistune 3.2.1 in default configuration (no plugins or options required); there is no CISA KEV listing and no confirmed in-the-wild exploitation, and the impact is CPU time only - no memory growth, no confidentiality or integrity effect - so sustained denial requires repeated requests to exhaust a worker or thread pool, most acutely on single-threaded WSGI deployments.

RemediationAI

Vendor-released patch: 3.3.0 - upgrade Mistune from <= 3.2.1 to 3.3.0 or later, per GHSA-xrpv-r66x-8p7j (https://github.com/lepture/mistune/security/advisories/GHSA-xrpv-r66x-8p7j); the advisory also lists https://www.vulncheck.com/advisories/mistune-before-3.3.0-quadratic-time-dos-via-unmatched-brackets-in-inline-parser. The fix removes the quadratic behaviour either by capping the number of unmatched '[' the parser tracks simultaneously (the advisory's surgical option, treating surplus brackets as literal text) or by replacing the per-bracket retry loop with a single-pass CommonMark-style delimiter stack; a regression test asserting that 50,000 consecutive '[' parse in under a second accompanies the change. Where upgrading cannot be done immediately, the exploitable precondition identified in the assessment is that the application accepts and renders multi-KB untrusted markdown server-side, so bounding accepted markdown field length and moving rendering into a worker pool with request timeouts limits the per-request stall - noting these reduce exposure without removing the parser-level quadratic, and a single request can still occupy a worker on a single-threaded WSGI deployment until the patched release is deployed.

Affected VersionsENISA

mistune 0 <3.3.0

Affected Packages

euvd mistune fix: 3.3.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

CWE-407 (inefficient algorithmic complexity), with the advisory also tagging CWE-1333 for the regex-adjacent aspects. The flaw sits in Mistune's inline parser dispatch (src/mistune/inline_parser.py): every '[' in the input is treated as a candidate link or image start, and each candidate position calls parse_link_text into parse_link_label. The LINK_LABEL pattern in src/mistune/helpers.py is itself bounded per call (r"(?:[^\\\[\]]|\\.){0,500}"), so a single match is cheap - the cost is in the calling loop, which never memoises failed label positions or caps the number of bracket-start attempts. For N consecutive '[' with no matching ']' (or N '[' followed by N ']'), the parser performs up to O(N) forward scanning from each of N positions. The CommonMark reference parser avoids this with a delimiter stack that resolves in a single O(N) pass; this is a sibling class to the previously fixed catastrophic-backtracking bug GHSA-fw3v-x4f2-v673, which changed a regex but left the surrounding parser-level quadratic in place. Memory consumption is not the vector; the cost is pure CPU occupancy of the rendering worker.

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 (vulncheck) PRIMARY 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.5 HIGH

Remote, unauthenticated, no interaction against default config (AV:N/AC:L/PR:N/UI:N); impact is CPU-exhaustion DoS only, so C:N/I:N/A:H with unchanged scope.

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 (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Oct 22, 2026 - 20:18 EUVD
CVE Published
Oct 22, 2026 - 19:17 cve.org
HIGH 8.7

DescriptionCVE.org

Mistune before 3.3.0 contains an algorithmic complexity vulnerability in the inline link parser that allows unauthenticated attackers to exhaust CPU by submitting long runs of unmatched '[' characters. Attackers can send small markdown payloads that trigger O(N^2) parse_link_text and parse_link_label probing, occupying rendering workers for 30+ seconds per 16 KB input.

Executive ViewAI

Why It Matters

Mistune, a widely used markdown rendering library embedded in many Python web applications, can be tied up for tens of seconds of CPU per request by a tiny, crafted input under all versions through 3.2.1. Any service that renders untrusted markdown server-side in its default configuration, especially single-threaded WSGI deployments, could see user-facing slowdowns or outages from repeated small requests. Leadership should care because the barrier to abuse is low and the affected component is often buried deep in the dependency stack, meaning the application inventory may not make it obvious which customer-facing services are exposed.

Business Impact: Medium
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: cap the length of markdown inputs before rendering and reject pathological runs of unmatched brackets, enforce request body size and per-client rate limits at the gateway, set strict request timeouts and worker concurrency limits in the application server, and add capacity or shielding in front of single-threaded WSGI deployments to absorb CPU-bound requests.

Threat Intelligence Overview

Prevalence
Medium
popular Python markdown library, common in web apps but library-scoped
Data Quality
3 sources
Confidence: Low

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.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Medium

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
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.

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

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