Skip to main content

python-multipart CVE-2026-53538

| EUVDEUVD-2026-38323 LOW
Interpretation Conflict (CWE-436)
2026-06-15 https://github.com/Kludex/python-multipart GHSA-6jv3-5f52-599m
3.7
CVSS 3.1 · Vendor: https://github.com/Kludex/python-multipart
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify WAF-protected FastAPI endpoint accepting form data
  2. Delivery
    Craft body with ';'-delimited smuggled field (e.g., role=user&x=;role=admin)
  3. Exploit
    WAF parses body per WHATWG, sees benign role=user, approves request
  4. Execution
    Backend python-multipart < 0.0.30 tokenizes ';' as separator, parses role=admin
  5. Persist
    FastAPI last-value-wins delivers smuggled parameter to application
  6. Impact
    Application grants unauthorized access or privilege

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V4 - API and Web Service Interpretation consistency
Exploitation Conditions

Exploitation requires a deployment topology where a WHATWG URL standard-compliant upstream component (WAF, API gateway, reverse proxy performing body inspection) sits in front of a python-multipart backend running version < 0.0.30. The targeted endpoint must accept application/x-www-form-urlencoded form bodies, and the application logic must act on the parsed field that the attacker intends to override (e.g., role=, scope=, is_admin=). For the parameter override to take effect in Starlette/FastAPI, the framework's last-value-wins field aggregation behavior must be in play. Exploitation is limited by: (1) the parser differential only manifests when the intermediary and backend apply different separator rules - deployments without an inspecting intermediary have no exploitable security boundary; (2) the chunk-dependent tokenization means crafted payloads may behave differently under chunked transfer encoding or streaming body parsers; (3) the application must use a field name controlled by the attacker as a security-sensitive decision parameter.

Impact

The NVD CVSS score of 3.7 (AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N) correctly captures the high attack complexity - successful exploitation requires a specific deployment topology where a WHATWG-compliant intermediary (WAF, API gateway, reverse proxy) inspects and enforces policy on form fields before forwarding to a python-multipart backend. In deployments lacking such an intermediary, the vulnerability yields no security boundary to bypass and therefore has no practical impact. No EPSS score was provided in the input data. No CISA KEV listing exists, and no public proof-of-concept has been identified, indicating this is not being actively exploited broadly. However, the low CVSS score may understate business logic risk: in architectures where the WAF is the sole enforcement point for access-control parameters (e.g., role=, admin=, scope=), a successful bypass can grant unauthorized privilege escalation. Security teams should weight AC:H carefully - the required topology is common in cloud-native deployments using API gateways fronting FastAPI services.

Exploit ScenarioDerived

An attacker submits a crafted HTTP POST with body role=user&x=;role=admin to an API endpoint protected by a WHATWG-compliant WAF. The WAF tokenizes the body as two fields - role=user and x=;role=admin - observes a benign role value, and forwards the request. The python-multipart backend parses three fields (role=user, x=, role=admin), and FastAPI's last-value-wins form parsing delivers role=admin to the application, granting the attacker an unauthorized privilege level the WAF never evaluated. No public proof-of-concept code has been identified, but the attack payload is trivially constructable from the published advisory details.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 15, 2026

Parser differential in python-multipart's QuerystringParser enables HTTP parameter pollution against applications protected by WHATWG-compliant upstream components (WAFs, API gateways). Versions prior to 0.0.30 tokenize semicolons as field separators in application/x-www-form-urlencoded bodies - diverging from WHATWG, modern browsers, and Python's urllib.parse - allowing an attacker to craft a request body whose fields are parsed differently by an upstream body inspector than by the backend, smuggling form parameters the intermediary never validated. No public exploit code and no CISA KEV listing have been identified at time of analysis, but the attack primitive is well-understood and mirrors the class of issue fixed in CPython as CVE-2021-23336.

RemediationAI

The primary fix is to upgrade python-multipart to version 0.0.30 or later, which removes the semicolon fallback separator and aligns with the WHATWG URL standard. The vendor advisory is available at https://github.com/Kludex/python-multipart/security/advisories/GHSA-6jv3-5f52-599m. For environments where immediate upgrade is not possible, a compensating control is to configure the upstream WAF or API gateway to also treat semicolons as field separators when parsing and validating application/x-www-form-urlencoded bodies - closing the parser differential. A trade-off of this approach is that it may break legitimate requests where ';' appears in field values. Alternatively, reject or sanitize request bodies containing semicolons in form-encoded payloads at the gateway layer, accepting the potential for false positives on benign data. No mitigation fully substitutes for the patch.

Affected VersionsENISA

python-multipart < 0.0.30

Affected Packages

pypi python-multipart fix: 0.0.30

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is python-multipart (pip:python-multipart), a Python library for parsing multipart and URL-encoded form data widely used by Starlette and FastAPI via request.form(). The root cause class is CWE-436 (Interpretation Conflict): in python_multipart/multipart.py, the FIELD_NAME and FIELD_DATA state machine first scans for '&' and, only when no '&' is found in the current buffer chunk, falls back to scanning for ';'. This fallback makes ';' a de-facto field separator, which contradicts the WHATWG URL standard (https://url.spec.whatwg.org/#urlencoded-parsing) that exclusively recognizes '&'. The behavior is chunk-dependent - tokenization varies based on how the body is split across write() calls - making it a class of latent differential rather than a simple static misconfiguration. Starlette/FastAPI aggregate repeated field names with last-value-wins semantics, amplifying the severity: a smuggled duplicate field name overrides an earlier validated one.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/Kludex/python-multipart) PRIMARY 3.7 LOW
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
vuln.today AI 3.7 LOW

Network vector with high complexity because exploitation requires a specific WHATWG-compliant intermediary topology; no privileges needed; integrity impact only via parameter smuggling.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/Kludex/python-multipart).

CVSS VectorVendor: https://github.com/Kludex/python-multipart

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

DescriptionCVE.org

Summary

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.

Details

In python_multipart/multipart.py, the FIELD_NAME and FIELD_DATA states located the next separator by scanning for & and, failing that, for ;:

python
sep_pos = data.find(b"&", i)
if sep_pos == -1:
    sep_pos = data.find(b";", i)

As a result, ; acted as a field boundary. Because the fallback only triggered when no & remained in the current chunk, tokenization also depended on unrelated bytes later in the buffer and on how the body was split across write() calls. This is the same class of issue as CVE-2021-23336 in CPython's urllib.parse.

For example, a body inspecting WAF or gateway that follows the WHATWG rule (only & separates fields) receives:

role=user&x=;role=admin

The upstream parses two fields, role=user and x=";role=admin", sees a benign role=user, and forwards the request. QuerystringParser parsed the same bytes as three fields: role="user", x="", and role="admin". The application (for example via Starlette/FastAPI request.form(), where the last value wins) then received role=admin, a value the upstream validator never saw.

The parser is reachable through the public QuerystringParser class, the high level FormParser, create_form_parser, and parse_form APIs, and Starlette/FastAPI request.form() for url encoded bodies.

Impact

Interpretation conflict / HTTP parameter pollution. An attacker can smuggle extra or overriding form fields past an upstream component that applies the WHATWG separator rule, reaching the backend with parameters the intermediary did not observe.

Mitigation

Upgrade to python-multipart 0.0.30 or later, which treats only & as a field separator per the WHATWG URL standard. ; is parsed as ordinary field data, matching urllib.parse, browsers, and other compliant parsers.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 5 pypi packages depend on python-multipart (5 direct, 0 indirect)

Ecosystem-wide dependent count for version 0.0.30.

Threat Intelligence Overview

EPSS Score
0.2%
Top 93% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

18
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +18
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy