VDB
Sign up
MEDIUM5.3

PYSEC-2026-141

Quick fix

PYSEC-2026-141 — urllib3: upgrade to the fixed version with the command below.

pip install --upgrade 'urllib3>=2.7.0'

Details

urllib3 is an HTTP client library for Python. From 1.23 to before 2.7.0, cross-origin redirects followed from the low-level API via ProxyManager.connection_from_url().urlopen(..., assert_same_host=False) still forward these sensitive headers. This vulnerability is fixed in 2.7.0.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/urllib3
Introduced in: 1.23Fixed in: 2.7.0
Fixpip install --upgrade 'urllib3>=2.7.0'

References