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
    • 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-2023-43804

CVE-2023-43804: Python Urllib3 Information Disclosure Flaw

CVE-2023-43804 is an information disclosure vulnerability in Python Urllib3 where Cookie headers can leak to different origins during redirects. This article covers technical details, affected versions, and mitigation.

Published: February 11, 2026

CVE-2023-43804 Overview

CVE-2023-43804 is an information disclosure vulnerability in urllib3, a widely-used HTTP client library for Python. The vulnerability occurs because urllib3 doesn't treat the Cookie HTTP header specially when handling HTTP redirects. When a user specifies a Cookie header and the server redirects to a different origin, the cookie information is leaked to the redirect target unless the user has explicitly disabled redirects.

Critical Impact

Applications using urllib3 with custom Cookie headers may unknowingly leak sensitive authentication cookies to third-party domains during cross-origin redirects, potentially leading to session hijacking or unauthorized access.

Affected Products

  • Python urllib3 versions prior to 1.26.17
  • Python urllib3 versions 2.x prior to 2.0.5
  • Debian Linux 10.0
  • Fedora 37, 38, and 39

Discovery Timeline

  • 2023-10-02 - Security patches released in urllib3 versions 1.26.17 and 2.0.6
  • 2023-10-04 - CVE CVE-2023-43804 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2023-43804

Vulnerability Analysis

This vulnerability exists in urllib3's redirect handling mechanism. The library provides a retry/redirect system that automatically follows HTTP redirects (3xx responses). However, prior to the patch, the Cookie header was not included in the list of headers that should be stripped when redirecting to a different host.

The urllib3 library already had a mechanism (Retry.remove_headers_on_redirect) to strip sensitive headers like Authorization when following redirects to different origins. This is a crucial security measure to prevent credential leakage. However, the Cookie header was overlooked in this protection, creating a scenario where session cookies and other sensitive cookie data could be transmitted to unintended third-party servers.

Root Cause

The root cause is an incomplete implementation of the sensitive header stripping mechanism in urllib3's retry module. The DEFAULT_REMOVE_HEADERS_ON_REDIRECT frozenset only included Authorization but not Cookie, despite both headers carrying equally sensitive authentication information.

From the patch, we can see the fix clearly:

python
# Before the fix
DEFAULT_REMOVE_HEADERS_ON_REDIRECT = frozenset(["Authorization"])

# After the fix
DEFAULT_REMOVE_HEADERS_ON_REDIRECT = frozenset(["Cookie", "Authorization"])

Source: GitHub Commit

Attack Vector

The attack vector is network-based and requires a malicious or compromised server to redirect HTTP requests to an attacker-controlled domain. The attack scenario works as follows:

  1. A victim's application uses urllib3 to make HTTP requests with a custom Cookie header containing session tokens or authentication data
  2. The legitimate server (or a man-in-the-middle attacker) issues an HTTP redirect to a different domain
  3. urllib3 follows the redirect and sends the original Cookie header to the new domain
  4. The attacker's server captures the leaked cookie data
text
# Changes documenting the fix
+1.26.17 (2023-10-02)
+--------------------
+
+* Added the ``Cookie`` header to the list of headers to strip from requests when redirecting to a different host. As before, different headers can be set via ``Retry.remove_headers_on_redirect``.

Source: GitHub Commit

Detection Methods for CVE-2023-43804

Indicators of Compromise

  • Unexpected HTTP requests from your application to third-party domains containing your session cookies
  • Log entries showing requests to unfamiliar domains following legitimate API calls
  • Authentication tokens appearing in logs or traffic captures for domains outside your trusted infrastructure

Detection Strategies

  • Audit application dependencies using pip list or pip show urllib3 to identify vulnerable versions (< 1.26.17 for 1.x branch, < 2.0.5 for 2.x branch)
  • Implement network monitoring to detect cookie headers being sent to unexpected domains during redirect chains
  • Use software composition analysis (SCA) tools to scan for vulnerable urllib3 versions across your codebase

Monitoring Recommendations

  • Enable detailed HTTP logging in applications to capture redirect behavior and header transmission
  • Monitor for unusual authentication failures that could indicate leaked session cookies being replayed
  • Implement network-level inspection to identify cookie headers crossing trust boundaries during redirects

How to Mitigate CVE-2023-43804

Immediate Actions Required

  • Upgrade urllib3 to version 1.26.17 or later for the 1.x branch
  • Upgrade urllib3 to version 2.0.5 or later for the 2.x branch
  • Review applications for manual Cookie header usage with urllib3 and assess potential exposure
  • Consider disabling automatic redirects (redirect=False) for sensitive requests until patching is complete

Patch Information

Security patches are available from the urllib3 project. The fix adds the Cookie header to the DEFAULT_REMOVE_HEADERS_ON_REDIRECT frozenset, ensuring cookies are stripped when following redirects to different hosts. Patches are available through standard package managers:

  • GitHub Security Advisory GHSA-v845-jxx5-vc9f
  • Debian LTS Announcement
  • Fedora Package Announcements

Workarounds

  • Explicitly disable redirects when making requests with cookies: urllib3.request("GET", url, redirect=False)
  • Manually specify headers to remove on redirect using Retry.remove_headers_on_redirect to include Cookie
  • Implement application-level redirect handling that strips sensitive headers before following cross-origin redirects
bash
# Upgrade urllib3 to patched version
pip install --upgrade "urllib3>=1.26.17"

# For urllib3 2.x users
pip install --upgrade "urllib3>=2.0.5"

# Verify installed version
pip show urllib3

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechUrllib3

  • SeverityHIGH

  • CVSS Score8.1

  • EPSS Probability0.87%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-200

  • NVD-CWE-noinfo
  • Technical References
  • Debian LTS Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Debian LTS Announcement

  • NetApp Security Advisory

  • Vicarius Blog Post
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2024-37891: urllib3 Information Disclosure Flaw

  • CVE-2023-45803: Python Urllib3 Information Disclosure Flaw

  • CVE-2026-21441: urllib3 Python Library DoS Vulnerability

  • CVE-2025-50182: Python Urllib3 Redirect Vulnerability
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