Live threats

All CVEs / Python

CVE-2018-18074Python Requests

High 7.5 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Requests.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
pythonrequests< 2.20.0
canonicalubuntu_linux14.04
canonicalubuntu_linux16.04
canonicalubuntu_linux18.04
canonicalubuntu_linux18.10
opensuseleap15.1
redhatenterprise_linux_desktop7.0
redhatenterprise_linux_server7.0
redhatenterprise_linux_workstation7.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.