Virtualenv: Prior to 21.14.9, PipInstall._uninstall_previous_version() accepts existing seed-package metadata and
Affects virtualenvSource GCVE Database
Not known to be exploited · CVSS 4.5 Medium : upgrade to 21.14.9 when convenient.
Data as of 18 Nov 2026, 13:07 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 4.5 |
|---|
- Patch
- Available – fixed in 21.14.9
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:LExploitation evidence
Disclosed: evidence found.
CVE published 20 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 17 Nov 2026.
What to do
Upgrade virtualenv to 21.14.9.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
PyPIvirtualenvpkg:pypi/virtualenvOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade virtualenv to version 21.14.9 or later, where this vulnerability is fixed. Avoid reusing virtual environments that contain existing package metadata if upgrading is not immediately possible. Creating fresh environments or using the --clear option during environment creation prevents this deletion path. No other specific mitigations are indicated.
Description
Virtualenv versions prior to 21.14.9 contain a vulnerability in the PipInstall._uninstall_previous_version() function where existing seed-package metadata is accepted without proper validation. This can lead to deletion of files outside the intended environment directory during environment creation if the environment is reused and contains manipulated distribution metadata. Fresh environments or those created with the --clear option are not affected. The issue is fixed in version 21.14.9.
References
- github.com/pypa/virtualenv/releases/tag/21.14.9 (opens in a new tab)
- github.com/pypa/virtualenv/commit/e3cea6fa10a50fa29cf1fdddd772458fba076d5f (opens in a new tab)
- github.com/pypa/virtualenv/pull/3428 (opens in a new tab)
- github.com/pypa/virtualenv/security/advisories/GHSA-hhxq-47xx-j5xx (opens in a new tab)