CVE-2026-53537: CWE-20: Improper Input Validation in Kludex python-multipart
A vulnerability in python-multipart prior to version 0.0.30 allows improper input validation of multipart/form-data headers. The parser incorrectly applies RFC 2231/5987 decoding to Content-Disposition headers, which is forbidden by RFC 7578 for multipart/form-data. This discrepancy can be exploited to smuggle altered field names or filenames past upstream security components that do not implement the same decoding, potentially leading to information manipulation. The issue is fixed in version 0.0.30.
AI Analysis
Technical Summary
Python-Multipart versions before 0.0.30 parse Content-Disposition and Content-Type headers using email.message.Message, which applies RFC 2231/5987 decoding. This decoding exposes extended parameter syntax (e.g., filename*=charset'lang'value) under the standard filename/name keys, overriding plain parameters. RFC 7578 §4.2 forbids the use of filename* in multipart/form-data, so components adhering to RFC 7578 or lacking RFC 2231/5987 decoding may interpret these headers differently. An attacker can exploit this inconsistency to smuggle different field names or filenames past upstream inspectors such as WAFs, proxies, or gateways, potentially bypassing security controls. The vulnerability is addressed by fixing the parsing behavior in python-multipart version 0.0.30.
Potential Impact
This vulnerability allows an attacker to bypass upstream security inspection by exploiting differences in header parsing, potentially leading to the smuggling of altered field names or filenames to backend systems. The impact is limited to information integrity (low impact) without direct confidentiality or availability effects. There are no known exploits in the wild.
Mitigation Recommendations
Upgrade python-multipart to version 0.0.30 or later, where this vulnerability is fixed. No other mitigation is indicated or required.
CVE-2026-53537: CWE-20: Improper Input Validation in Kludex python-multipart
Description
A vulnerability in python-multipart prior to version 0.0.30 allows improper input validation of multipart/form-data headers. The parser incorrectly applies RFC 2231/5987 decoding to Content-Disposition headers, which is forbidden by RFC 7578 for multipart/form-data. This discrepancy can be exploited to smuggle altered field names or filenames past upstream security components that do not implement the same decoding, potentially leading to information manipulation. The issue is fixed in version 0.0.30.
CVSS v3.1
Score 3.7low
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Python-Multipart versions before 0.0.30 parse Content-Disposition and Content-Type headers using email.message.Message, which applies RFC 2231/5987 decoding. This decoding exposes extended parameter syntax (e.g., filename*=charset'lang'value) under the standard filename/name keys, overriding plain parameters. RFC 7578 §4.2 forbids the use of filename* in multipart/form-data, so components adhering to RFC 7578 or lacking RFC 2231/5987 decoding may interpret these headers differently. An attacker can exploit this inconsistency to smuggle different field names or filenames past upstream inspectors such as WAFs, proxies, or gateways, potentially bypassing security controls. The vulnerability is addressed by fixing the parsing behavior in python-multipart version 0.0.30.
Potential Impact
This vulnerability allows an attacker to bypass upstream security inspection by exploiting differences in header parsing, potentially leading to the smuggling of altered field names or filenames to backend systems. The impact is limited to information integrity (low impact) without direct confidentiality or availability effects. There are no known exploits in the wild.
Mitigation Recommendations
Upgrade python-multipart to version 0.0.30 or later, where this vulnerability is fixed. No other mitigation is indicated or required.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-09T18:13:07.262Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a39735aeed863c81e39622d
Added to database: 06/22/2026, 17:39:38 UTC
Last enriched: 06/22/2026, 18:09:34 UTC
Last updated: 06/22/2026, 23:08:12 UTC
Views: 11
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.