# CVE-2021-28363: Using default SSLContext for HTTPS requests in an HTTPS proxy doesn't verify certificate hostname for proxy connection

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.02%, higher than 81% of CVEs (2026-12-01)
- Published: 2021-03-15T00:00:00.000Z
- Modified: 2026-10-14T12:17:11.087Z
- Also known as: GHSA-5phf-pp7p-vc2r, PYSEC-2021-59
- Weaknesses: CWE-295
- 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- urllib3 (PyPI): from 1.26.0 before 1.26.4; before 8d65ea1ecf6e2cdc27d42124e587c1b83a3118b0
- python urllib3: from 1.26.0 before 1.26.4
- fedoraproject fedora: 34
- oracle peoplesoft_enterprise_peopletools: 8.59

## Every score

- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- NVD: CVSS:2.0 6.4 Medium `AV:N/AC:L/Au:N/C:P/I:P/A:N`

## References

- <https://github.com/urllib3/urllib3/commits/main> (patch, 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-36> (third-party-advisory, vendor-advisory, web)
- <https://www.oracle.com/security-alerts/cpuoct2021.html> (patch, third-party-advisory, web)
- <https://pypi.org/project/urllib3/1.26.4/> (package, third-party-advisory)
- <https://github.com/urllib3/urllib3/commit/8d65ea1ecf6e2cdc27d42124e587c1b83a3118b0> (fix, patch, third-party-advisory, web)
- <https://github.com/urllib3/urllib3/security/advisories/GHSA-5phf-pp7p-vc2r> (advisory, mitigation, third-party-advisory, web)
- <https://security.gentoo.org/glsa/202305-02> (vendor-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-28363> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/urllib3/PYSEC-2021-59.yaml> (web)
- <https://github.com/pypa/advisory-db/tree/main/vulns/urllib3/PYSEC-2021-59.yaml> (web)
- <https://github.com/urllib3/urllib3> (package)
- <https://github.com/urllib3/urllib3/blob/main/CHANGES.rst#1264-2021-03-15> (web)
- <https://github.com/urllib3/urllib3/releases/tag/1.26.4> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4S65ZQVZ2ODGB52IC7VJDBUK4M5INCXL> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4S65ZQVZ2ODGB52IC7VJDBUK4M5INCXL> (web)
- <https://pypi.org/project/urllib3/1.26.4> (web)
- <https://security.netapp.com/advisory/ntap-20240621-0007> (web)

## Sources

- CVE List: [CVE-2021-28363](https://www.cve.org/CVERecord?id=CVE-2021-28363), CVE Terms of Use, modified 2026-10-14
- GitHub Advisory Database: [GHSA-5phf-pp7p-vc2r](https://github.com/advisories/GHSA-5phf-pp7p-vc2r), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-28363](https://nvd.nist.gov/vuln/detail/CVE-2021-28363), Public domain, modified 2026-10-14
- PyPA Advisory Database: [PYSEC-2021-59](https://osv.dev/vulnerability/PYSEC-2021-59), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2021-28363 · Whole record: https://cve.day/CVE-2021-28363.json · Rebuilt by cve.day 2026-11-25T22:58:00.299Z
