CVE-2018-18074
HIGH 7.5CVSS 3.1Insufficiently Protected Credentials in Requests
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.
- Published
- 9 Oct 2018
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-522
- Also known as
- GHSA-x84v-xcm2-53pgPYSEC-2018-28
- Sources
- NVDJSONOSV GHSA-x84v-xcm2-53pgJSONOSV PYSEC-2018-28JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | python | requestscpe:2.3:a:python:requests:*:*:*:*:*:*:*:* |
< 2.20.0 | 2.20.0 |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:esm:*:*:* |
= 14.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* |
= 16.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* |
= 18.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:* |
= 18.10 | |
| NVD | opensuse | leapcpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:* |
= 15.1 | |
| NVD | redhat | enterprise_linux_desktopcpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| NVD | redhat | enterprise_linux_servercpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| NVD | redhat | enterprise_linux_workstationcpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| OSV | PyPI | requests | < 2.20.0 | 2.20.0 |
References
- http://docs.python-requests.org/en/master/community/updates/#release-and-version-history · Release Notes, Third Party Advisory, WEB
- http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00024.html · Mailing List, Third Party Advisory, WEB
- https://access.redhat.com/errata/RHSA-2019:2035 · Third Party Advisory, WEB, ADVISORY
- https://bugs.debian.org/910766 · Exploit, Issue Tracking, Patch, Third Party Advisory, WEB
- https://github.com/requests/requests/commit/c45d7c49ea75133e52ab22a8e9e13173938e36ff · Patch, Third Party Advisory, WEB, FIX
- https://github.com/requests/requests/issues/4716 · Exploit, Patch, Third Party Advisory, WEB, REPORT
- https://github.com/requests/requests/pull/4718 · Patch, Third Party Advisory, WEB
- https://usn.ubuntu.com/3790-1/ · Third Party Advisory, WEB
- https://usn.ubuntu.com/3790-2/ · Third Party Advisory, WEB
- https://www.oracle.com/security-alerts/cpujul2022.html · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-18074 · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/requests/PYSEC-2018-28.yaml · WEB
- https://github.com/requests/requests · PACKAGE
- https://github.com/advisories/GHSA-x84v-xcm2-53pg · ADVISORY
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 9 Oct 2018)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 9 Oct 2018)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 29 Oct 2018)