CVE-2021-28363
Using default SSLContext for HTTPS requests in an HTTPS proxy doesn't verify certificate hostname for proxy connection
Also known as GHSA-5phf-pp7p-vc2r, PYSEC-2021-59
Mitigation
- Upgrade urllib3 to 1.26.4 or later.
Who should check
- Projects that depend on PyPI package urllib3 (>= 1.26.0, < 1.26.4)
- Anyone running n/a (versions: see the vendor advisory)
- Anyone running Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.0, < V3.1.5
- Anyone running Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP >= V3.1.0, < V3.1.5
- Anyone running Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.0, < V3.1.5
Vulnerability facts
- Affected
- urllib3 >= 1.26.0, < 1.26.4
- Fixed in
- 1.26.4
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 6.5 (v3.1, NVD)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: Low
- Integrity impact: Low
- Availability impact: None
- EPSS
- 2.02% chance of exploitation in 30 days (percentile 82, 2026-11-26)
- CWE
- CWE-295
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI urllib3 | >= 1.26.0, < 1.26.4 | 1.26.4 | osv |
| n/a | — | — | nvd |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | >= V3.1.0, < V3.1.5 | — | nvd |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | >= V3.1.0, < V3.1.5 | — | nvd |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | >= V3.1.0, < V3.1.5 | — | nvd |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | >= V3.1.0, < V3.1.5 | — | nvd |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | >= V3.1.0, < V3.1.5 | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2021-28363. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2021-28363.md Affected: urllib3 >= 1.26.0, < 1.26.4 Fixed in: 1.26.4 Steps: 1. Search this machine and project for urllib3 (PyPI), n/a, Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP, Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP, Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4S65ZQVZ2ODGB52IC7VJDBUK4M5INCXL/
- https://security.gentoo.org/glsa/202107-36
- https://github.com/urllib3/urllib3/security/advisories/GHSA-5phf-pp7p-vc2r
- https://security.gentoo.org/glsa/202305-02
- https://nvd.nist.gov/vuln/detail/CVE-2021-28363
Patches
Other
- https://pypi.org/project/urllib3/1.26.4/
- https://security.netapp.com/advisory/ntap-20240621-0007/
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- https://github.com/pypa/advisory-database/tree/main/vulns/urllib3/PYSEC-2021-59.yaml
- https://github.com/pypa/advisory-db/tree/main/vulns/urllib3/PYSEC-2021-59.yaml
- https://github.com/urllib3/urllib3
- https://github.com/urllib3/urllib3/blob/main/CHANGES.rst#1264-2021-03-15
- https://github.com/urllib3/urllib3/releases/tag/1.26.4
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4S65ZQVZ2ODGB52IC7VJDBUK4M5INCXL
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4S65ZQVZ2ODGB52IC7VJDBUK4M5INCXL
- https://pypi.org/project/urllib3/1.26.4
- https://security.netapp.com/advisory/ntap-20240621-0007
FAQ
Is CVE-2021-28363 being exploited?
There is no confirmed exploitation: CVE-2021-28363 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 2.02% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2021-28363?
Medium: CVSS 6.5 (v3.1, scored by NVD). Remote, no login needed.
Which versions are affected by CVE-2021-28363?
urllib3 >= 1.26.0, < 1.26.4.
Is there a fix for CVE-2021-28363?
Yes. Fixed in 1.26.4. Upgrade urllib3 to 1.26.4 or later.
How do I check if I'm affected by CVE-2021-28363?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.