High
Security advisory
The Requests package before 2.20.0 for Python sends an HTTP Authorization header to an http URI upon receiving a same-hostname https-to-http redirect, which makes it easier for remote attackers to discover credentials by sniffing the network.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2018-18074
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 10:09 UTC · Revision 1
Source evidence
The Requests package before 2.20.0 for Python sends an HTTP Authorization header to an http URI upon receiving a same-hostname https-to-http redirect, which makes it easier for remote attackers to discover credentials by sniffing the network.
osv:CVE-2018-18074
Complete source record
{
"id": "04f1c1bdfd1658ceee105815f8e3e8b3e62d83c0573257d8da3b0eaaac596a8f",
"url": "https://osv.dev/vulnerability/CVE-2018-18074",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2018-18074",
"summary": "The Requests package before 2.20.0 for Python sends an HTTP Authorization header to an http URI upon receiving a same-hostname https-to-http redirect, which makes it easier for remote attackers to discover credentials by sniffing the network.",
"evidence": "osv:CVE-2018-18074",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2018-18074",
"aliases": [
"CVE-2018-18074",
"GHSA-x84v-xcm2-53pg",
"PYSEC-2018-28"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/psf/requests",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "bd840450c0d1e9db3bf62382c15d96378cc3a056"
},
{
"fixed": "c45d7c49ea75133e52ab22a8e9e13173938e36ff"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:python:requests:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "2.20.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "c45d7c49ea75133e52ab22a8e9e13173938e36ff"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v2.19.1",
"v2.19.0",
"v2.18.3",
"v2.18.2",
"v2.17.3",
"v2.17.1",
"v2.17.0",
"v2.16.5",
"v2.16.4",
"v2.16.2",
"v2.16.1",
"v2.16.0",
"v2.15.1",
"v2.16.3",
"v2.15.0",
"v2.14.2",
"v2.14.1",
"v2.14.0",
"v2.12.5",
"v2.12.4",
"v2.12.3",
"v2.12.2",
"v2.12.0",
"v2.12.1",
"v2.11.1",
"v2.11.0",
"v2.10.0",
"v2.9.2",
"v2.9.1",
"v2.9.0",
"v2.8.1",
"v2.8.0",
"v2.6.0",
"v2.5.2",
"v2.5.1",
"v2.5.0",
"v2.4.3",
"v2.4.2",
"v2.4.1",
"v2.4.0",
"v2.3.0",
"v2.2.1",
"v2.2.0",
"v2.1.0",
"v2.0.1",
"v2.0.0",
"v2.0",
"2.0",
"v1.2.3",
"v1.2.2",
"v1.2.1",
"v1.2.0",
"v1.1.0",
"v1.0.4",
"v1.0.3",
"v1.0.2",
"v1.0.1",
"v1.0.0",
"v0.14.2",
"v0.14.0",
"v0.14.1",
"v0.13.9",
"v0.13.7",
"v0.13.6",
"v0.13.5",
"v0.13.4",
"v0.13.3",
"v0.13.2",
"v0.13.1",
"v0.13.0",
"v0.12.1",
"v0.12.0",
"v0.11.1",
"v0.10.8",
"v0.10.7",
"v0.10.6",
"v0.10.5",
"v0.10.4",
"v0.10.3",
"v0.10.2",
"v0.10.1",
"v0.10.0",
"v0.9.3",
"v0.9.1",
"v0.9.0",
"v0.8.9",
"v0.8.8",
"v0.6.4",
"v0.6.3",
"v0.5.1",
"v0.5.0",
"v0.4.1",
"v0.4.0",
"v0.3.4",
"v0.3.3",
"v0.3.2",
"v0.3.0",
"v0.2.4",
"v0.2.3",
"v0.2.2",
"v0.2.1",
"v0.2.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-18074.json"
}
}
],
"modified": "2026-10-20T10:49:53.673775363Z",
"provider": "osv",
"references": [
"https://www.oracle.com/security-alerts/cpujul2022.html",
"https://access.redhat.com/errata/RHSA-2019:2035",
"https://usn.ubuntu.com/3790-1/",
"https://usn.ubuntu.com/3790-2/",
"https://bugs.debian.org/910766",
"https://github.com/requests/requests/commit/c45d7c49ea75133e52ab22a8e9e13173938e36ff",
"https://github.com/requests/requests/issues/4716",
"https://github.com/requests/requests/pull/4718"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:esm:*:*:*",
"cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*",
"cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*",
"cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:*"
],
"vendor_product": "canonical:ubuntu_linux",
"extracted_events": [
{
"range": [
{
"introduced": "14.04"
},
{
"last_affected": "14.04"
},
{
"introduced": "16.04"
},
{
"last_affected": "16.04"
},
{
"introduced": "18.04"
},
{
"last_affected": "18.04"
},
{
"introduced": "18.10"
},
{
"last_affected": "18.10"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*"
],
"vendor_product": "opensuse:leap",
"extracted_events": [
{
"range": [
{
"introduced": "15.1"
},
{
"last_affected": "15.1"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*"
],
"vendor_product": "redhat:enterprise_linux_desktop",
"extracted_events": [
{
"range": [
{
"introduced": "7.0"
},
{
"last_affected": "7.0"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*"
],
"vendor_product": "redhat:enterprise_linux_server",
"extracted_events": [
{
"range": [
{
"introduced": "7.0"
},
{
"last_affected": "7.0"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*"
],
"vendor_product": "redhat:enterprise_linux_workstation",
"extracted_events": [
{
"range": [
{
"introduced": "7.0"
},
{
"last_affected": "7.0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2018-18074",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 380937,
"published_at": "2018-10-09T17:29:01.897+00:00"
}