CVE-2018-18074Python Requests
High 7.5 No auth needed
Follow: this CVE · Python · Python Requests We alert you by email or Slack (account required).
- Priority
- 61
- CVSS 3.1
- 7.5
- EPSS
- 6.9% probability of exploitation in 30 days · percentile 95
- Auth required
- No
- Published
- Oct 9, 2018
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-522
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Requests.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | requests |
< 2.20.0 |
2.20.0 |
pip install "requests>=2.20.0" |
| PyPI | requests |
< 2.20.0 |
2.20.0 |
pip install "requests>=2.20.0" |
Per OSV / GitHub Advisories (GHSA-x84v-xcm2-53pg, PYSEC-2018-28). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| python | requests | < 2.20.0 |
| canonical | ubuntu_linux | 14.04 |
| canonical | ubuntu_linux | 16.04 |
| canonical | ubuntu_linux | 18.04 |
| canonical | ubuntu_linux | 18.10 |
| opensuse | leap | 15.1 |
| redhat | enterprise_linux_desktop | 7.0 |
| redhat | enterprise_linux_server | 7.0 |
| redhat | enterprise_linux_workstation | 7.0 |
Official advisories
- python313-requests-2.34.2-1.2 on GA media · SUSE · openSUSE-SU-2026:12038-1 · Oct 4, 2026 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- docs.python-requests.org Release Notes Third Party Advisory
- lists.opensuse.org Mailing List Third Party Advisory
- access.redhat.com Third Party Advisory
- bugs.debian.org Exploit Issue Tracking Patch
- github.com Patch Third Party Advisory
- github.com Exploit Patch Third Party Advisory
- github.com Patch Third Party Advisory
- usn.ubuntu.com Third Party Advisory
- usn.ubuntu.com Third Party Advisory
- www.oracle.com