// Security Advisory Triage
virtualenv 21.14.9–21.14.12 executes arbitrary code via PS1 prompt injection
GitHub advisories — pip · published 2026-10-24 16:00 UTC
WHAT CHANGEDCVE-2026-115586 published 23 October 2026. virtualenv versions 21.14.9 through 21.14.12 fail to escape the --prompt value in the bash activator's PS1 variable when promptvars is off, allowing shell command execution during prompt expansion. Fixed in 21.14.13.
WHY IT MATTERSAn attacker who controls the --prompt argument can inject shell commands that execute when the virtual environment is activated. This is a regression introduced in 21.14.9, so environments created or updated with those versions are exposed even if earlier versions were safe.
WHAT TO DOUpgrade virtualenv to 21.14.13 or later. Audit any virtual environments created with 21.14.9–21.14.12 where the --prompt value came from untrusted input, and recreate them with the patched version.
Model-reported confidence 95% (not measured accuracy)
Primary source ↗
written by anthropic/claude-sonnet-4.5
Show the reasoning — raw diff, triage verdict, confidence
RAW DIFF
+ghsa_id: GHSA-cx6f-vjhg-g3cc +summary: virtualenv: Bash activator leaves the --prompt value unescaped in PS1 when promptvars is off, so prompt expansion later executes it (regression in 21.14.9) +severity: high +published_at: 2026-10-23T20:47:16Z +cve_id: CVE-2026-115586 +vulnerabilities[].package.name: virtualenv +vulnerabilities[].first_patched_version: 21.14.13
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
| triage verdict | MATERIAL at 0.92, needed 0.5 |
|---|---|
| triage reasoning | virtualenv is a standard Python packaging tool; bash prompt injection in activator affects shell environments across dev and production. |
| signals | known exploitation not stated, but high severity + regression in widely-used tool · virtualenv is in dependency tree of normal Python services · new advisory with CVE assignment and patched version · bash prompt injection via unescaped PS1 — shell execution risk · first_patched_version specified: 21.14.13 |
| suppression | — |
| triage model | anthropic/claude-haiku-4.5 ($0.00000) |
| writer model | anthropic/claude-sonnet-4.5 ($0.00000) |