A AegiFlow
MEDIUMCVSS 5.3EPSS 1.0%

CVE-2024-47081

Requests vulnerable to .netrc credentials leak via malicious URLs

Published
2025-06-09
Modified
2026-10-19
EPSS percentile
62%
Aliases
GHSA-9hjg-9r4m-mvj7
Sources
github-advisory

Summary

### 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

Affected packages

EcosystemPackageAffected versionsFixed versions
PyPIrequests—2.32.4

Remediation: Upgrade to 2.32.4 or later.

References

Includes data from the GitHub Advisory Database, licensed under CC-BY 4.0.

CVE® is a registered trademark of The MITRE Corporation. CVE content reproduced under the CVE Terms of Use; copyright designation © MITRE.

EPSS scores provided by the FIRST.org Exploit Prediction Scoring System.