Is requests 2.31.0 vulnerable?
requests 2.31.0, a Python package on PyPI. All 5 versions we track · PyPI page
Upgrade requests from 2.31.0 to 2.33.0 or later; that fixes all of them.
Known vulnerabilities in requests 2.31.0
-
Medium
CVSS 5.3
CVE-2024-47081: Requests vulnerable to .netrc credentials leak via malicious URLs
GHSA-9hjg-9r4m-mvj7 · published 9 Jun 2025 · fixed in 2.32.4
-
Medium
CVSS 5.6
CVE-2024-35195: Requests `Session` object does not verify requests after making first request with verify=False
GHSA-9wx4-h78v-vm56 · published 20 May 2024 · fixed in 2.32.0
-
Medium
CVSS 4.4
CVE-2026-25645: Requests has Insecure Temp File Reuse in its extract_zipped_paths() utility function
GHSA-gc5v-m9x4-r6x2 · published 25 Mar 2026 · fixed in 2.33.0
How to fix it
With requirements.txt:
# in requirements.txt: change the line to requests==2.33.0
pip install -r requirements.txt
- If it is an indirect dependency, upgrade the package that depends on it, or add a minimum version constraint for it (e.g. in constraints.txt, or as a dependency in pyproject.toml).
- Check the package's changelog for breaking changes (especially across major versions), update the lockfile with the package manager (never by hand), and run your tests.
Other versions of requests
Newest version we track without known advisories: 2.34.2.
Licence
requests 2.31.0 declares Apache-2.0 .
Check your whole project
requests is one package among hundreds in a lockfile. Upload your lockfile, or paste a public GitHub repository, and get every vulnerable package with the version that fixes it. Free, and no account needed.
Get emailed about new advisories for requests (free, no account)
About this data
Vulnerability data: OSV.dev, last checked 22 November 2026. Licence: deps.dev. AIssue checks the versions on this page every day. Severity comes from the advisory's own rating when it has one, else from its CVSS score.