Skip to main content
← All vulnerabilities
CVE-2024-47081PYSEC-2026-1872GHSA-9HJG-9R4M-MVJ7

Requests vulnerable to .netrc credentials leak via malicious URLs

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.32.4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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 should upgrade to version 2.32.4 to receive a fix. For older versions of Requests, use of the .netrc file can be disabled with `trust_env=False` on one's Requests Session.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • psf requests

    fixed in 2.32.4

  • requestsPyPI

    fixed in 2.32.4

References 5

GitHub · psf/requests

requests.readthedocs.io

seclists.org