Skip to main content

urllib3 EUVDEUVD-2025-18677

| CVE-2025-50182 MEDIUM
URL Redirection to Untrusted Site (Open Redirect) (CWE-601)
2025-06-19 security-advisories@github.com GHSA-48p4-8xcf-vxj5
6.1
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    App uses urllib3 under Pyodide
  2. Delivery
    Developer disables redirects as SSRF/open-redirect control
  3. Exploit
    Malicious endpoint returns HTTP redirect
  4. Execution
    Runtime follows redirect, urllib3 params ignored
  5. Impact
    Mitigation bypassed, request reaches attacker target

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Redirect URL validation
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Three conditions must hold together: (1) urllib3 version >= 2.2.0 and < 2.5.0; (2) it is executed inside a Pyodide runtime using the JavaScript Fetch API or XMLHttpRequest fallback - i.e. a browser or Node.js, not a standard CPython process; and (3) the application depends on urllib3's retries/redirect parameters (e.g. retries=0, redirect=False) to suppress or limit redirects, typically as an SSRF or open-redirect mitigation. The flaw does NOT affect normal server-side CPython deployments, which is the dominant limiting factor. Per the vendor, the Node.js case is fully fixed in 2.5.0, but in browsers urllib3 still cannot restrict redirects at all (XMLHttpRequest offers no control and Fetch returns opaqueredirect), so browser consumers should expect default runtime redirect behavior even after patching. CVSS UI:R indicates a user-initiated request/interaction is needed to reach the redirecting endpoint.

Impact

Signals converge on a genuinely moderate, not urgent, priority. The CVSS 3.1 base score is 6.1 (medium) with AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N, reflecting an open-redirect-class issue (CWE-601) where a scope change and user interaction are needed and impact is only partial confidentiality/integrity. EPSS is 0.02% (5th percentile) - essentially negligible modeled exploitation probability - and the CVE is NOT on CISA KEV, so there is no confirmed active exploitation. No public exploit is identified; the only code artifacts in the input are the vendor's fix commit and its regression test, not weaponized exploit code. The vuln.today decision label is 'this_month' (not act_now/emergency), consistent with the low EPSS and absence of KEV. Importantly, this is not a directly attacker-triggered memory/RCE flaw: it is a security-CONTROL failure. urllib3's retries/redirect parameters are silently ignored in a Pyodide runtime, so an application that disabled redirects specifically to mitigate SSRF or open-redirect would unknowingly remain exposed per the GHSA. The real-world risk therefore depends almost entirely on a narrow deployment condition (urllib3 running under Pyodide and relying on redirect control), which sharply limits the exposed population despite urllib3's overall ubiquity. No signals conflict here; rather, several (low EPSS, no KEV, this_month, niche trigger condition) all point to a defense-in-depth gap to remediate on a normal patch cadence rather than an emergency.

Exploit ScenarioDerived

A Python application running in a Pyodide runtime (browser or Node.js) uses urllib3 2.2.0-2.4.x and disables redirects (e.g. retries=0 or redirect=False) to block SSRF or open-redirect abuse. Because those parameters are ignored under Pyodide, a crafted server response issuing an HTTP redirect is followed by the runtime anyway, sending the victim or the request to an attacker-controlled location and defeating the intended mitigation. No public exploit code is identified; realistic exploitation requires the victim app to both run under Pyodide and depend on urllib3 redirect control, and (per CVSS UI:R) a user action/request to reach the redirecting endpoint.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Nov 19, 2026

Redirect controls in urllib3 2.2.0 through 2.4.x are ignored when the library executes inside a Pyodide runtime (browser or Node.js), so code that passes retries=0 or redirect=False to suppress redirect chains may still be redirected by the JavaScript runtime itself. Only Pyodide/Emscripten deployments are exposed - ordinary CPython server-side installs are unaffected - and the Node.js path is corrected in 2.5.0 while browsers remain unable to restrict redirects at all. EPSS is 0.02% (5th percentile), no public exploit was identified at time of analysis, there is no CISA KEV listing, and vendor advisories plus Ubuntu USN-7599-1 and Debian bug #1108077 track fixed packages.

Earlier versions of this analysis (1)
v1 Mar 15, 2026 - 00:08 CVSS 5.3

RemediationAI

Vendor-released patch: urllib3 2.5.0 (commit 7eb4a2aafe49a279c29b6d1f0ed0f42e9736194f, release notes at https://github.com/urllib3/urllib3/releases/tag/2.5.0, advisory https://github.com/urllib3/urllib3/security/advisories/GHSA-48p4-8xcf-vxj5). Node.js consumers of the Pyodide path should upgrade to 2.5.0 so that retries and redirect parameters are honored again; Linux distribution users should apply the fixed builds referenced by Ubuntu USN-7599-1 (https://ubuntu.com/security/notices/USN-7599-1) and Debian bug #1108077. Per the vendor, the browser case has no complete fix: XMLHttpRequest provides no redirect control and the Fetch API returns opaqueredirect bodies without usable data, so patched users in browsers should expect default runtime redirect behavior and must not rely on urllib3's retries/redirect arguments to enforce a redirect limit for SSRF or open-redirect protection - that enforcement has to sit outside urllib3, with the trade-off that applications which assumed retries=0 would block redirects need to re-validate final destinations themselves.

Affected VersionsENISA

urllib3 < 2.5.0
urllib3 2.2.0, < 2.5.0

Affected Packages

pypi urllib3 fix: 2.5.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

urllib3 ships an Emscripten/Pyodide contrib layer (urllib3.contrib.emscripten.fetch) that emulates HTTP through the JavaScript Fetch API, falling back to XMLHttpRequest. In that mode the library's own retry/redirect machinery is bypassed: the browser or Node.js runtime decides whether to follow a 3xx. This is CWE-601 (URL Redirection to Untrusted Site / open redirect) manifesting as a redirect-policy bypass, so the practical risk is that an application's redirect-based SSRF or open-redirect defense silently degrades. The upstream fix commit 7eb4a2aa adds an _is_node_js() probe (checking js.process.release.name == 'node') and sets fetch_data['redirect'] = 'manual' in send_jspi_request when running under Node.js, where the full response is returned and urllib3 can therefore enforce retries/redirects itself; tests assert MaxRetryError is raised when retries=0 and that redirect=False yields the 303. The same commit's documentation change records that browsers still offer no equivalent control, because XMLHttpRequest exposes none and Fetch returns opaqueredirect responses stripped of data when redirects are manual. The CVSS vector (AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N) indicates a network-reachable flaw requiring user-initiated interaction, with scope change and limited confidentiality/integrity impact.

Know when Urllib3 gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 6.1 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 6.1 MEDIUM

Open-redirect control failure reachable over the network without privileges (PR:N) but needing a user-triggered request (UI:R); the bypass affects a separate target system (S:C) with limited C/I and no availability impact.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Ubuntu MEDIUM
SUSE 5.3 MEDIUM
AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
Red Hat 5.3 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

3
CVSS changed
Nov 19, 2026 - 17:52 NVD
5.3 (MEDIUM) 6.1 (MEDIUM)
Patch released
Mar 15, 2026 - 00:08 nvd
Patch available
CVE Published
Jun 19, 2025 - 02:15 nvd
MEDIUM 5.3

DescriptionNVD

urllib3 is a user-friendly HTTP client library for Python. Starting in version 2.2.0 and prior to 2.5.0, urllib3 does not control redirects in browsers and Node.js. urllib3 supports being used in a Pyodide runtime utilizing the JavaScript Fetch API or falling back on XMLHttpRequest. This means Python libraries can be used to make HTTP requests from a browser or Node.js. Additionally, urllib3 provides a mechanism to control redirects, but the retries and redirect parameters are ignored with Pyodide; the runtime itself determines redirect behavior. This issue has been patched in version 2.5.0.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 52 pypi packages depend on urllib3 (50 direct, 2 indirect)

Ecosystem-wide dependent count for version 2.2.0.

Executive ViewAI

Why It Matters

Organizations using version 2.2.0 and should be aware of moderate risk from CVE-2025-50182 rated CVSS 5.3. Exploitation could compromise the security of affected deployments. A patch is available and should be applied during regular vulnerability management.

Business Impact: Low
Compensating Controls

Apply vendor patch. If patching is delayed: restrict network access and enable monitoring.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Prevalence
Low
urllib3 is ubiquitous, but the vulnerable Pyodide/Node.js runtime usage is niche
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Low

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0
CVE-2024-37891 MEDIUM POC
6.5 Jun 17

urllib3 is a user-friendly HTTP client library for Python. Rated medium severity (CVSS 6.5), this vulnerability is remot

CVE-2019-11236 MEDIUM POC
6.1 Apr 15

In the urllib3 library through 1.24.1 for Python, CRLF injection is possible if the attacker controls the request parame

CVE-2018-20060 CRITICAL
9.8 Dec 11

urllib3 before version 1.23 does not remove the Authorization HTTP header when following a cross-origin redirect (i.e.,

CVE-2025-50181 MEDIUM POC
5.3 Jun 19

urllib3 is a user-friendly HTTP client library for Python. Prior to 2.5.0, it is possible to disable redirects for all r

CVE-2026-97689 HIGH
8.9 Sep 29

Unbounded memory allocation in urllib3 (1.10.3 through 2.7.x) lets a malicious or machine-in-the-middle HTTP server exha

CVE-2025-66418 HIGH
8.9 Dec 05

Resource-exhaustion denial of service in urllib3 1.24 through 2.5.x allows a malicious or attacker-controlled HTTP serve

CVE-2025-66471 HIGH
8.9 Dec 05

A decompression-bomb denial-of-service flaw in the urllib3 Python HTTP client library (versions 1.0 through 2.5.x, fixed

CVE-2026-21441 HIGH
8.9 Jan 07

Uncontrolled resource consumption in the Python urllib3 HTTP client library (versions 1.22 through 2.6.2) lets a malicio

CVE-2023-43804 HIGH
8.1 Oct 04

urllib3 is a user-friendly HTTP client library for Python. Rated high severity (CVSS 8.1), this vulnerability is remotel

CVE-2026-97687 HIGH
7.6 Sep 29

Certificate validation bypass in urllib3 1.26.0 through 2.7.x allows a man-in-the-middle attacker who can impersonate th

CVE-2021-33503 HIGH
7.5 Jun 29

An issue was discovered in urllib3 before 1.26.5. Rated high severity (CVSS 7.5), this vulnerability is remotely exploit

CVE-2020-7212 HIGH
7.5 Mar 06

The _encode_invalid_chars function in util/url.py in the urllib3 library 1.25.2 through 1.25.7 for Python allows a denia

Vendor StatusVendor

Ubuntu

Priority: Medium
python-pip
Release Status Version
upstream needs-triage -
plucky not-affected code not present
bionic not-affected code not present
focal not-affected code not present
jammy not-affected code not present
noble not-affected code not present
oracular not-affected code not present
trusty not-affected code not present
xenial not-affected code not present
python-urllib3
Release Status Version
plucky released 2.3.0-2ubuntu0.1
bionic not-affected code not present
focal not-affected code not present
jammy not-affected code not present
noble not-affected code not present
oracular not-affected code not present
trusty not-affected code not present
upstream released 2.5.0
xenial not-affected code not present

Debian

Bug #1108077
python-urllib3
Release Status Fixed Version Urgency
bullseye not-affected - -
bullseye (security) fixed 1.26.5-1~exp1+deb11u3 -
bookworm not-affected - -
bookworm (security) fixed 1.26.12-1+deb12u3 -
trixie (security), trixie fixed 2.3.0-3+deb13u1 -
forky, sid fixed 2.6.3-1 -
(unstable) fixed 2.3.0-3 -

SUSE

Severity: Medium
Product Status
SUSE Linux Enterprise Server 16.0 Fixed
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 12 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy