Advisory

PYSEC-2023-207

Also known as: CVE-2018-25091, GHSA-gwvm-45gx-3cf8

Summary

The record has no summary.

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: CVSS v3 score 6.1, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Dates

Published
2023-10-15 19:15 UTC
Modified
2026-06-10 17:02 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: PyPA Advisory Database · CC BY 4.0

Sources & licences