Vulnerability PYSEC-2026-1872

Medium Risk
MEDIUM RISK
CVSS Score: 5.3
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
3 months ago
July 07, 2026 at 04:02 PM UTC
Requests vulnerable to .netrc credentials leak via malicious URLs
0.0.1 - 0.12.01 and 0.12.1 - 2.32.3
0.0.1 - 0.12.01 and 0.12.1 - 2.32.3

Summary

Requests vulnerable to .netrc credentials leak via malicious URLs

Details

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).

References

https://github.com/psf/requests/pull/6965 https://seclists.org/fulldisclosure/2025/Jun/2

Impacted packages

Timeline

Published
3 months ago
July 07, 2026 at 04:02 PM UTC
Fixed (2.32.4)
1 year ago
June 09, 2025 at 04:43 PM UTC
Last Modified
3 months ago
July 07, 2026 at 05:47 PM UTC