CVE-2026-42561: Fastapi · python-multipart has Denial of Service via unbounded multipart part headers
Affects fastapiSource GCVE Database
Not known to be exploited · CVSS 7.5 High : upgrade to 0.136.1_1 soon.
Data as of 9 Nov 2026, 20:02 UTC
- Patch
- Available – fixed in 0.136.1_1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 13 May 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 9 Nov 2026.
What to do
Upgrade fastapi to 0.136.1_1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewfastapipkg:brew/fastapiOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade python-multipart to version 0.136.1_1 or later to apply the official fix that enforces limits on multipart header count and size. If immediate upgrade is not possible, mitigate exposure by enforcing request body size limits at the server, proxy, or framework level, though this is only a partial mitigation as the underlying parsing limits remain absent in affected versions.
Description
The python-multipart library used by FastAPI and other ASGI frameworks has a denial of service vulnerability due to unbounded multipart part header parsing. Attackers can cause excessive CPU usage by sending multipart requests with either many repeated headers or very large header values. This leads to worker or event-loop delays in affected applications.