Skip to main content

Starlette CVE-2026-54283

| EUVDEUVD-2026-38319 HIGH
Allocation of Resources Without Limits or Throttling (CWE-770)
2026-06-15 https://github.com/Kludex/starlette GHSA-82w8-qh3p-5jfq
7.5
CVSS 3.1 · Vendor: https://github.com/Kludex/starlette
View

Attack ChainAIDerived

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

  1. Recon
    Identify Starlette/FastAPI endpoint accepting form data
  2. Delivery
    Craft urlencoded body with ~1M fields or one 50MB field
  3. Exploit
    POST to endpoint as unauthenticated client
  4. Install
    Urlencoded parser ignores configured limits
  5. C2
    Event loop blocks or memory exhausts on worker
  6. Execute
    Repeat in parallel across workers
  7. Impact
    Service 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 (f0=v&f1=v&..., under 10MB), which Starlette parses synchronously and blocks the worker's event loop for several seconds. The attacker repeats this against all workers in parallel, or alternatively sends a single 50MB single-field body to exhaust memory; either pattern renders the FastAPI/Starlette service unresponsive to other clients. No POC is published in the advisory, but the payload shape is described explicitly enough that constructing one takes minutes.

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

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

Alert me

AnalysisAIv1 – 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

starlette 0.4.1, < 1.3.1

Affected Packages

pypi starlette fix: 1.3.1

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

Vendor (https://github.com/Kludex/starlette) 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 POST to any request.form() endpoint with no user interaction; only availability is impacted via event-loop blocking or memory exhaustion.

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
SUSE HIGH
Red Hat 7.5 HIGH

Primary rating from Vendor (https://github.com/Kludex/starlette).

CVSS VectorVendor: https://github.com/Kludex/starlette

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.3%
Top 81% exploitable
Threat Intel
1
1 source
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

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.3%
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
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

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

Vendor 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

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