NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · PyPI

CVE-2026-28356: multipart vulnerable to ReDoS in `parse_options_header()`

highCVSS 3.1 7.5GHSA-p2m9-wcp5-6qw3

Summary The parseoptionsheader() function in multipart.py uses a regular expression with an ambiguous alternation, which can cause exponential backtracking (ReDoS) when parsing maliciously crafted HTTP or multipart segment headers. This can be abused for denial of service (DoS) attacks against web applications using this library to parse request headers or multipart/form-data streams.

Published Mar 12, 2026

Affected packages

multipart

Ecosystem
PyPI
Affected
>= 1.3.0, < 1.3.1
Fixed in
1.3.1
Check
pip show multipart

multipart

Ecosystem
PyPI
Affected
< 1.2.2
Fixed in
1.2.2
Check
pip show multipart

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Summary

The parse_options_header() function in multipart.py uses a regular expression with an *ambiguous alternation*, which can cause *exponential backtracking (ReDoS)* when parsing maliciously crafted HTTP or multipart segment headers. This can be abused for denial of service (DoS) attacks against web applications using this library to parse request headers or multipart/form-data streams.

Impact

Any WSGI or ASGI application using multipart.parse_form_data() directly or indirectly (e.g. while parsing multipart/form-data streams) is vulnerable. The slow-down is significant enough to block request handling threads for multiple seconds per request.

Affected versions

All versions up to and including 1.3.0 are affected. The issue is fixed in 1.2.2, 1.3.1 and 1.4.0-dev.

Credited to sharanxP.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology