# CVE-2026-40347: Python-Multipart affected by Denial of Service via large multipart preamble or epilogue data

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 32% of CVEs (2026-12-01)
- Published: 2026-04-15T19:45:44.000Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-mj87-hwqh-73pj, PYSEC-2026-3038
- Weaknesses: CWE-400, CWE-834
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- Kludex python-multipart: < 0.0.26
- python-multipart (PyPI): before 0.0.26
- fastapiexpert python-multipart: before 0.0.26

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- PyPA Advisory Database: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/Kludex/python-multipart/security/advisories/GHSA-mj87-hwqh-73pj> (vendor-advisory, web)
- <https://github.com/Kludex/python-multipart/releases/tag/0.0.26> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40347> (advisory)
- <https://github.com/Kludex/python-multipart> (package)
- <https://pypi.org/project/python-multipart> (package)
- <https://github.com/advisories/GHSA-mj87-hwqh-73pj> (advisory)

## Sources

- CVE List: [CVE-2026-40347](https://www.cve.org/CVERecord?id=CVE-2026-40347), CVE Terms of Use, modified 2026-04-20
- GitHub Advisory Database: [GHSA-mj87-hwqh-73pj](https://github.com/advisories/GHSA-mj87-hwqh-73pj), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-40347](https://nvd.nist.gov/vuln/detail/CVE-2026-40347), Public domain, modified 2026-10-26
- PyPA Advisory Database: [PYSEC-2026-3038](https://osv.dev/vulnerability/PYSEC-2026-3038), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-40347 · Whole record: https://cve.day/CVE-2026-40347.json · Rebuilt by cve.day 2026-11-25T22:59:18.984Z
