CVE-2026-115586Virtualenv
High 7.1
Follow: this CVE · Virtualenv · Virtualenv We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Virtualenv.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| virtualenv | virtualenv | ≥ 21.14.9 < 21.14.13 |
Official advisories
- python313-virtualenv-21.15.1-1.1 on GA media · SUSE · openSUSE-SU-2026:12372-1 · Oct 30, 2026 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Issue Tracking Patch
- github.com Release Notes
- github.com Exploit Mitigation Vendor Advisory