CVE-2026-40347: python-multipart affected by Denial of Service via large multipart preamble or epilogue data
CVE-2026-40347 · Severity: medium · CVSS 5.3 · Published 2026-04-18
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.
Yes. python-multipart (PyPI): upgrade to 0.0.26 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2026-40347?
Check whether you run Fastapiexpert Python-Multipart or python-multipart (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
python-multipart (PyPI): upgrade to 0.0.26 or later