Insufficiently Protected Credentials in Requests
The Requests package through 2.19.1 before 2018-09-14 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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | requests | < 2.20.0 | 2.20.0 |
References
- https://github.com/requests/requests/pull/4718
- https://github.com/requests/requests/issues/4716
- https://github.com/requests/requests/commit/c45d7c49ea75133e52ab22a8e9e13173938e36ff
- https://bugs.debian.org/910766
- https://usn.ubuntu.com/3790-1/
- http://docs.python-requests.org/en/master/community/updates/#release-and-version-history
- https://usn.ubuntu.com/3790-2/
- http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00024.html
- https://access.redhat.com/errata/RHSA-2019:2035
- https://github.com/advisories/GHSA-x84v-xcm2-53pg
- https://nvd.nist.gov/vuln/detail/CVE-2018-18074
- https://github.com/pypa/advisory-database/tree/main/vulns/requests/PYSEC-2018-28.yaml
- https://github.com/requests/requests
- https://usn.ubuntu.com/3790-1
- https://usn.ubuntu.com/3790-2
- https://www.oracle.com/security-alerts/cpujul2022.html
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N- Weakness (CWE)
CWE-522- Platform
- Python (PyPI)
- Package
requests- Disclosed
- 09.10.2018
- Updated
- 11.10.2026 11:20
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2018-28 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-x84v-xcm2-53pg - CC BY 4.0
Vulnerability history: requests
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 8
- First → latest
- 10.2014 03.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- High 1
- Medium 7
Disclosures per year
- 2017: 0
- 2018: 1
- 2019: 0
- 2020: 0
- 2021: 0
- 2022: 0
- 2023: 1
- 2024: 1
- 2025: 1
- 2026: 1
earlier: 3
-
Insufficiently Protected Credentials in Requests this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.