Medium severity · published Apr 17, 2026
CVE-2026-40347
Python-Multipart affected by Denial of Service via large multipart preamble or epilogue data
5.3
CVSS
0.4%
EPSS
No
On KEV
Description
Python-Multipart is a streaming multipart parser for Python. Versions prior to 0.0.26 have a denial of service vulnerability when parsing crafted `multipart/form-data` requests with large preamble or epilogue sections. Upgrade to version 0.0.26 or later, which skips ahead to the next boundary candidate when processing leading CR/LF data and immediately discards epilogue data after the closing boundary.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
None
Availability
Low
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 29% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
PY
python-multipart · Kludex
< 0.0.26 · source: vendor, NVD
Affected product
PY
python-multipart
Kludex
More from python-multipart
7.5
CVE-2026-53539
Python-Multipart: Quadratic-time querystring parsing with semicolon separators causes CPU denial of service
7.5
CVE-2026-42561
Python-Multipart: Denial of Service via unbounded multipart part headers
5.3
CVE-2026-53537
Python-Multipart: Content-Disposition parameter smuggling via RFC 2231/5987 extended parameters
3.7
CVE-2026-53540
Python-Multipart: Negative Content-Length in parse_form buffers the entire body in memory
3.7
CVE-2026-53538
Python-Multipart: Semicolon treated as querystring field separator enables parameter smuggling