Vulnerability · Published Jun 19, 2025 · Assigned by GitHub_M

CVE-2025-50182urllib3 does not control redirects in browsers and Node.js

Medium 5.3

In plain English

A medium-severity open redirect in urllib3 from urllib3. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 49% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.6%top 51.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:13python-urllib32.3.0-3DEBIAN-CVE-2025-50182
Debian:14python-urllib32.3.0-3DEBIAN-CVE-2025-50182
PyPIurllib32.5.0GHSA-48p4-8xcf-vxj5
PyPIurllib32.5.0PYSEC-2026-1997
Ubuntu:22.04:LTSpython-urllib31.26.5-1~exp1ubuntu0.3USN-7599-1
Ubuntu:24.04:LTSpython-urllib32.0.7-1ubuntu0.2USN-7599-1

Affected products (as reported)

VendorProductVersions
urllib3 urllib3 >= 2.2.0, < 2.5.0

Weakness: CWE-601 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N

References