Vulnerabilities · 2018 · Python
CVE-2018-25091
Python Urllib3 vulnerability
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).
Affected products
Urllib3. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Python Urllib3 runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/urllib3/urllib3/issues/1510 · Patch
- github.com/urllib3/urllib3/commit/adb358f8e06865406d1f05e581a16cbea2136fbc · Patch
- github.com/urllib3/urllib3/compare/1.24.1...1.24.2 · Patch
- nvd.nist.gov/vuln/detail/CVE-2018-25091
- github.com/pypa/advisory-database/tree/main/vulns/urllib3/PYSEC-2023-207.yaml
- github.com/advisories/GHSA-gwvm-45gx-3cf8
- nvd.nist.gov/vuln/detail/CVE-2018-25091
- cve.org/CVERecord?id=CVE-2018-25091
More vulnerabilities in Python products
CVE-2026-21441CVE-2025-66471CVE-2025-66418CVE-2025-50182CVE-2025-50181CVE-2025-48379CVE-2025-47273CVE-2025-13837All 231
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.