Improper Removal of Sensitive Information Before Storage or Transfer Affecting urllib3 package, versions [,1.26.19) [2.0.0a1, 2.2.2)
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-PYTHON-URLLIB3-7267250
- published 18 Jun 2024
- disclosed 17 Jun 2024
- credit Unknown
Introduced: 17 Jun 2024
CVE-2024-37891 Open this link in a new tabHow to fix?
Upgrade urllib3
to version 1.26.19, 2.2.2 or higher.
Overview
urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.
Affected versions of this package are vulnerable to Improper Removal of Sensitive Information Before Storage or Transfer due to the improper handling of the Proxy-Authorization
header during cross-origin redirects when ProxyManager
is not in use. When the conditions below are met, including non-recommended configurations, the contents of this header can be sent in an automatic HTTP redirect.
Notes:
To be vulnerable, the application must be doing all of the following:
Setting the
Proxy-Authorization
header without using urllib3's built-in proxy support.Not disabling HTTP redirects (e.g. with
redirects=False
)Either not using an HTTPS origin server, or having a proxy or target origin that redirects to a malicious origin.
Workarounds
Using the
Proxy-Authorization
header with urllib3'sProxyManager
.Disabling HTTP redirects using
redirects=False
when sending requests.Not using the
Proxy-Authorization
header.