CVE-2018-25091
MEDIUM 6.1CVSS 3.1Authorization Header forwarded on redirect
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).
- Published
- 15 Oct 2023
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-200CWE-601
- Also known as
- GHSA-gwvm-45gx-3cf8PYSEC-2023-207
- Sources
- NVDJSONOSV GHSA-gwvm-45gx-3cf8JSONOSV PYSEC-2023-207JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | python | urllib3cpe:2.3:a:python:urllib3:*:*:*:*:*:*:*:* |
< 1.24.2 | 1.24.2 |
| OSV | PyPI | urllib3 | < 1.24.2 | 1.24.2 |
References
- https://github.com/urllib3/urllib3/commit/adb358f8e06865406d1f05e581a16cbea2136fbc · Patch, WEB, FIX
- https://github.com/urllib3/urllib3/compare/1.24.1...1.24.2 · Patch, WEB, FIX
- https://github.com/urllib3/urllib3/issues/1510 · Issue Tracking, Patch, Vendor Advisory, WEB, REPORT, FIX, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2018-25091 · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/urllib3/PYSEC-2023-207.yaml · WEB
- https://github.com/urllib3/urllib3 · PACKAGE
- https://github.com/advisories/GHSA-gwvm-45gx-3cf8 · ADVISORY
History
- 25 Nov 2026 20:37 UTC · NVD: first stored (published 15 Oct 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 15 Oct 2023)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 15 Oct 2023)