CVE-2026-40347: Fastapi · python-multipart affected by Denial of Service via large multipart preamble or epilogue data
Affects fastapiSource GCVE Database
Not known to be exploited · CVSS 5.3 Medium : upgrade to 0.135.3_1 when convenient.
Data as of 9 Nov 2026, 20:03 UTC
- Patch
- Available – fixed in 0.135.3_1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LExploitation evidence
Disclosed: evidence found.
CVE published 17 Apr 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.135.3_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 FastAPI to version 0.135.3_1 or later, which includes fixes that skip ahead to the next boundary candidate when processing leading CR/LF data and immediately discard epilogue data after the closing boundary, mitigating the denial of service condition.
Description
A denial of service vulnerability in FastAPI's python-multipart parser allows attackers to send crafted multipart/form-data requests with large preamble or epilogue sections. This causes excessive CPU consumption during request parsing, degrading availability but not typically causing a full denial of service. The issue is fixed in version 0.135.3_1.