The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2021-28363

CVE-2021-28363: Python Urllib3 Information Disclosure

CVE-2021-28363 is an information disclosure vulnerability in Python Urllib3 that omits SSL certificate validation for HTTPS proxies. This post covers technical details, affected versions, impact, and mitigation.

Published: February 25, 2026

CVE-2021-28363 Overview

CVE-2021-28363 is an Improper Certificate Validation vulnerability affecting the Python urllib3 library versions 1.26.x before 1.26.4. The vulnerability occurs when establishing HTTPS connections through HTTPS proxies, where the library fails to properly verify the hostname of the proxy's SSL certificate. This means that certificates intended for different servers—but still technically valid according to the default urllib3 SSLContext—will be silently accepted without proper hostname verification.

Critical Impact

Applications using affected urllib3 versions with HTTPS proxies are vulnerable to man-in-the-middle attacks, potentially exposing sensitive data transmitted through proxy connections.

Affected Products

  • Python urllib3 1.26.x before 1.26.4
  • Fedora Project Fedora 34
  • Oracle PeopleSoft Enterprise PeopleTools 8.59

Discovery Timeline

  • March 15, 2021 - CVE-2021-28363 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2021-28363

Vulnerability Analysis

This vulnerability stems from incomplete SSL/TLS certificate validation in the urllib3 library's HTTPS proxy handling code. When a Python application configured to use an HTTPS proxy makes a connection, the initial TLS handshake with the proxy server does not include hostname verification unless a custom SSLContext is explicitly provided via the proxy_config parameter.

The core issue lies in how urllib3 initializes SSL contexts for proxy connections. While the library properly validates that the certificate chain is trusted, it neglects to verify that the certificate's Subject Alternative Name (SAN) or Common Name (CN) matches the hostname of the proxy being connected to. This oversight creates a window for attackers to present valid certificates issued for different domains while intercepting proxy traffic.

Root Cause

The root cause is the missing check_hostname = True setting on the SSL context used for HTTPS proxy connections. By default, urllib3 disables check_hostname and relies on a custom verification implementation. However, for proxy connections, this custom check was not being applied, leaving hostname verification disabled entirely. The fix adds explicit hostname checking for proxy connections by setting ssl_context.check_hostname = True in the connection handling code.

Attack Vector

An attacker positioned between a client and an HTTPS proxy can perform a man-in-the-middle attack by presenting any valid SSL certificate (even one issued for a completely different domain). Since hostname verification is not performed, the client will accept the certificate as long as:

  1. The certificate is signed by a trusted Certificate Authority
  2. The certificate is not expired or revoked

This allows the attacker to intercept, read, and potentially modify all traffic passing through the proxy connection, including authentication credentials and sensitive application data.

python
            self.ca_cert_dir,
            self.ca_cert_data,
        )
+        # By default urllib3's SSLContext disables `check_hostname` and uses
+        # a custom check. For proxies we're good with relying on the default
+        # verification.
+        ssl_context.check_hostname = True

        # If no cert was provided, use only the default options for server
        # certificate validation

Source: GitHub Commit 8d65ea1ecf6e2cdc27d42124e587c1b83a3118b0

Detection Methods for CVE-2021-28363

Indicators of Compromise

  • Unexpected SSL certificate warnings or mismatches in application logs when connecting through HTTPS proxies
  • Network traffic analysis showing TLS connections to proxies with certificates that don't match the expected proxy hostname
  • Python dependency audit reports flagging urllib3 versions between 1.26.0 and 1.26.3

Detection Strategies

  • Run pip show urllib3 or check requirements.txt files to identify vulnerable versions in the 1.26.x range prior to 1.26.4
  • Implement software composition analysis (SCA) tools to continuously monitor Python dependencies for known vulnerabilities
  • Review network traffic for anomalous certificate presentations during proxy connections using tools like Wireshark or network security monitoring solutions

Monitoring Recommendations

  • Enable verbose SSL logging in Python applications to capture certificate validation details during proxy connections
  • Deploy network intrusion detection systems to identify potential man-in-the-middle attack patterns on proxy connections
  • Implement certificate pinning monitoring to detect unexpected certificate changes for known HTTPS proxies

How to Mitigate CVE-2021-28363

Immediate Actions Required

  • Upgrade urllib3 to version 1.26.4 or later immediately using pip install --upgrade urllib3>=1.26.4
  • Audit all Python applications and virtual environments for affected urllib3 versions
  • If immediate upgrade is not possible, provide a custom SSLContext with check_hostname = True via the proxy_config parameter

Patch Information

The vulnerability is fixed in urllib3 version 1.26.4 and later. The patch adds explicit hostname verification for HTTPS proxy connections by setting check_hostname = True on the SSL context. Organizations should update their dependencies through standard package management:

  • PyPI urllib3 Release 1.26.4
  • GitHub Security Advisory GHSA-5phf-pp7p-vc2r
  • Oracle CPU October 2021 Security Alert for PeopleSoft Enterprise PeopleTools

Workarounds

  • Explicitly pass a properly configured SSLContext with check_hostname = True via the proxy_config parameter when creating proxy connections
  • Avoid using HTTPS proxies with vulnerable urllib3 versions; consider using HTTP proxies with end-to-end TLS to the destination server instead
  • Implement network-level certificate validation or proxy authentication to add additional layers of protection
bash
# Upgrade urllib3 to patched version
pip install --upgrade "urllib3>=1.26.4"

# Verify installed version
pip show urllib3 | grep Version

# Check for vulnerable versions in requirements files
grep -r "urllib3" requirements*.txt | grep -E "1\.26\.[0-3]"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechPython Urllib3

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability0.11%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-295
  • Technical References
  • Fedora Package Announcement

  • PyPI urllib3 Release 1.26.4

  • Gentoo GLSA 2021-36

  • Gentoo GLSA 2023-02

  • NetApp Security Advisory ntap-20240621-0007
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Main Commits

  • GitHub Security Advisory GHSA-5phf-pp7p-vc2r

  • Oracle CPU October 2021 Security Alert
  • Latest CVEs
  • CVE-2025-52479: HTTP.jl & URIs.jl CRLF Injection Flaw

  • CVE-2026-31740: Linux Kernel Race Condition Vulnerability

  • CVE-2026-31743: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-31744: Linux Kernel NULL Pointer Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English