CVE-2026-40347
MEDIUM 5.3CVSS 3.1python-multipart affected by Denial of Service via large multipart preamble or epilogue data
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.
- Published
- 18 Apr 2026
- Last modified
- 26 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-400CWE-834
- Also known as
- GHSA-mj87-hwqh-73pjPYSEC-2026-3038
- Sources
- NVDJSONOSV GHSA-mj87-hwqh-73pjJSONOSV PYSEC-2026-3038JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| OSV | PyPA | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | fastapiexpert | python-multipartcpe:2.3:a:fastapiexpert:python-multipart:*:*:*:*:*:python:*:* |
< 0.0.26 | 0.0.26 |
| OSV | PyPI | python-multipart | < 0.0.26 | 0.0.26 |
References
- https://github.com/Kludex/python-multipart/releases/tag/0.0.26 · Product, Release Notes, WEB
- https://github.com/Kludex/python-multipart/security/advisories/GHSA-mj87-hwqh-73pj · Vendor Advisory, 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
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 18 Apr 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 15 Apr 2026)