Every CVE Search/ Get API key

CVE-2026-53538

Python-Multipart: Semicolon treated as querystring field separator enables parameter smuggling

3.7 LowFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
High
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
Low
Availability
None

Exploit likelihood

0.26%Up 0.1 points since Jun 23, 2026
90%50%10%1%

What each source reports

CVE List Score used 3.7

Python-Multipart: Semicolon treated as querystring field separator enables parameter smuggling

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.

Record
CVE-2026-53538
CVSS 3.1
3.7 LowCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Weakness
CWE-436, CWE-444
Updated
2026-11-02
EUVDEUVD-2026-38323 3.7

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.

Record
EUVD-2026-38323
CVSS 3.1
3.7 LowCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Updated
2026-11-02
GitHub AdvisoriesGHSA-6jv3-5f52-599m 3.7

python-multipart: Semicolon treated as querystring field separator enables parameter smuggling

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=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.

Record
GHSA-6jv3-5f52-599m
CVSS 3.1
3.7 LowCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Weakness
CWE-436, CWE-444
Updated
2026-11-02
NVD 3.7

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.

Record
CVE-2026-53538
CVSS 3.1
3.7 LowCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Weakness
CWE-436, CWE-444
Updated
2026-11-02
OSV 3.7

Python-Multipart: Semicolon treated as querystring field separator enables parameter smuggling

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.

Record
CVE-2026-53538
CVSS 3.1
3.7 LowCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Weakness
CWE-436, CWE-444
Updated
2026-11-02
OSVDEBIAN-CVE-2026-53538 3.7

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.

Record
DEBIAN-CVE-2026-53538
CVSS 3.1
3.7 LowCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Updated
2026-11-02
Show 8 moreShow less
OSVGHSA-6jv3-5f52-599m 3.7

python-multipart: Semicolon treated as querystring field separator enables parameter smuggling

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=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.

Record
GHSA-6jv3-5f52-599m
CVSS 3.1
3.7 LowCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Weakness
CWE-436, CWE-444
Updated
2026-11-02
OSVPYSEC-2026-3037 3.7

python-multipart: Semicolon treated as querystring field separator enables parameter smuggling

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=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.

Record
PYSEC-2026-3037
CVSS 3.1
3.7 LowCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Updated
2026-11-02
OSVUBUNTU-CVE-2026-53538 3.7

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.

Record
UBUNTU-CVE-2026-53538
CVSS 3.1
3.7 LowCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Updated
2026-11-02
OSVCLSA-2026-1782954025 No score

TuxCare security update for python-multipart (2 CVEs)

TuxCare rebuilt python-multipart to address 2 CVEs. Fixed in 0.0.6.post5+tuxcare.

Record
CLSA-2026-1782954025
Updated
2026-11-02
OSVopenSUSE-SU-2026:11099-1 No score

python311-python-multipart-0.0.32-1.1 on GA media

These are all security issues fixed in the python311-python-multipart-0.0.32-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2026:11099-1
Updated
2026-11-02
OSVopenSUSE-SU-2026:21066-1 No score

Security update for python-python-multipart

This update for python-python-multipart fixes the following issues

  • CVE-2026-53537: multipart/form-data with extended parameters can lead to file or parameter smuggling (bsc#1268506).
  • CVE-2026-53538: urlencoded requests containing semicolons can lead to form field smuggling (bsc#1268496).
  • CVE-2026-53539: small crafted body can cause a denial of service (bsc#1268500).
  • CVE-2026-53540: crafted request buffers can lead to degrading availability (bsc#1268488).
Record
openSUSE-SU-2026:21066-1
Updated
2026-11-02
OSVROOT-APP-PYPI-CVE-2026-53538 No score

CVE-2026-53538 in python-multipart - Patched by Root

Root has patched CVE-2026-53538 in the python-multipart package for Root:PyPI. Multiple fixed versions available.

Record
ROOT-APP-PYPI-CVE-2026-53538
Updated
2026-11-02
OSVSUSE-SU-2026:22372-1 No score

Security update for python-python-multipart

This update for python-python-multipart fixes the following issues

  • CVE-2026-53537: multipart/form-data with extended parameters can lead to file or parameter smuggling (bsc#1268506).
  • CVE-2026-53538: urlencoded requests containing semicolons can lead to form field smuggling (bsc#1268496).
  • CVE-2026-53539: small crafted body can cause a denial of service (bsc#1268500).
  • CVE-2026-53540: crafted request buffers can lead to degrading availability (bsc#1268488).
Record
SUSE-SU-2026:22372-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
python-multipart
PyPI
before 0.0.30
0.0.30
python-multipart
TuxCare:PyPI
From an advisory covering 2 CVEs
0.0.6 up to 0.0.6.post5+tuxcare, plus listed versions
0.0.6.post1+tuxcare0.0.6.post2+tuxcare0.0.6.post3+tuxcare0.0.6.post4+tuxcare
0.0.6.post5+tuxcare
python-multipart
Debian:12
All versions, plus listed versions
0.0.17-10.0.17-20.0.17-30.0.17-40.0.17-5
Show 9 moreShow less
0.0.20-10.0.20-1.10.0.20-1.1~deb13u10.0.22-10.0.26-10.0.32-10.0.5-30.0.6-10.0.9-1
None known
python-multipart
Debian:13
All versions, plus listed versions
0.0.20-10.0.20-1.10.0.20-1.1~deb13u10.0.22-10.0.26-10.0.32-1
None known
python-multipart
Debian:14
before 0.0.32-1, plus listed versions
0.0.20-10.0.20-1.10.0.20-1.1~deb13u10.0.22-10.0.26-1
0.0.32-1
python-multipart
PyPI
before 0.0.30, plus listed versions
0.0.10.0.100.0.110.0.120.0.13
Show 24 moreShow less
0.0.140.0.150.0.160.0.170.0.180.0.190.0.20.0.200.0.210.0.220.0.230.0.240.0.250.0.260.0.270.0.280.0.290.0.30.0.40.0.50.0.60.0.70.0.80.0.9
0.0.30
python-multipart
Root:PyPI
before 0.0.27+aikido.3
0.0.27+aikido.30.0.26+aikido.50.0.29+aikido.3
python-python-multipart
SUSE:Linux Enterprise Server 16.0
From an advisory covering 4 CVEs
before 0.0.20-160000.5.1
0.0.20-160000.5.1
python-python-multipart
SUSE:Linux Enterprise Server for SAP applications 16.0
From an advisory covering 4 CVEs
before 0.0.20-160000.5.1
0.0.20-160000.5.1
python-multipart
Ubuntu:Pro:22.04:LTS
All versions, plus listed versions
0.0.5-20.0.5-2ubuntu0.1~esm1
None known
Show 6 moreShow less
Affected packages
PackageAffectedFixed
python-multipart
Ubuntu:Pro:24.04:LTS
All versions, plus listed versions
0.0.5-30.0.6-10.0.9-10.0.9-1ubuntu0.1~esm1
None known
python-multipart
Ubuntu:25.10
All versions, plus listed versions
0.0.20-1
None known
python-multipart
Ubuntu:26.10
All versions, plus listed versions
0.0.20-1.10.0.26-10.0.32-1
None known
python-multipart
Ubuntu:26.04:LTS
All versions, plus listed versions
0.0.20-10.0.20-1.1
None known
python-python-multipart
openSUSE:Tumbleweed
From an advisory covering 3 CVEs
before 0.0.32-1.1
0.0.32-1.1
python-python-multipart
openSUSE:Leap 16.0
From an advisory covering 4 CVEs
before 0.0.20-160000.5.1
0.0.20-160000.5.1

History

History
RecordedChangedSources
affected, facts
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2026-53538 is a low vulnerability (CVSS 3.7) in Fastapiexpert Python-multipart, published June 15, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.26%, the 17th percentile. Fixed in python-multipart 0.0.30.

References

Show 12 moreShow less
MoveEnter Open