Requests vulnerable to .netrc credentials leak via malicious URLs
### 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
describes (1)
Related CVEs.
| ID | severity | exploitable | ||
|---|---|---|---|---|
| CVE-2024-47081US | — | — | ||
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… | ||||
references
External citations — patches, advisories, analysis.
- http://www.openwall.com/lists/oss-security/2025/06/03/11WEB
- http://www.openwall.com/lists/oss-security/2025/06/03/9WEB
- http://www.openwall.com/lists/oss-security/2025/06/04/1WEB
- http://www.openwall.com/lists/oss-security/2025/06/04/6WEB
- https://github.com/advisories/GHSA-9hjg-9r4m-mvj7ADVISORY
- https://github.com/psf/requestsPACKAGE
- https://github.com/psf/requests/commit/96ba401c1296ab1dda74a2365ef36d88f7d144efWEB
- https://github.com/psf/requests/pull/6965WEB
Advisories like this name the exposed products attackers go after on your perimeter. See what is exposed on your perimeter with a free passive scan.
Free scan