# CVE-2024-37891: Proxy-Authorization request header isn't stripped during cross-origin redirects in urllib3

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.4
- **CVSS:** 4.4 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: High; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, login needed
- **EPSS:** 1.47% (percentile 74, 2026-11-28)
- **CWE:** CWE-669
- **Aliases:** GHSA-34jh-p97f-mpxf, PYSEC-2026-1995
- **Published:** 2024-06-17T19:18:32.574Z
- **Modified:** 2026-09-10T03:50:14.811Z

## Who should check

- Projects that depend on PyPI package urllib3 (\< 1.26.19)
- Anyone running urllib3 \< 1.26.19; \>= 2.0.0, \< 2.2.2

## Description

urllib3 is a user-friendly HTTP client library for Python. When using urllib3's proxy support with \`ProxyManager\`, the \`Proxy-Authorization\` header is only sent to the configured proxy, as expected. However, when sending HTTP requests \*without\* using urllib3's proxy support, it's possible to accidentally configure the \`Proxy-Authorization\` header even though it won't have any effect as the request is not using a forwarding proxy or a tunneling proxy. In those cases, urllib3 doesn't treat the \`Proxy-Authorization\` HTTP header as one carrying authentication material and thus doesn't strip the header on cross-origin redirects. Because this is a highly unlikely scenario, we believe the severity of this vulnerability is low for almost all users. Out of an abundance of caution urllib3 will automatically strip the \`Proxy-Authorization\` header during cross-origin redirects to avoid the small chance that users are doing this on accident. Users should use urllib3's proxy support or disable automatic redirects to achieve safe processing of the \`Proxy-Authorization\` header, but we still decided to strip the header by default in order to further protect users who aren't using the correct approach. We believe the number of usages affected by this advisory is low. It requires all of the following to be true to be exploited: 1. Setting the \`Proxy-Authorization\` header without using urllib3's built-in proxy support. 2. Not disabling HTTP redirects. 3. Either not using an HTTPS origin server or for the proxy or target origin to redirect to a malicious origin. Users are advised to update to either version 1.26.19 or version 2.2.2. Users unable to upgrade may use the \`Proxy-Authorization\` header with urllib3's \`ProxyManager\`, disable HTTP redirects using \`redirects=False\` when sending requests, or not user the \`Proxy-Authorization\` header as mitigations.

## Affected and fixed versions

- PyPI `urllib3`: affected \< 1.26.19; fixed 1.26.19, 2.2.2 (osv)
- urllib3: \< 1.26.19; \>= 2.0.0, \< 2.2.2 (cvelist)

## Mitigation

- Upgrade urllib3 to one of 1.26.19, 2.2.2 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-37891. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-37891.md
Affected: urllib3 < 1.26.19
Fixed in: 1.26.19, 2.2.2

Steps:
1. Search this machine and project for urllib3 (PyPI), urllib3: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-37891 being exploited?

There is no confirmed exploitation: CVE-2024-37891 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 1.47% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2024-37891?

Medium: CVSS 4.4 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2024-37891?

urllib3 \< 1.26.19.

### Is there a fix for CVE-2024-37891?

Yes. Fixed in 1.26.19, 2.2.2. Upgrade urllib3 to one of 1.26.19, 2.2.2 (or later in the same release line).

### How do I check if I'm affected by CVE-2024-37891?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/urllib3/urllib3/security/advisories/GHSA-34jh-p97f-mpxf>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-37891>
- vendor: <https://github.com/advisories/GHSA-34jh-p97f-mpxf>
- patch: <https://github.com/urllib3/urllib3/commit/accff72ecc2f6cf5a76d9570198a93ac7c90270e>
- patch: <https://github.com/urllib3/urllib3/commit/40b6d1605814dd1db0a46e202d6e56f2e4c9a468>
- exploit: <https://www.vicarius.io/vsociety/posts/proxy-authorization-header-handling-vulnerability-in-urllib3-cve-2024-37891>
- other: <https://security.netapp.com/advisory/ntap-20240822-0003/>
- other: <https://lists.debian.org/debian-lts-announce/2024/12/msg00020.html>
- other: <https://github.com/urllib3/urllib3>
- other: <https://security.netapp.com/advisory/ntap-20240822-0003>
- other: <https://pypi.org/project/urllib3>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-37891>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-34jh-p97f-mpxf> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-1995> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-37891> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-37891>
