Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. requests
  4. ›
  5. CVE-2018-18074

CVE-2018-18074: Insufficiently Protected Credentials in Requests

October 29, 2018 (updated October 21, 2024)

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.

References

  • access.redhat.com/errata/RHSA-2019:2035
  • bugs.debian.org/910766
  • github.com/advisories/GHSA-x84v-xcm2-53pg
  • github.com/pypa/advisory-database/tree/main/vulns/requests/PYSEC-2018-28.yaml
  • github.com/requests/requests
  • github.com/requests/requests/commit/c45d7c49ea75133e52ab22a8e9e13173938e36ff
  • github.com/requests/requests/issues/4716
  • github.com/requests/requests/pull/4718
  • nvd.nist.gov/vuln/detail/CVE-2018-18074
  • usn.ubuntu.com/3790-1
  • usn.ubuntu.com/3790-2
  • www.oracle.com/security-alerts/cpujul2022.html

Code Behaviors & Features

Detect and mitigate CVE-2018-18074 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.20.0

Fixed versions

  • 2.20.0

Solution

Upgrade to version 2.20.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-522: Insufficiently Protected Credentials

Source file

pypi/requests/CVE-2018-18074.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:48 +0000.