—
PYSEC-2018-28
Quick fix
PYSEC-2018-28 — requests: upgrade to the fixed version with the command below.
pip install --upgrade 'requests>=c45d7c49ea75133e52ab22a8e9e13173938e36ff'Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
PyPI/requests
Introduced in:
0Fixed in: c45d7c49ea75133e52ab22a8e9e13173938e36ffFix
pip install --upgrade 'requests>=c45d7c49ea75133e52ab22a8e9e13173938e36ff'References
- https://github.com/requests/requests/pull/4718[WEB]
- https://github.com/requests/requests/issues/4716[REPORT]
- https://github.com/requests/requests/commit/c45d7c49ea75133e52ab22a8e9e13173938e36ff[FIX]
- https://bugs.debian.org/910766[WEB]
- https://usn.ubuntu.com/3790-1/[WEB]
- http://docs.python-requests.org/en/master/community/updates/#release-and-version-history[WEB]
- https://usn.ubuntu.com/3790-2/[WEB]
- http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00024.html[WEB]
- https://access.redhat.com/errata/RHSA-2019:2035[ADVISORY]
- https://github.com/advisories/GHSA-x84v-xcm2-53pg[ADVISORY]