VDB
Sign up
MEDIUM6.5

PYSEC-2021-59

Quick fix

PYSEC-2021-59 — urllib3: upgrade to the fixed version with the command below.

pip install --upgrade 'urllib3>=8d65ea1ecf6e2cdc27d42124e587c1b83a3118b0'

Details

The urllib3 library 1.26.x before 1.26.4 for Python omits SSL certificate validation in some cases involving HTTPS to HTTPS proxies. The initial connection to the HTTPS proxy (if an SSLContext isn't given via proxy_config) doesn't verify the hostname of the certificate. This means certificates for different servers that still validate properly with the default urllib3 SSLContext will be silently accepted.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/urllib3
Introduced in: 0Fixed in: 8d65ea1ecf6e2cdc27d42124e587c1b83a3118b0
Fixpip install --upgrade 'urllib3>=8d65ea1ecf6e2cdc27d42124e587c1b83a3118b0'

References