# PYSEC-2026-4382: virtualenv is a tool for creating isolated virtual python environments

- Database: PyPA
- Also known as: BIT-VIRTUALENV-2026-113723
- Published: 2026-10-20
- Modified: 2026-11-18

## Tracked as

- [CVE-2026-113723](https://cve.now/CVE-2026-113723.md): virtualenv: Bash prompt values can change meaning under older compatibility modes

## Also published as

- [GHSA-6W3R-XR62-4XCP](https://cve.now/GHSA-6W3R-XR62-4XCP.md) (GitHub)

## Affected versions

- virtualenv (PyPI): from 20.0.0, fixed in 21.14.9

## Description

virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, caller-supplied prompt text can become executable syntax in the bash activation prompt. An attacker must influence the value passed to virtualenv, and a user must subsequently activate the environment and draw the prompt. This vulnerability is fixed in 21.14.9.

## References

- https://github.com/pypa/virtualenv/releases/tag/21.14.9
- https://github.com/pypa/virtualenv/commit/5f48d711731311428aebfae61d46957762155b22
- https://github.com/pypa/virtualenv/pull/3418
- https://github.com/pypa/virtualenv/security/advisories/GHSA-6w3r-xr62-4xcp

Page: https://cve.now/PYSEC-2026-4382

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
