CVE-2023-45803: Request body not stripped after redirect in urllib3
Vulnerability summary
CVE-2023-45803 is a medium (CVSS 4.2) vulnerability in fedoraproject fedora. EPSS estimates a 0.59% chance of exploitation in the next 30 days, higher than 48.3% of scored vulnerabilities.
Not severe (CVSS 4.2, adjacent network); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 21 · Related 17Timeline
- 17-10-2023PublishedVulnerability first disclosed.
- 03-11-2025Last modifiedVulnerability information updated.
Description
urllib3 is a user-friendly HTTP client library for Python. urllib3 previously wouldn't remove the HTTP request body when an HTTP redirect response using status 301, 302, or 303 after the request had its method changed from one that could accept a request body (like `POST`) to `GET` as is required by HTTP RFCs. Although this behavior is not specified in the section for redirects, it can be inferred by piecing together information from different sections and we have observed the behavior in other major HTTP client implementations like curl and web browsers. Because the vulnerability requires a previously trusted service to become compromised in order to have an impact on confidentiality we believe the exploitability of this vulnerability is low. Additionally, many users aren't putting sensitive data in HTTP request bodies, if this is the case then this vulnerability isn't exploitable. Both of the following conditions must be true to be affected by this vulnerability: 1. Using urllib3 and submitting sensitive information in the HTTP request body (such as form data or JSON) and 2. The origin service is compromised and starts redirecting using 301, 302, or 303 to a malicious peer or the redirected-to service becomes compromised. This issue has been addressed in versions 1.26.18 and 2.0.7 and users are advised to update to resolve this issue. Users unable to update should disable redirects for services that aren't expecting to respond with redirects with `redirects=False` and disable automatic redirects with `redirects=False` and handle 301, 302, and 303 redirects manually by stripping the HTTP request body.
CVSS metrics
9 scores · 9 sources · 1 version- OSV · AlpineEcosystem advisory · calculated4.2MediumCVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N
- OSV · PypiEcosystem advisory · calculated4.2MediumCVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N
- OSV · Red hatEcosystem advisory · calculated4.2MediumCVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N
- OSV · UbuntuEcosystem advisory · calculated4.2MediumCVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N
- OSV · DebianEcosystem advisory · calculated4.2MediumCVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N
- OSV · WolfiEcosystem advisory · calculated4.2MediumCVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N
- OSV · ChainguardEcosystem advisory · calculated4.2MediumCVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N
- NVDNIST4.2MediumCVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
0.59%
Chance of exploitation in the next 30 days
Percentile
48%
Versus all other CVEs
30-day change
Increase +0.05 pp
From 0.54% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: adjacent network, administrative account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard45 products
- az< 2.67.0-r1
- az-iamguarded-compat< 2.67.0-r1
- graalvm-24-graalpy-venvAll versions (No fix recorded)
- jwt-tool< 2.2.6-r2
- k8s-sidecar-1.22< 1.22.4-r2
Wolfi36 products
- az< 2.67.0-r1
- az-iamguarded-compat< 2.67.0-r1
- jwt-tool< 2.2.6-r2
- katib-controller< 0.18.0-r0
- katib-controller-compat< 0.18.0-r0
Suse17 products
- python-urllib3&distro=HPE Helion OpenStack 8< 1.25.10-5.25.1
- python-urllib3&distro=SUSE Linux Enterprise Micro 5.1< 1.25.10-150300.4.9.1
- python-urllib3&distro=SUSE Linux Enterprise Micro 5.2< 1.25.10-150300.4.9.1
- python-urllib3&distro=SUSE Linux Enterprise Micro 5.3< 1.25.10-150300.4.9.1
- python-urllib3&distro=SUSE Linux Enterprise Micro 5.4< 1.25.10-150300.4.9.1
Redhat10 products
- python-urllib3< 0:1.25.10-6.el8ost
- python3-urllib3< 0:1.25.10-6.el8ost
- python3.11-urllib3< 0:1.26.12-5.el8_10 | < 0:1.26.12-2.el9_5.2 | < 0:1.26.12-1.el8_8.2 | < 0:1.26.12-2.el9_4.2 | < 0:1.26.12-1.el9_2.1
- resource-agents< 0:4.9.0-40.el8_8.2
- resource-agents-aliyun< 0:4.9.0-40.el8_8.2
Opensuse5 products
- python-urllib3&distro=openSUSE Leap 15.4< 1.25.10-150300.4.9.1
- python-urllib3&distro=openSUSE Leap 15.5< 1.25.10-150300.4.9.1
- python-urllib3&distro=openSUSE Leap Micro 5.3< 1.25.10-150300.4.9.1
- python-urllib3&distro=openSUSE Leap Micro 5.4< 1.25.10-150300.4.9.1
- python-urllib3&distro=openSUSE Tumbleweed< 2.0.7-1.1
Ubuntu2 products
- python-pipAll versions (No fix recorded) | < 8.1.1-2ubuntu0.6+esm6 | < 9.0.1-2.3~ubuntu1.18.04.8+esm2 | < 20.0.2-5ubuntu1.10 | < 22.0.2+dfsg-1ubuntu0.4 | < 24.0+dfsg-1ubuntu1.3
- python-urllib3All versions (No fix recorded) | < 1.13.1-2ubuntu0.16.04.4+esm1 | < 1.22-1ubuntu0.18.04.2+esm1 | < 1.25.8-2ubuntu0.3 | < 1.26.5-1~exp1ubuntu0.1
Alpine1 product
- py3-urllib3< 1.26.18-r0
Debian1 product
- python-urllib3< 1.24.1-1+deb10u2 | < 1.26.12-1+deb12u1 | < 1.26.18-1
Fedoraproject1 product
- fedoraEOL38
PyPI1 product
- urllib3≥ 2.0.0, < 2.0.7 | < 4e98d57809dacab1cbe625fddeec1a290c478ea9 | < 1.26.18
Python1 product
- urllib3< 1.26.18 | ≥ 2.0.0, < 2.0.7
Urllib31 product
- urllib3≥ 2.0.0, < 2.0.7 | < 1.26.18
12 vendors · 121 products
References
48 links- github.com/urllib3/urllib3/security/advisories/GHSA-g4mx-q9vg-27p4X Refsource CONFIRMWEBAdvisoryARTICLEREPORTThird Party Advisory
- github.com/urllib3/urllib3/commit/4e98d57809dacab1cbe625fddeec1a290c478ea9X Refsource MISCWEBFIXARTICLEREPORTPatch
Show all 48 references
- github.com/urllib3/urllib3PACKAGE