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.
CVE-2021-28363 - Medium Severity Vulnerability
Vulnerable Library - urllib3-1.26.3-py2.py3-none-any.whl
HTTP library with thread-safe connection pooling, file post, and more.
Library home page: https://files.pythonhosted.org/packages/23/fc/8a49991f7905261f9ca9df5aa9b58363c3c821ce3e7f671895442b7100f2/urllib3-1.26.3-py2.py3-none-any.whl
Path to dependency file: /client/python
Path to vulnerable library: /client/python
Dependency Hierarchy: - requests-2.25.1-py2.py3-none-any.whl (Root Library) - :x: **urllib3-1.26.3-py2.py3-none-any.whl** (Vulnerable Library)
Found in base branch: master
Vulnerability 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.
Publish Date: 2021-03-15
URL: CVE-2021-28363
CVSS 3 Score Details (6.5)
Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: Low - Integrity Impact: Low - Availability Impact: None
For more information on CVSS3 Scores, click here.Suggested Fix
Type: Upgrade version
Origin: https://github.com/urllib3/urllib3/security/advisories/GHSA-5phf-pp7p-vc2r
Release Date: 2021-03-15
Fix Resolution (urllib3): 1.26.4
Direct dependency fix Resolution (requests): 2.26.0
Step up your Open Source Security Game with Mend here