CVE-2023-45803
Request body not stripped after redirect in urllib3
Reported by github_m · Published October 17, 2023
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kubeflow-volumes-web-app | Wolfi | 1.7.0-r8 |
| nvidia-nsight-compute-13.2 | Chainguard | 2026.1.1.2-r2 |
| kubeflow-katib | Wolfi | 0.18.0-r0 |
| kubeflow-jupyter-web-app | Wolfi | 1.8.0-r2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| urllib3 | urllib3 | >= 2.0.0, < 2.0.7, < 1.26.18 |
| wolfi | kubeflow-volumes-web-app | 0 |
| chainguard | nvidia-nsight-compute-13.2 | 0 |
| wolfi | kubeflow-katib | 0 |
| wolfi | kubeflow-jupyter-web-app | 0 |
| urllib3 | urllib3 | 0, 2.0.0 |
| chainguard | py3-pipenv | 0 |
| chainguard | py3-tensorflow-serving-api | 0 |
| chainguard | py3-urllib3-1 | 0 |
| chainguard | jwt-tool | 0 |
| amazon:2 | python-urllib3 | 0 |
| chainguard | py3.11-torchaudio-cuda-12.3 | 0 |
| chainguard | request-1276 | 0 |
| wolfi | py3-tensorflow-serving-api | 0 |
| chainguard | py3.11-torchvision-cuda-11.8 | 0 |
| amazon:2023 | python3-urllib3 | 0 |
| chainguard | az | 0 |
| chainguard | kubeflow-jupyter-web-app | 0 |
| PyPI | urllib3 | 0, 2.0.0 |
| chainguard | nvidia-nsight-compute-13.1 | 0 |
…and 15 more
Timeline
- Oct 17, 2023 CVE Published
- Oct 18, 2023 EPSS Score (30 in total, the first dated here)
- Jan 29, 2026 Security Advisory (59 in total, the first dated here)
- Aug 2, 2026 Coalition ESS Score
- Nov 21, 2026 Distribution Patch (54 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-45803
vulnetix vdb fixes CVE-2023-45803
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-45803/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/urllib3/urllib3/security/advisories/GHSA-g4mx-q9vg-27p4 x_refsource_CONFIRM
- https://github.com/urllib3/urllib3/commit/4e98d57809dacab1cbe625fddeec1a290c478ea9 x_refsource_MISC
- https://www.rfc-editor.org/rfc/rfc9110.html#name-get x_refsource_MISC
- https://lists.debian.org/debian-lts-announce/2024/12/msg00020.html url
- https://nvd.nist.gov/vuln/detail/CVE-2023-45803 advisory
- https://github.com/advisories/GHSA-g4mx-q9vg-27p4 advisory
- https://github.com/urllib3/urllib3/commit/4e50fbc5db74e32cabd5ccc1ab81fc103adfe0b3 patch
- https://github.com/urllib3/urllib3/commit/b594c5ceaca38e1ac215f916538fb128e3526a36 patch
- https://github.com/pypa/advisory-database/tree/main/vulns/urllib3/PYSEC-2023-212.yaml advisory
- https://github.com/urllib3/urllib3 url
- https://github.com/urllib3/urllib3/releases/tag/1.26.18 url
- https://github.com/urllib3/urllib3/releases/tag/2.0.7 url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4R2Y5XK3WALSR3FNAGN7JBYV2B343ZKB url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5F5CUBAN5XMEBVBZPHFITBLMJV5FIJJ5 url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PPDPLM6UUMN55ESPQWJFLLIZY4ZKCNRX url