Locust: urllib3 redirects are not disabled when retries are disabled on PoolManager instantiation (CVE-2025-50181)
A vulnerability in urllib3 used by Locust (CVE-2025-50181) causes the 'retries' parameter on PoolManager instantiation to be ignored when attempting to disable HTTP redirects. This means that disabling redirects at the PoolManager level does not work as intended, potentially leaving applications vulnerable to SSRF exploitation if they rely on this mechanism for mitigation. The issue affects Locust versions from 2.2.1 up to but not including 2.37.10_2. A patch is available to address this behavior.
AI Analysis
Technical Summary
urllib3 handles redirects and retries via the Retry object. While redirects can be disabled per request, disabling redirects globally by setting the 'retries' parameter on PoolManager instantiation is ignored due to this vulnerability. Applications that attempt to mitigate SSRF or open redirect vulnerabilities by disabling redirects at the PoolManager level remain vulnerable because redirects are still followed. The vulnerability affects Locust versions >=2.2.1 and <2.37.10_2. The recommended remediation is to upgrade to a patched urllib3 version and disable redirects at the request level instead of relying on PoolManager-level settings.
Potential Impact
Applications using vulnerable versions of Locust that disable redirects at the PoolManager level remain susceptible to SSRF or open redirect exploitation because redirects are not actually disabled. This can lead to unauthorized information disclosure or other impacts related to SSRF attacks. The CVSS 3.1 score is 5.3 (medium severity), reflecting network attack vector, high complexity, low privileges required, no user interaction, unchanged scope, and high confidentiality impact.
Mitigation Recommendations
Upgrade to a patched version of urllib3 that addresses this issue. Until upgraded, disable redirects explicitly at the request() level rather than relying on the retries parameter during PoolManager instantiation. No other mitigations are indicated by the vendor advisory.
Locust: urllib3 redirects are not disabled when retries are disabled on PoolManager instantiation (CVE-2025-50181)
Description
A vulnerability in urllib3 used by Locust (CVE-2025-50181) causes the 'retries' parameter on PoolManager instantiation to be ignored when attempting to disable HTTP redirects. This means that disabling redirects at the PoolManager level does not work as intended, potentially leaving applications vulnerable to SSRF exploitation if they rely on this mechanism for mitigation. The issue affects Locust versions from 2.2.1 up to but not including 2.37.10_2. A patch is available to address this behavior.
CVSS v3.1
Score 5.3medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
urllib3 handles redirects and retries via the Retry object. While redirects can be disabled per request, disabling redirects globally by setting the 'retries' parameter on PoolManager instantiation is ignored due to this vulnerability. Applications that attempt to mitigate SSRF or open redirect vulnerabilities by disabling redirects at the PoolManager level remain vulnerable because redirects are still followed. The vulnerability affects Locust versions >=2.2.1 and <2.37.10_2. The recommended remediation is to upgrade to a patched urllib3 version and disable redirects at the request level instead of relying on PoolManager-level settings.
Potential Impact
Applications using vulnerable versions of Locust that disable redirects at the PoolManager level remain susceptible to SSRF or open redirect exploitation because redirects are not actually disabled. This can lead to unauthorized information disclosure or other impacts related to SSRF attacks. The CVSS 3.1 score is 5.3 (medium severity), reflecting network attack vector, high complexity, low privileges required, no user interaction, unchanged scope, and high confidentiality impact.
Mitigation Recommendations
Upgrade to a patched version of urllib3 that addresses this issue. Until upgraded, disable redirects explicitly at the request() level rather than relying on the retries parameter during PoolManager instantiation. No other mitigations are indicated by the vendor advisory.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BREW-locust-CVE-2025-50181
- Osv Schema Version
- 1.7.3
- Ecosystems
- ["Homebrew"]
- Cvss Version
- 3.1
Threat ID: 6aac8dfa55bf5e2cf5490331
Added to database: 09/18/2026, 01:03:54 UTC
Last enriched: 09/18/2026, 01:57:44 UTC
Last updated: 09/18/2026, 01:57:44 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.