5.3Medium

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

urllib3 urllib3 Published: (1 year ago)

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.

Weakness (CWE): CWE-601

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
python urllib3 < 2.5.0
urllib3 urllib3 < 2.5.0

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:python:urllib3:*:*:*:*:*:*:*:* < 2.5.0