Python-Multipart: Semicolon treated as querystring field separator enables parameter smuggling
Kludex python-multipart
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| python-multipart PyPI |
|
|
Original description
Python-Multipart is a streaming multipart parser for Python. Prior to 0.0.30, QuerystringParser treated ; as a field separator in application/x-www-form-urlencoded bodies, in addition to &. The WHATWG URL standard, modern browsers, and Python's urllib.parse (since the CVE-2021-23336 fix) treat only & as a separator. This creates a parser differential: the same bytes are tokenized into different fields than a WHATWG compliant intermediary would produce, allowing an attacker to smuggle extra form fields past an upstream body inspecting component. This vulnerability is fixed in 0.0.30.
From the CVE record · GitHub_M