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.
For older versions of Requests, use of the .netrc file can be disabled with trust_env=False
on your Requests Session (docs).
https://github.com/psf/requests/pull/6965 https://seclists.org/fulldisclosure/2025/Jun/2
{ "nvd_published_at": "2025-06-09T18:15:24Z", "cwe_ids": [ "CWE-522" ], "severity": "MODERATE", "github_reviewed": true, "github_reviewed_at": "2025-06-09T19:06:08Z" }