Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. requests
  4. ›
  5. CVE-2024-47081

CVE-2024-47081: Requests vulnerable to .netrc credentials leak via malicious URLs

June 9, 2025

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.

References

  • github.com/advisories/GHSA-9hjg-9r4m-mvj7
  • github.com/psf/requests
  • github.com/psf/requests/commit/96ba401c1296ab1dda74a2365ef36d88f7d144ef
  • github.com/psf/requests/pull/6965
  • github.com/psf/requests/security/advisories/GHSA-9hjg-9r4m-mvj7
  • nvd.nist.gov/vuln/detail/CVE-2024-47081
  • requests.readthedocs.io/en/latest/api/
  • seclists.org/fulldisclosure/2025/Jun/2

Code Behaviors & Features

Detect and mitigate CVE-2024-47081 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.32.4

Fixed versions

  • 2.32.4

Solution

Upgrade to version 2.32.4 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-522: Insufficiently Protected Credentials

Source file

pypi/requests/CVE-2024-47081.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:19:01 +0000.