CVE-2026-22702: Virtualenv

Medium severity, CVSS 4.5. EPSS: 0.1% probability of exploitation activity in the next 30 days.

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.

What to do

The record states a fixed version for the versions it affects. If you run one, update to it.

  • Virtualenv, before 20.36.1: fixed in 20.36.1

Affected products

Affected packages

Published 2026-01-10. Last modified 2026-06-17.