Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify Starlette/FastAPI endpoint accepting form data
-
DeliveryCraft urlencoded body with ~1M fields or one 50MB field
-
ExploitPOST to endpoint as unauthenticated client
-
InstallUrlencoded parser ignores configured limits
-
C2Event loop blocks or memory exhausts on worker
-
ExecuteRepeat in parallel across workers
-
ImpactService becomes unresponsive
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation 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 the target Starlette or FastAPI application to expose an HTTP endpoint that calls request.form() and accepts application/x-www-form-urlencoded request bodies; this is the default behavior of Form() parameters in FastAPI, so any unauthenticated form-accepting route on a vulnerable Starlette version (>=0.4.1, <1.3.1) qualifies. No authentication, user interaction, or non-default configuration is required (CVSS PR:N/UI:N). The main limiting factors are a reverse-proxy body-size cap below ~1MB (which materially reduces but does not eliminate the event-loop blocking attack), running multiple worker processes (which limits a single request to degrading rather than killing the service), and endpoints that only accept JSON or multipart and reject urlencoded content. |
| Impact | The CVSS 3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H accurately reflects an availability-only impact reachable by any remote unauthenticated client, and the 7.5 score is consistent with practical DoS exposure. No EPSS, KEV, or POC signals were provided in the input, so real-world exploitation pressure is unknown; absence of a KEV listing suggests this is not yet seen in active attacks, but the attack is trivially constructed (a few lines of curl) and the patch advisory describes the payload shape explicitly, so weaponization is straightforward once defenders or attackers read it. The risk is meaningful for any Starlette/FastAPI service that calls request.form() on an unauthenticated endpoint, especially single-worker deployments where one blocked event loop equals total outage; multi-worker deployments degrade gracefully but still suffer under parallel requests. There is no conflict between the CVSS signals and the description, but the lack of EPSS/POC data means deployment-specific judgement matters more than the raw score. |
| Exploit ScenarioDerived | An unauthenticated attacker sends a single HTTP POST with Content-Type: application/x-www-form-urlencoded and a body of roughly one million fields ( |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 15, 2026
Denial of service in Starlette (and downstream FastAPI applications) versions 0.4.1 through 1.3.0 allows remote unauthenticated attackers to exhaust CPU or memory by sending crafted application/x-www-form-urlencoded request bodies. The max_fields and max_part_size limits accepted by request.form() are silently ignored for urlencoded content, so a sub-10MB body can block the event loop for seconds or force unbounded memory allocation. No public exploit identified at time of analysis, but the bug is documented in detail in the upstream GHSA advisory.
RemediationAI
Upgrade Starlette to the vendor-released patch version 1.3.1 or later (pip install --upgrade 'starlette>=1.3.1'); the patched release forwards max_fields and max_part_size to the urlencoded parser and enforces the same 1000-field / 1MB defaults already used for multipart bodies. FastAPI users should ensure their FastAPI version pulls in the fixed Starlette, or pin starlette>=1.3.1 directly in requirements. Until upgrade is possible, the most effective compensating control is to wrap or replace request.form() with custom code that reads request.body() with a strict Content-Length cap and parses urlencoded data manually with explicit field-count and size checks; a reverse-proxy body size limit (e.g. nginx client_max_body_size set to a low value such as 1MB) materially reduces but does not eliminate exposure because a sub-10MB body still blocks the event loop, and tightening it further may break legitimate uploads. Restricting unauthenticated endpoints that accept form-encoded data, or rejecting application/x-www-form-urlencoded requests where the endpoint expects multipart or JSON, also reduces the attack surface at the cost of API flexibility. See the advisory at https://github.com/Kludex/starlette/security/advisories/GHSA-82w8-qh3p-5jfq for full details.
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
Starlette is the ASGI framework that underpins FastAPI and many Python async web services. Its request.form() method dispatches to one of two parsers based on Content-Type: a multipart parser that correctly receives max_files, max_fields and max_part_size, and a urlencoded parser that was constructed without those parameters and lacks any field-count or size checks. The urlencoded parser also runs synchronously between stream reads, so heavy parsing blocks the event loop for the entire worker. This is a textbook CWE-770 (Allocation of Resources Without Limits or Throttling) issue: the limit-enforcement code path simply does not exist for one of the supported content types. The affected package per CPE pkg:pip/starlette covers all versions >= 0.4.1 and < 1.3.1.
Know when the next one hits your stack
- 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 POST to any request.form() endpoint with no user interaction; only availability is impacted via event-loop blocking or memory exhaustion.
Primary rating from Vendor (https://github.com/Kludex/starlette).
CVSS VectorVendor: https://github.com/Kludex/starlette
DescriptionCVE.org
Summary
request.form() accepts max_fields and max_part_size to bound resource consumption while parsing form data. These limits are enforced for multipart/form-data, but silently ignored for application/x-www-form-urlencoded. An unauthenticated attacker can therefore send a urlencoded body with an arbitrarily large number of fields or an arbitrarily large field, even when the application configured limits it believed would apply.
Details
request.form() dispatches to a different parser depending on the Content-Type. For multipart/form-data the max_files, max_fields, and max_part_size limits are forwarded to the parser, but for application/x-www-form-urlencoded the parser is constructed without them. It has no max_fields or max_part_size parameter to receive them, and it appends every field with no count check and accumulates each field's name and value with no size check. The configured limits are therefore both unreachable and unenforced for url-encoded bodies.
Because the url-encoded parser does its work synchronously between stream reads, the two attack shapes have different effects:
- Field count drives CPU and event-loop blocking. A body of ~1,000,000 fields (a sub-10MB payload such as
f0=v&f1=v&...) blocks the worker's event loop for several seconds while parsing, during which the worker serves no other request. - Field size drives memory. A single large field value (e.g. a 50MB value) is buffered in full to build the
FormData, forcing memory allocation proportional to the request body.
The equivalent multipart/form-data request is correctly rejected with 400 Too many fields / 400 Field exceeded maximum size.
Impact
This Denial of service (DoS) vulnerability affects all applications built with Starlette (or FastAPI) that call request.form() on application/x-www-form-urlencoded requests. A single request with a very large number of fields blocks the event loop for several seconds, and a single request with a very large field forces unbounded memory allocation; in either case, parallel requests can render the service unusable. A reverse proxy that enforces a request body size limit reduces but does not eliminate the exposure, since a sub-10MB body is already enough to block the event loop.
Mitigation
Upgrade to a patched version, which forwards max_fields and max_part_size to the url-encoded parser and enforces them while parsing, raising before the oversized field or excess fields are accumulated. The defaults match multipart/form-data (max_fields=1000, max_part_size=1MB) and can be customized via request.form(max_fields=..., max_part_size=...).
Executive ViewAI
Starlette versions 0.4.1-1.3.0, widely deployed in FastAPI applications and downstream web services, contain an unauthenticated denial-of-service vulnerability allowing attackers to crash services with small HTTP requests. While no public exploit identified at time of analysis, this framework-level vulnerability poses significant operational risk to production environments. Any organization running affected versions faces potential service outages triggered remotely with minimal attacker resources.
No vendor-released patch identified at time of analysis. Implement rate limiting at reverse proxy/WAF layer for form submission endpoints, enforce maximum request body sizes (recommend <1MB for urlencoded data), deploy real-time monitoring for resource exhaustion patterns (CPU/memory spikes), configure automated circuit breakers or service restarts triggered on high resource utilization thresholds, and consider deploying affected services in isolated clusters to limit outage blast radius until vendor patch is released.
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.
Same technique Denial Of Service
View allVendor StatusVendor
SUSE
Severity: Important| Product | Status |
|---|---|
| SUSE Linux Enterprise Server 16.0 | Affected |
| SUSE Linux Enterprise Server 16.0 | Affected |
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.0 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
| openSUSE Leap 16.0 | Affected |
| openSUSE Leap 15.6 | Affected |
EUVD-2026-38319
GHSA-82w8-qh3p-5jfq
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB