CVE-2018-25091Python Urllib3
Medium 6.1 No auth needed
Follow: this CVE · Python · Python Urllib3 We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 0.6% probability of exploitation in 30 days · percentile 50
- Auth required
- No
- Published
- Oct 15, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-601
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
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).
What to do
- Apply the vendor's security update for Urllib3.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | urllib3 |
< 1.24.2 |
1.24.2 |
pip install "urllib3>=1.24.2" |
| PyPI | urllib3 |
< 1.24.2 |
1.24.2 |
pip install "urllib3>=1.24.2" |
Per OSV / GitHub Advisories (GHSA-gwvm-45gx-3cf8, PYSEC-2023-207). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| python | urllib3 | < 1.24.2 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch
- github.com Issue Tracking Patch Vendor Advisory