Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. urllib3
  4. ›
  5. CVE-2025-50181

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

June 18, 2025 (updated June 19, 2025)

urllib3 handles redirects and retries using the same mechanism, which is controlled by the Retry object. The most common way to disable redirects is at the request level, as follows:

resp = urllib3.request("GET", "https://httpbin.org/redirect/1", redirect=False)
print(resp.status)

References

  • github.com/advisories/GHSA-pq67-6m6q-mj2v
  • github.com/urllib3/urllib3
  • github.com/urllib3/urllib3/commit/f05b1329126d5be6de501f9d1e3e36738bc08857
  • github.com/urllib3/urllib3/security/advisories/GHSA-pq67-6m6q-mj2v
  • nvd.nist.gov/vuln/detail/CVE-2025-50181

Code Behaviors & Features

Detect and mitigate CVE-2025-50181 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.5.0

Fixed versions

  • 2.5.0

Solution

Upgrade to version 2.5.0 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-601: URL Redirection to Untrusted Site ('Open Redirect')

Source file

pypi/urllib3/CVE-2025-50181.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:18:19 +0000.