CVE-2026-40347
Received
Received - Intake
Denial of Service in Python-Multipart via Malformed Multipart Requests
Publication date: 2026-04-18
Last updated on: 2026-04-24
Assigner: GitHub, Inc.
Description
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 Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| fastapiexpert | python-multipart | to 0.0.26 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-834 | The product performs an iteration or loop without sufficiently limiting the number of times that the loop is executed. |
| CWE-400 | The product does not properly control the allocation and maintenance of a limited resource. |