What’s Vulnerable › Vulnerabilities

CVE-2024-47081: Requests vulnerable to .netrc credentials leak via malicious URLs

Description

Requests is a HTTP library. Due to a URL parsing issue, Requests releases prior to 2.32.4 may leak .netrc credentials to third parties for specific maliciously-crafted URLs. Users should upgrade to version 2.32.4 to receive a fix. For older versions of Requests, use of the .netrc file can be disabled with `trust_env=False` on one's Requests Session.

Affected products

How to fix

Upgrade to a fixed version: Pypi Requests 2.32.4. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-47081 or the next vulnerability affects your stack