CVE-2026-22702
Description
virtualenv is a tool for creating isolated virtual python environments. Prior to version 20.36.1, TOCTOU (Time-of-Check-Time-of-Use) vulnerabilities in virtualenv allow local attackers to perform symlink-based attacks on directory creation operations. An attacker with local access can exploit a race condition between directory existence checks and creation to redirect virtualenv's app_data and lock file operations to attacker-controlled locations. This issue has been patched in version 20.36.1.
How to fix
- virtualenv virtualenv20.36.1 or later
- virtualenv20.36.1 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| virtualenv virtualenv | v < 20.36.1 | 20.36.1 |
| virtualenvPyPI | v < 20.36.1 | 20.36.1 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.