~ / search / GHSA-9hjg-9r4m-mvj7

GHSA-9hjg-9r4m-mvj7

Requests vulnerable to .netrc credentials leak via malicious URLs

Source: GitHub Advisory Database (reviewed) Moderate CVE-2024-47081

Packages

EcosystemPackageAffectedFixed in
PyPI requests < 2.32.4 2.32.4

Details

As written in the advisory (Markdown source, shown as plain text).

### Impact 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. ### Workarounds For older versions of Requests, use of the .netrc file can be disabled with `trust_env=False` on your Requests Session ([docs](https://requests.readthedocs.io/en/latest/api/#requests.Session.trust_env)). ### References https://github.com/psf/requests/pull/6965 https://seclists.org/fulldisclosure/2025/Jun/2

References

External links from the advisory. They lead to third-party sites.