Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify WAF-protected FastAPI endpoint accepting form data
-
DeliveryCraft body with ';'-delimited smuggled field (e.g., role=user&x=;role=admin)
-
ExploitWAF parses body per WHATWG, sees benign role=user, approves request
-
ExecutionBackend python-multipart < 0.0.30 tokenizes ';' as separator, parses role=admin
-
PersistFastAPI last-value-wins delivers smuggled parameter to application
-
ImpactApplication 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Network vector with high complexity because exploitation requires a specific WHATWG-compliant intermediary topology; no privileges needed; integrity impact only via parameter smuggling.
Primary rating from Vendor (https://github.com/Kludex/python-multipart).
CVSS VectorVendor: https://github.com/Kludex/python-multipart
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 ;:
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=adminThe 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- 5 pypi packages depend on python-multipart (5 direct, 0 indirect)
Ecosystem-wide dependent count for version 0.0.30.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
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
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-38323
GHSA-6jv3-5f52-599m
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB