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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:13 | python-urllib3 | 2.3.0-3 | DEBIAN-CVE-2025-50182 |
| Debian:14 | python-urllib3 | 2.3.0-3 | DEBIAN-CVE-2025-50182 |
| PyPI | urllib3 | 2.5.0 | GHSA-48p4-8xcf-vxj5 |
| PyPI | urllib3 | 2.5.0 | PYSEC-2026-1997 |
| Ubuntu:22.04:LTS | python-urllib3 | 1.26.5-1~exp1ubuntu0.3 | USN-7599-1 |
| Ubuntu:24.04:LTS | python-urllib3 | 2.0.7-1ubuntu0.2 | USN-7599-1 |
Affected products (as reported)
Weakness: CWE-601 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
References
- https://github.com/urllib3/urllib3/security/advisories/GHSA-48p4-8xcf-vxj5 x_refsource_CONFIRM
- https://github.com/urllib3/urllib3/commit/7eb4a2aafe49a279c29b6d1f0ed0f42e9736194f x_refsource_MISC
- https://github.com/urllib3/urllib3/releases/tag/2.5.0 x_refsource_MISC