Skip to content
OpenAdvisories
Medium · 6.5 CVE-2021-28363 EUVD-2021-0457GHSA-5phf-pp7p-vc2rPYSEC-2021-59

Using default SSLContext for HTTPS requests in an HTTPS proxy doesn't verify certificate hostname for proxy connection

Published Mar 15, 2021 · Updated Oct 14, 2026 · Assigned by mitre

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-urllib3 1.26.4-1 —
Debian 13 python-urllib3 1.26.4-1 —
Debian 12 python-urllib3 1.26.4-1 —
ReleasePackageFixed inAdvisory
Red Hat OpenShift 3 python-urllib3 +1 1:1.24.3-2.el7 RHBA-2021:1147
ReleasePackageFixed inAdvisory
Alpine v3.24 py3-urllib3 1.26.4-r0 —
Alpine v3.23 py3-urllib3 1.26.4-r0 —
Alpine v3.22 py3-urllib3 1.26.4-r0 —
Alpine v3.21 py3-urllib3 1.26.4-r0 —
Alpine v3.20 py3-urllib3 1.26.4-r0 —
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 py3-urllib3 1.26.4-r0 —
Alpine v3.18 py3-urllib3 1.26.4-r0 —
Alpine v3.17 py3-urllib3 1.26.4-r0 —
Alpine v3.16 py3-urllib3 1.26.4-r0 —
Alpine v3.15 py3-urllib3 1.26.4-r0 —
Alpine v3.14 py3-urllib3 1.26.4-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 python2-pip +2 20.2.2-1.amzn2.0.3 ALAS2-2021-1667

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI urllib3 >= 1.26.0, < 1.26.4 1.26.4 GHSA-5phf-pp7p-vc2r

Advisories 4

References