Authorization Header forwarded on redirect
Published 15 Oct 2023 · Updated 18 Nov 2024
Is your project on an affected urllib3?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <1.24.2
- Fixed in
- 1.24.2
pip install 'urllib3>=1.24.2'Details
urllib3 before 1.24.2 does not remove the authorization HTTP header when following a cross-origin redirect (i.e., a redirect that differs in host, port, or scheme). This can allow for credentials in the authorization header to be exposed to unintended hosts or transmitted in cleartext. NOTE: this issue exists because of an incomplete fix for CVE-2018-20060 (which was case-sensitive).
Is GHSA-gwvm-45gx-3cf8 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected urllib3, and gives you the command that fixes it.
More advisories for urllib3
- MediumCVE-2026-97688urllib3: Chunked Deflate streaming can enter an infinite loop · 30 Sept 2026
- HighCVE-2026-97689urllib3: HTTPResponse.stream()/read_chunked() buffers an unbounded chunk-size line into memory · 30 Sept 2026
- HighCVE-2026-97687urllib3: HTTPS proxy TLS configuration may be ignored or overridden · 30 Sept 2026
- HighCVE-2026-44432urllib3: Decompression-bomb safeguards bypassed in parts of the streaming API · 11 May 2026
- HighCVE-2026-44431urllib3: Sensitive headers forwarded across origins in proxied low-level redirects · 11 May 2026
- HighCVE-2026-21441Decompression-bomb safeguards bypassed when following HTTP redirects (streaming API) · 7 Jan 2026
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2018-25091
- Linkgithub.com/urllib3/urllib3/issues/1510
- Linkgithub.com/urllib3/urllib3/commit/adb358f8e06865406d1f05e581a16cbea2136fbc
- Linkgithub.com/pypa/advisory-database/tree/main/vulns/urllib3/PYSEC-2023-207.yaml
- Packagegithub.com/urllib3/urllib3
- Linkgithub.com/urllib3/urllib3/compare/1.24.1...1.24.2
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.