# CVE-2023-45803: Request body not stripped after redirect in urllib3

- Severity: Medium 4.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.59%, higher than 49% of CVEs (2026-12-01)
- Published: 2023-10-17T19:43:45.404Z
- Modified: 2026-09-10T03:50:03.706Z
- Also known as: GHSA-g4mx-q9vg-27p4, PYSEC-2023-212
- Weaknesses: CWE-200
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- urllib3 urllib3: >= 2.0.0, < 2.0.7; < 1.26.18
- urllib3 (PyPI): from 2.0.0 before 2.0.7; before 1.26.18; before 4e98d57809dacab1cbe625fddeec1a290c478ea9
- python urllib3: before 1.26.18; from 2.0.0 before 2.0.7
- fedoraproject fedora: 38

## Every score

- GitHub_M: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:A/AC:L/AT:P/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/urllib3/urllib3/security/advisories/GHSA-g4mx-q9vg-27p4> (advisory, third-party-advisory, web)
- <https://github.com/urllib3/urllib3/commit/4e98d57809dacab1cbe625fddeec1a290c478ea9> (fix, patch, web)
- <https://www.rfc-editor.org/rfc/rfc9110.html#name-get> (third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PPDPLM6UUMN55ESPQWJFLLIZY4ZKCNRX/> (article, mailing-list)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4R2Y5XK3WALSR3FNAGN7JBYV2B343ZKB/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5F5CUBAN5XMEBVBZPHFITBLMJV5FIJJ5/>
- <https://lists.debian.org/debian-lts-announce/2024/12/msg00020.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-45803> (advisory)
- <https://github.com/urllib3/urllib3/commit/4e50fbc5db74e32cabd5ccc1ab81fc103adfe0b3> (web)
- <https://github.com/urllib3/urllib3/commit/b594c5ceaca38e1ac215f916538fb128e3526a36> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/urllib3/PYSEC-2023-212.yaml> (web)
- <https://github.com/urllib3/urllib3> (package)
- <https://github.com/urllib3/urllib3/releases/tag/1.26.18> (web)
- <https://github.com/urllib3/urllib3/releases/tag/2.0.7> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4R2Y5XK3WALSR3FNAGN7JBYV2B343ZKB> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5F5CUBAN5XMEBVBZPHFITBLMJV5FIJJ5> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PPDPLM6UUMN55ESPQWJFLLIZY4ZKCNRX> (web)

## Sources

- CVE List: [CVE-2023-45803](https://www.cve.org/CVERecord?id=CVE-2023-45803), CVE Terms of Use, modified 2025-11-03
- GitHub Advisory Database: [GHSA-g4mx-q9vg-27p4](https://github.com/advisories/GHSA-g4mx-q9vg-27p4), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-45803](https://nvd.nist.gov/vuln/detail/CVE-2023-45803), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2023-212](https://osv.dev/vulnerability/PYSEC-2023-212), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2023-45803 · Whole record: https://cve.day/CVE-2023-45803.json · Rebuilt by cve.day 2026-11-25T22:58:28.858Z
