Advisory

GHSA-qccp-gfcp-xxvc

Also known as: CVE-2026-44431, PYSEC-2026-141

Summary

urllib3: Sensitive headers forwarded across origins in proxied low-level redirects

Details

Impact

When following cross-origin redirects for requests made using urllib3’s high-level APIs, such as urllib3.request(), PoolManager.request(), and ProxyManager.request(), sensitive headers — Authorization, Cookie, and Proxy-Authorization (defined in Retry.DEFAULT_REMOVE_HEADERS_ON_REDIRECT) — are stripped by default, as expected.

However, cross-origin redirects followed from the low-level API via ProxyManager.connection_from_url().urlopen(..., assert_same_host=False) still forward these sensitive headers.

Affected usage

Applications and libraries using urllib3 versions earlier than 2.7.0 may be affected if they allow cross-origin redirects while making requests through HTTPConnection.urlopen() instances created via ProxyManager.connection_from_url().

Remediation

Upgrade to urllib3 version 2.7.0 or later, in which sensitive headers are stripped from redirects followed by HTTPConnection.

If upgrading is not immediately possible, avoid using this low-level redirect flow for cross-origin redirects. If appropriate for your use case, switch to ProxyManager.request().

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-05-11 14:51 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

urllib3

PyPI · All systems

Affected

  • introduced 1.23, fixed 2.7.0 (ecosystem)

Fixed versions

2.7.0

Fix

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

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