Vulnerability advisory

CVE-2024-47081

Requests vulnerable to .netrc credentials leak via malicious URLs

Published Updated OSV record ↗

Also known as GHSA-9hjg-9r4m-mvj7PYSEC-2026-1872

Severity
  • CVSS 3.xCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N

Affected versions

Repository

Affected commitsFixed by commit
GIT github.com/psf/requests ↗
All commits before 021dc729f0b71a3030cefdbec7fb57a0e80a6cfd021dc729f0b71a3030cefdbec7fb57a0e80a6cfd
Not specified96ba401c1296ab1dda74a2365ef36d88f7d144ef
Also listed as affected (119)
  • v2.32.3
  • v2.32.2
  • v2.32.1
  • v2.32.0
  • v2.31.0
  • v2.30.0
  • v2.29.0
  • v2.28.2
  • v2.28.1
  • v2.28.0
  • v2.27.1
  • v2.27.0
  • v2.26.0
  • v2.25.1
  • v2.25.0
  • v2.24.0
  • v2.20.1
  • v2.19.1
  • v2.19.0
  • v2.18.3
  • v2.18.2
  • v2.17.3
  • v2.17.1
  • v2.17.0
  • v2.16.5
  • v2.16.4
  • v2.16.2
  • v2.16.1
  • v2.16.0
  • v2.15.1
  • v2.16.3
  • v2.15.0
  • v2.14.2
  • v2.14.1
  • v2.14.0
  • v2.12.5
  • v2.12.4
  • v2.12.3
  • v2.12.2
  • v2.12.0
  • v2.12.1
  • v2.11.1
  • v2.11.0
  • v2.10.0
  • v2.9.2
  • v2.9.1
  • v2.9.0
  • v2.8.1
  • v2.8.0
  • v2.6.0
  • v2.5.2
  • v2.5.1
  • v2.5.0
  • v2.4.3
  • v2.4.2
  • v2.4.1
  • v2.4.0
  • v2.3.0
  • v2.2.1
  • v2.2.0
  • v2.1.0
  • v2.0.1
  • v2.0.0
  • v2.0
  • 2.0
  • v1.2.3
  • v1.2.2
  • v1.2.1
  • v1.2.0
  • v1.1.0
  • v1.0.4
  • v1.0.3
  • v1.0.2
  • v1.0.1
  • v1.0.0
  • v0.14.2
  • v0.14.0
  • v0.14.1
  • v0.13.9
  • v0.13.7
  • v0.13.6
  • v0.13.5
  • v0.13.4
  • v0.13.3
  • v0.13.2
  • v0.13.1
  • v0.13.0
  • v0.12.1
  • v0.12.0
  • v0.11.1
  • v0.10.8
  • v0.10.7
  • v0.10.6
  • v0.10.5
  • v0.10.4
  • v0.10.3
  • v0.10.2
  • v0.10.1
  • v0.10.0
  • v0.9.3
  • v0.9.1
  • v0.9.0
  • v0.8.9
  • v0.8.8
  • v0.6.4
  • v0.6.3
  • v0.5.1
  • v0.5.0
  • v0.4.1
  • v0.4.0
  • v0.3.4
  • v0.3.3
  • v0.3.2
  • v0.3.0
  • v0.2.4
  • v0.2.3
  • v0.2.2
  • v0.2.1
  • v0.2.0

Description

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.

References

  • Codex
  • Claude Code
  • VS Code
  • GitHub Copilot
  • Cursor
  • Cline
  • Windsurf
  • Google Anti-gravity
  • OpenCode
  • Pi
  • Gemini CLI
  • Hermes Agent
  • Zed
  • Junie
  • Qwen Code
  • Kiro
  • Kilo Code
  • Factory Droid

Set up GitHits for your agents

Run this command:

<> bash
npx githits@latest init

What happens next:

  1. Opens your browser to authorize GitHits
  2. Asks whether to set up GitHits at the user or project level
  3. Detects your supported AI coding tools
  4. Lets you choose which tools to configure
  5. Configures the selected tools