Security advisory
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).
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2018-25091
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 10:29 UTC · Revision 1
Source evidence
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).
osv:CVE-2018-25091
Complete source record
{
"id": "42bb5b0f544041d10b2dfee42f2bfbdecbefebdcf578771e9c4276ec98c8df2b",
"url": "https://osv.dev/vulnerability/CVE-2018-25091",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2018-25091",
"summary": "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).",
"evidence": "osv:CVE-2018-25091",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2018-25091",
"aliases": [
"CVE-2018-25091",
"GHSA-gwvm-45gx-3cf8",
"PYSEC-2023-207"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/urllib3/urllib3",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "1efadf43dc63317cd9eaa3e0fdb9e05ab07254b1"
},
{
"fixed": "adb358f8e06865406d1f05e581a16cbea2136fbc"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:python:urllib3:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.24.2"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "adb358f8e06865406d1f05e581a16cbea2136fbc"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"1.24.1",
"1.24",
"1.23",
"1.22",
"1.21.1",
"1.21",
"1.20",
"1.19",
"1.18",
"1.16",
"1.15.1",
"1.15",
"1.14",
"1.13.1",
"1.13",
"1.12",
"1.11",
"1.10.4",
"1.10.3",
"1.7.1",
"1.7",
"1.6",
"1.5",
"1.4",
"1.3",
"1.2.1",
"1.2",
"1.1",
"0.4.1",
"0.4",
"0.3.1",
"0.3"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-25091.json"
}
}
],
"modified": "2026-10-20T10:50:25.396252407Z",
"provider": "osv",
"references": [
"https://github.com/urllib3/urllib3/commit/adb358f8e06865406d1f05e581a16cbea2136fbc",
"https://github.com/urllib3/urllib3/compare/1.24.1...1.24.2",
"https://github.com/urllib3/urllib3/issues/1510"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2018-25091",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 381700,
"published_at": "2023-10-15T19:15:09.213+00:00"
}