Vulnerability · Published Jun 19, 2025 · Assigned by GitHub_M

CVE-2025-50181urllib3 redirects are not disabled when retries are disabled on PoolManager instantiation

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.5% (higher than 41% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.5%top 58.8% 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. Prior to 2.5.0, it is possible to disable redirects for all requests by instantiating a PoolManager and specifying retries in a way that disable redirects. By default, requests and botocore users are not affected. An application attempting to mitigate SSRF or open redirect vulnerabilities by disabling redirects at the PoolManager level will remain vulnerable. This issue has been patched in version 2.5.0.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12python-urllib31.26.12-1+deb12u2DEBIAN-CVE-2025-50181
Debian:13python-urllib32.3.0-3DEBIAN-CVE-2025-50181
Debian:14python-urllib32.3.0-3DEBIAN-CVE-2025-50181
PyPIurllib32.5.0PYSEC-2026-1999
PyPIurllib32.5.0GHSA-pq67-6m6q-mj2v
Ubuntu:22.04:LTSpython-pip22.0.2+dfsg-1ubuntu0.6USN-7599-2
Ubuntu:22.04:LTSpython-pip22.0.2+dfsg-1ubuntu0.6UBUNTU-CVE-2025-50181
Ubuntu:24.04:LTSpython-pip24.0+dfsg-1ubuntu1.2USN-7599-2
Ubuntu:24.04:LTSpython-pip24.0+dfsg-1ubuntu1.2UBUNTU-CVE-2025-50181
Ubuntu:22.04:LTSpython-urllib31.26.5-1~exp1ubuntu0.3USN-7599-1
Ubuntu:22.04:LTSpython-urllib31.26.5-1~exp1ubuntu0.3UBUNTU-CVE-2025-50181
Ubuntu:24.04:LTSpython-urllib32.0.7-1ubuntu0.2UBUNTU-CVE-2025-50181
Ubuntu:24.04:LTSpython-urllib32.0.7-1ubuntu0.2USN-7599-1

Affected products (as reported)

VendorProductVersions
urllib3 urllib3 < 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