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

CVE-2018-25091: Authorization Header forwarded on redirect

October 15, 2023 (updated November 18, 2024)

urllib3 before 1.24.2 does not remove the authorization HTTP header when following a cross-origin redirect (i.e., a redirect that differs in host, port, or scheme). This can allow for credentials in the authorization header to be exposed to unintended hosts or transmitted in cleartext. NOTE: this issue exists because of an incomplete fix for CVE-2018-20060 (which was case-sensitive).

References

  • github.com/advisories/GHSA-gwvm-45gx-3cf8
  • github.com/pypa/advisory-database/tree/main/vulns/urllib3/PYSEC-2023-207.yaml
  • github.com/urllib3/urllib3
  • github.com/urllib3/urllib3/commit/adb358f8e06865406d1f05e581a16cbea2136fbc
  • github.com/urllib3/urllib3/compare/1.24.1...1.24.2
  • github.com/urllib3/urllib3/issues/1510
  • nvd.nist.gov/vuln/detail/CVE-2018-25091

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.24.2

Fixed versions

  • 1.24.2

Solution

Upgrade to version 1.24.2 or above.

Impact 6.1 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-601: URL Redirection to Untrusted Site ('Open Redirect')

Source file

pypi/urllib3/CVE-2018-25091.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:15:40 +0000.