Vulnerabilities in pkg:pypi/requests
PACKAGECVE-2026-25645 is a MODERATE (CVSS 4.4) requests has insecure temp file vulnerability (CWE-377: Insecure Temporary File) affecting Requests libraries in the PyPI ecosystem. The issue involves requests has insecure temp file reuse in its extract_zipped_paths() utility function. Remediation is available by upgrading affected packages to version 2.33.0.
pkg:pypi/requests
Vulnerability advisories affecting package pkg:pypi/requests. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-gc5v-m9x4-r6x2 | CVE-2026-25645 | MODERATE | Requests has Insecure Temp File Reuse in its extract_zipped_paths() utility function |
| GHSA-9wx4-h78v-vm56 | CVE-2024-35195 | MODERATE | Requests `Session` object does not verify requests after making first request with verify=False |
| GHSA-9hjg-9r4m-mvj7 | CVE-2024-47081 | MODERATE | Requests vulnerable to .netrc credentials leak via malicious URLs |
| GHSA-j8r2-6x86-q33q | CVE-2023-32681 | MODERATE | Unintended leak of Proxy-Authorization header in requests |
| GHSA-cfj3-7x9c-4p3h | CVE-2014-1829 | MODERATE | Exposure of Sensitive Information to an Unauthorized Actor in Requests |
| GHSA-652x-xj99-gmcc | CVE-2014-1830 | MODERATE | Exposure of Sensitive Information to an Unauthorized Actor in Requests |
| GHSA-x84v-xcm2-53pg | CVE-2018-18074 | HIGH | Insufficiently Protected Credentials in Requests |
| GHSA-pg2w-x9wp-vw92 | CVE-2015-2296 | MODERATE | Python Requests Session Fixation |
CVE-2026-25645 at a Glance
Security Impact
CVSS: 4.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N).
How to Fix CVE-2026-25645
To remediate this vulnerability, upgrade all affected Requests dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install requests>=2.33.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show requests
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-25645, inspect your installed packages using pip:
pip show requests
Analyze the terminal output to locate any version of Requests in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.33.0), your application is affected.
Note: The pip show requests command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-377: Insecure Temporary File, where creating and using insecure temporary files can leave application and system data vulnerable to attack. In Requests, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-25645 Affected Requests Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
requests
|
PyPI |
< 2.33.0
|
2.33.0
|
References
Frequently Asked Questions
What is CVE-2026-25645?
Which Requests versions are affected?
What version fixes CVE-2026-25645?
Is requests affected?
What is the CVSS score of CVE-2026-25645?
What CWE is associated with CVE-2026-25645?
How can I check PyPI dependencies for CVE-2026-25645?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gc5v-m9x4-r6x2",
"modified" : "2026-03-27T22:07:42Z",
"published" : "2026-03-25T16:56:28Z",
"aliases" : [ "CVE-2026-25645" ],
"summary" : "Requests has Insecure Temp File Reuse in its extract_zipped_paths() utility function",
"details" : "### Impact\nThe `requests.utils.extract_zipped_paths()` utility function uses a predictable filename when extracting files from zip archives into the system temporary directory. If the target file already exists, it is reused without validation. A local attacker with write access to the temp directory could pre-create a malicious file that would be loaded in place of the legitimate one.\n\n### Affected usages\n**Standard usage of the Requests library is not affected by this vulnerability.** Only applications that call `extract_zipped_paths()` directly are impacted.\n\n### Remediation\nUpgrade to at least Requests 2.33.0, where the library now extracts files to a non-deterministic location.\n\nIf developers are unable to upgrade, they can set `TMPDIR` in their environment to a directory with restricted write access.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "requests"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.33.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/psf/requests/security/advisories/GHSA-gc5v-m9x4-r6x2"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-25645"
}, {
"type" : "WEB",
"url" : "https://github.com/psf/requests/commit/66d21cb07bd6255b1280291c4fafb71803cdb3b7"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/psf/requests"
}, {
"type" : "WEB",
"url" : "https://github.com/psf/requests/releases/tag/v2.33.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-377" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-03-25T16:56:28Z",
"nvd_published_at" : "2026-03-25T17:16:52Z"
}
}