Live threats

All CVEs / Virtualenv

CVE-2026-115586Virtualenv

High 7.1

Priority
43
CVSS 4.0
7.1
EPSS
—
Auth required
Yes
Published
Oct 23, 2026
Updated
Nov 24, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-78
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

virtualenv is a tool for creating isolated virtual python environments. From 21.14.9 until 21.14.13, the bash bin/activate script can copy an attacker-controlled --prompt value into PS1 without escaping dollar signs or backticks when both promptvars and POSIX mode are disabled during activation. Re-enabling promptvars, running set -o posix, or starting an interactive child bash that inherits the exported PS1 can then expand command substitution in the stored VIRTUAL_ENV_PROMPT value and execute commands as the user who activates the environment. This issue is fixed in version 21.14.13.

Original NVD text.

What to do

  1. Apply the vendor's security update for Virtualenv.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI virtualenv ≥ 21.14.9 < 21.14.13 21.14.13 pip install "virtualenv>=21.14.13"
PyPI virtualenv ≥ 21.14.9 < 21.14.13 21.14.13 pip install "virtualenv>=21.14.13"

Per OSV / GitHub Advisories (GHSA-cx6f-vjhg-g3cc, PYSEC-2026-4402). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
virtualenvvirtualenv≥ 21.14.9 < 21.14.13

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.