GitHub Advisoryadvisory · PyPI

GHSA-gwvm-45gx-3cf8 Authorization Header forwarded on redirect

MEDIUM Published 2023-10-15 Modified 2024-11-18 Official page ↗
Aliases
CVE-2018-25091
Ecosystem
PyPI
Packages
urllib3
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weaknesses
CWE-200, CWE-601
Reviewed
2023-10-17

Affected packages

• PyPI urllib3: < 1.24.2 → fixed in 1.24.2

Description

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).

Related

Alias · CVE (1)

  • CVE-2018-25091 urllib3 before 1.24.2 does not remove the authorization HTTP header when following a cross-origin redirect (i.e., a redirect that differs… vulnerability

Weakness · CWE (2)

  • CWE-200 Exposure of Sensitive Information to an Unauthorized Actor weakness
  • CWE-601 URL Redirection to Untrusted Site weakness

References