Advisory

GHSA-gwvm-45gx-3cf8

Also known as: CVE-2018-25091, PYSEC-2023-207

Summary

Authorization Header forwarded on redirect

Details

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-10-15 21:30 UTC
Modified
2024-11-18 23:24 UTC

Affected packages and fixes

urllib3

PyPI · All systems

Affected

  • introduced 0, fixed 1.24.2 (ecosystem)

Fixed versions

1.24.2

Fix

  • Fixed version 1.24.2
    pip install --upgrade urllib3==1.24.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences