CVE-2026-53539Fastapiexpert Python-multipart
High 7.5 No auth needed
Follow: this CVE · Fastapiexpert · Fastapiexpert Python-multipart We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- —
- Auth required
- No
- Published
- Jun 22, 2026
- Updated
- Oct 25, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
Python-Multipart is a streaming multipart parser for Python. Prior to 0.0.30, when parsing application/x-www-form-urlencoded bodies, QuerystringParser located the field separator with a two step lookup: it first scanned the entire remaining buffer for &, and only when no & existed anywhere ahead did it fall back to scanning for ;. For a body that uses ; as the separator and contains no &, every field iteration performed a full failed & scan over the entire remaining buffer before locating the nearby ;. With N semicolon separated fields in a chunk of size B, this yields O(B^2) byte comparisons per chunk. An attacker can submit a small crafted body of the form a;a;a;... and cause the parser to spend seconds of CPU per request. A handful of concurrent requests can exhaust worker processes. This vulnerability is fixed in 0.0.30.
What to do
- Apply the vendor's security update for Python-multipart.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | python-multipart |
< 0.0.30 |
0.0.30 |
pip install "python-multipart>=0.0.30" |
| PyPI | python-multipart |
< 0.0.30 |
0.0.30 |
pip install "python-multipart>=0.0.30" |
Per OSV / GitHub Advisories (GHSA-5rvq-cxj2-64vf, PYSEC-2026-3036). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| fastapiexpert | python-multipart | < 0.0.30 |
Official advisories
- Security update for python-python-multipart · SUSE · openSUSE-SU-2026:21066-1 · Jun 26, 2026 High
- Security update for python-python-multipart · SUSE · SUSE-SU-2026:22372-1 · Jun 26, 2026 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Vendor Advisory