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-2025-50182

CVE-2025-50182: Python Urllib3 Redirect Vulnerability

CVE-2025-50182 is a redirect control flaw in Python Urllib3 affecting Pyodide runtimes. The library fails to control redirects in browsers and Node.js environments. This article covers technical details, versions 2.2.0-2.4.x, impact, and mitigation strategies.

Updated: January 22, 2026

CVE-2025-50182 Overview

CVE-2025-50182 is a URL Redirection vulnerability (CWE-601) affecting urllib3, a widely-used HTTP client library for Python. The vulnerability exists in versions 2.2.0 through 2.4.x, where redirect control parameters are ignored when urllib3 operates within a Pyodide runtime environment. This allows the underlying JavaScript runtime (browser or Node.js) to determine redirect behavior instead of respecting urllib3's configured redirect policies.

Critical Impact

Applications using urllib3 in Pyodide environments may be vulnerable to open redirect attacks, as the retries and redirect parameters that developers rely on for redirect control are silently ignored, potentially leading to credential theft or phishing attacks.

Affected Products

  • Python urllib3 versions 2.2.0 to 2.4.x
  • Applications using urllib3 within Pyodide runtime environments
  • Python applications running in browser or Node.js via Pyodide

Discovery Timeline

  • June 19, 2025 - CVE-2025-50182 published to NVD
  • December 22, 2025 - Last updated in NVD database

Technical Details for CVE-2025-50182

Vulnerability Analysis

This vulnerability stems from an inconsistency between urllib3's documented redirect control behavior and its actual behavior when executing within Pyodide. urllib3 supports operation in Pyodide runtime environments, which utilize either the JavaScript Fetch API or XMLHttpRequest as the underlying HTTP transport mechanism. This capability enables Python libraries to make HTTP requests directly from browsers or Node.js environments.

The core issue is that urllib3's retries and redirect parameters—which developers use to control redirect behavior and limit redirect chains—are completely ignored when running in Pyodide. Instead, the JavaScript runtime's default redirect handling takes precedence, bypassing any application-level redirect restrictions configured through urllib3.

Root Cause

The root cause is a design gap in urllib3's Pyodide integration layer. When urllib3 delegates HTTP requests to the JavaScript Fetch API or XMLHttpRequest, it fails to translate its redirect control parameters into equivalent JavaScript fetch options. The JavaScript runtime's native redirect handling operates independently, meaning any redirect=False or retries configuration specified in Python code has no effect on the actual HTTP behavior.

Attack Vector

An attacker can exploit this vulnerability through network-based attacks requiring user interaction. The attack scenario involves:

  1. An attacker identifies a web application using urllib3 in a Pyodide environment
  2. The attacker crafts a malicious URL that redirects to an attacker-controlled destination
  3. Even if the application has configured urllib3 to disallow or limit redirects, the JavaScript runtime follows the redirects anyway
  4. This can lead to open redirect attacks where users are silently redirected to phishing sites, or sensitive data (such as authentication tokens in URL parameters) being leaked to attacker-controlled servers via the redirect chain

The vulnerability is particularly concerning because developers may believe their redirect controls are functioning when they are actually being bypassed entirely.

Detection Methods for CVE-2025-50182

Indicators of Compromise

  • Unexpected redirect chains in applications running urllib3 within Pyodide environments
  • HTTP traffic showing redirects to external domains when application logic should prevent such behavior
  • User reports of being redirected to unexpected or suspicious websites
  • Authentication tokens or sensitive parameters appearing in redirect destination logs

Detection Strategies

  • Review application dependencies to identify urllib3 versions between 2.2.0 and 2.4.x used in Pyodide contexts
  • Audit code for urllib3 usage patterns that rely on redirect or retries parameters in browser/Node.js deployments
  • Implement network monitoring to detect unexpected redirect behavior from Pyodide-based applications
  • Test redirect control functionality explicitly in Pyodide environments to verify expected behavior

Monitoring Recommendations

  • Monitor HTTP request logs for redirect chains that exceed expected limits
  • Implement alerting for requests that redirect to domains outside an approved list
  • Track urllib3 version usage across Pyodide deployments through dependency scanning
  • Review client-side application behavior for signs of uncontrolled redirects

How to Mitigate CVE-2025-50182

Immediate Actions Required

  • Upgrade urllib3 to version 2.5.0 or later immediately for all Pyodide-based deployments
  • Audit applications using urllib3 in Pyodide to identify where redirect controls were expected to function
  • Implement server-side redirect validation as an additional defense layer
  • Review application logic to ensure no security-critical operations depend solely on urllib3 redirect controls in Pyodide

Patch Information

The urllib3 maintainers have addressed this vulnerability in version 2.5.0. The fix ensures that redirect control parameters are properly honored when urllib3 operates within Pyodide environments. Organizations should upgrade to version 2.5.0 or later to remediate this vulnerability.

For detailed information about the fix, refer to the GitHub Security Advisory GHSA-48p4-8xcf-vxj5 and the urllib3 2.5.0 Release Notes.

Workarounds

  • Implement application-level URL validation before making requests to prevent redirects to untrusted domains
  • Use Content Security Policy (CSP) headers to restrict navigation to approved origins
  • Avoid passing sensitive data in URL parameters where redirect leakage could expose credentials
  • Consider implementing a server-side proxy for HTTP requests if Pyodide-based redirect control is critical to security
bash
# Upgrade urllib3 to patched version
pip install --upgrade "urllib3>=2.5.0"

# Verify installed version
pip show urllib3 | grep Version

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechUrllib3

  • SeverityMEDIUM

  • CVSS Score6.1

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-601
  • Technical References
  • GitHub Release 2.5.0
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-48p4-8xcf-vxj5
  • Related CVEs
  • CVE-2020-26137: Python Urllib3 CRLF Injection Vulnerability

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

  • CVE-2025-66471: Python Urllib3 DoS Vulnerability

  • CVE-2025-66418: Python Urllib3 DOS 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