Insecure Temporary File Affecting requests package, versions [,2.33.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.18% (8th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-REQUESTS-15763443
  • published25 Mar 2026
  • disclosed25 Mar 2026
  • creditJaycelation

Introduced: 25 Mar 2026

CVE-2026-25645  (opens in a new tab)
CWE-377  (opens in a new tab)

How to fix?

Upgrade requests to version 2.33.0 or higher.

Overview

Affected versions of this package are vulnerable to Insecure Temporary File via the extract_zipped_paths function. An attacker can leverage unauthorized file replacement by pre-creating a malicious file in the system's temporary directory prior to extraction.

Note: Only applications that call extract_zipped_paths() directly are impacted.

Workaround

This vulnerability can be mitigated by setting the TMPDIR environment variable to a directory with restricted write access.

CVSS Base Scores

version 4.0
version 3.1