CVE-2021-28363
JSON

6.5medium

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

Severity
6.5medium CVSS:3.1 by NVD
Exploit likelihood
2.02% (higher than 81% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-5phf-pp7p-vc2rPYSEC-2021-59

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
urllib3 (PyPI)from 1.26.0 before 1.26.4, before 8d65ea1ecf6e2cdc27d42124e587c1b83a3118b0GitHub Advisory Database, PyPA Advisory Database
python urllib3from 1.26.0 before 1.26.4NVD
fedoraproject fedora34NVD
oracle peoplesoft_enterprise_peopletools8.59NVD

All scores

GitHub6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
NVD6.4medium CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:N

Classification

What each source says

CVE List

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.

GitHub Advisory Database
Impact

Users who are using an HTTPS proxy to issue HTTPS requests and haven't configured their own SSLContext via proxy_config. Only the default SSLContext is impacted.

Patches

urllib3 >=1.26.4 has the issue resolved. urllib3<1.26 is not impacted due to not supporting HTTPS requests via HTTPS proxies.

Workarounds

Upgrading is recommended as this is a minor release and not likely to break current usage.

Configuring an SSLContext with check_hostname=True and passing via proxy_config instead of relying on the default SSLContext

For more information

If you have any questions or comments about this advisory:

NVD (es)

La biblioteca urllib3 versiones 1.26.x anteriores a 1.26.4 para Python, omite una comprobación del certificado SSL en algunos casos que involucran HTTPS a proxies HTTPS.&#xa0;La conexión inicial al proxy HTTPS (si no se proporciona un SSLContext por medio de proxy_config) no verifica el nombre de host del certificado.&#xa0;Esto significa que los certificados para diferentes servidores que aún se comprueban apropiadamente con el urllib3 SSLContext predeterminado serán aceptados silenciosamente

References

https://github.com/urllib3/urllib3/commits/mainpatch, third-party-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4S65ZQVZ2ODGB52IC7VJDBUK4M5INCXL/vendor-advisory
https://security.gentoo.org/glsa/202107-36third-party-advisory, vendor-advisory, web
https://www.oracle.com/security-alerts/cpuoct2021.htmlpatch, third-party-advisory, web
https://pypi.org/project/urllib3/1.26.4/package, third-party-advisory
https://github.com/urllib3/urllib3/commit/8d65ea1ecf6e2cdc27d42124e587c1b83a3118b0fix, patch, third-party-advisory, web
https://github.com/urllib3/urllib3/security/advisories/GHSA-5phf-pp7p-vc2radvisory, mitigation, third-party-advisory, web
https://security.gentoo.org/glsa/202305-02vendor-advisory, web
https://security.netapp.com/advisory/ntap-20240621-0007/
https://cert-portal.siemens.com/productcert/html/ssa-398330.html
https://nvd.nist.gov/vuln/detail/CVE-2021-28363advisory
https://github.com/pypa/advisory-database/tree/main/vulns/urllib3/PYSEC-2021-59.yamlweb

Sources

SourceRecordLicence
CVE ListCVE-2021-28363 changed 2026-10-14CVE Terms of Use
GitHub Advisory DatabaseGHSA-5phf-pp7p-vc2r changed 2026-07-08CC-BY-4.0
NVDCVE-2021-28363 changed 2026-10-14Public domain
PyPA Advisory DatabasePYSEC-2021-59 changed 2023-11-08CC-BY-4.0