virtualenv vulnerabilities

Virtual Python Environment builder

Registry
PyPI
Latest
21.15.9
License
MIT

24 known advisories

The latest version, 21.15.9, is not affected by any of them. Projects on older versions may be.

Update to the latest version:pip install 'virtualenv>=21.15.9'

Is your project on an affected virtualenv?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Security advisories for virtualenv

  • MediumCVE-2026-113713GHSA-4f8h-vr72-p32c23 Oct 2026

    virtualenv: Temporary app-data can leave dangling seed package links

    Affected
    >=21.14.8 <21.14.10
    Fixed in
    21.14.10
  • LowCVE-2026-113717GHSA-cx28-75q4-x26q23 Oct 2026

    virtualenv: Pip seeding with download omits wheel digest verification

    Affected
    <21.14.9
    Fixed in
    21.14.9
  • LowCVE-2026-113714GHSA-494p-63j8-28p323 Oct 2026

    virtualenv: Downloaded wheel selection and caching precede verification

    Affected
    <21.14.9
    Fixed in
    21.14.9
  • HighCVE-2026-113718GHSA-394h-qwmc-48pf23 Oct 2026

    virtualenv: Xonsh activation literals depend on the script decoding codec

    Affected
    <21.14.9
    Fixed in
    21.14.9
  • MediumCVE-2026-113720GHSA-fc2g-4w5p-6whm23 Oct 2026

    virtualenv: Seeded files retain permissions from an older cache

    Affected
    <21.14.9
    Fixed in
    21.14.9
  • HighCVE-2026-113723GHSA-6w3r-xr62-4xcp23 Oct 2026

    virtualenv: Bash prompt values can change meaning under older compatibility modes

    Affected
    <21.14.9
    Fixed in
    21.14.9
  • LowCVE-2026-113715GHSA-qmx5-4p3x-wvqf23 Oct 2026

    virtualenv: Venv configuration readback can reinterpret path boundaries

    Affected
    <21.14.9
    Fixed in
    21.14.9
  • MediumCVE-2026-113719GHSA-hhxq-47xx-j5xx23 Oct 2026

    virtualenv: Seed replacement does not contain metadata deletion paths

    Affected
    <21.14.9
    Fixed in
    21.14.9
  • HighCVE-2026-115586GHSA-cx6f-vjhg-g3cc23 Oct 2026

    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)

    Affected
    >=21.14.9 <21.14.13
    Fixed in
    21.14.13
  • MediumCVE-2026-113721GHSA-558c-9hv2-4prj22 Oct 2026

    virtualenv: Generated files can follow existing destination links

    Affected
    <21.14.9
    Fixed in
    21.14.9
  • MediumCVE-2026-113716GHSA-cw65-gx24-rc8221 Oct 2026

    virtualenv: Builtin creation follows linked environment directories

    Affected
    <21.14.9
    Fixed in
    21.14.9
  • MediumCVE-2026-113724GHSA-43mp-35q3-x3fq21 Oct 2026

    virtualenv: Deletion recovery can change a symlink target's mode

    Affected
    <21.14.9
    Fixed in
    21.14.9
  • HighCVE-2026-113722GHSA-c978-59m8-c77v21 Oct 2026

    virtualenv: Generated POSIX console launchers interpret destination paths as shell syntax

    Affected
    <21.14.9
    Fixed in
    21.14.9
  • HighCVE-2026-113725GHSA-vxj4-q4g9-crj721 Oct 2026

    virtualenv bash activate runs commands from an environment name with a backslash before $

    Affected
    <21.14.7
    Fixed in
    21.14.7
  • HighCVE-2026-113726GHSA-5vjq-rrrf-7h2q21 Oct 2026

    virtualenv activate runs commands from the environment name in zsh with PROMPT_SUBST

    Affected
    <21.14.4
    Fixed in
    21.14.4
  • HighCVE-2026-113732GHSA-c947-3pg5-gm8q21 Oct 2026

    virtualenv activate.fish runs commands from a path or prompt with a backslash before a quote

    Affected
    <21.14.2
    Fixed in
    21.14.2
  • HighCVE-2026-113776GHSA-8rjx-v5ww-45pp21 Oct 2026

    virtualenv activation scripts run code from a path that contains a placeholder name

    Affected
    >=20.26.6 <21.14.2
    Fixed in
    21.14.2
  • HighCVE-2026-102925GHSA-p58f-9548-mpm21 Oct 2026

    virtualenv bash and fish activation scripts execute commands embedded in paths

    Affected
    <21.7.13
    Fixed in
    21.7.13
  • HighCVE-2026-102937GHSA-x78j-v8h9-3j2q1 Oct 2026

    virtualenv: Command injection via --prompt in activate.bat (batch activator)

    Affected
    <21.7.12
    Fixed in
    21.7.12
  • HighCVE-2026-102930GHSA-94p9-xgh2-xp4530 Sept 2026

    virtualenv: Downloaded seed wheels (pip/setuptools) are not integrity-checked before use

    Affected
    <21.7.12
    Fixed in
    21.7.12
  • MediumCVE-2026-102938GHSA-9h9j-4vrj-gf7g30 Sept 2026

    virtualenv writes prompt values into pyvenv.cfg without sanitizing line boundaries, allowing configuration injection

    Affected
    <21.7.11
    Fixed in
    21.7.11
  • MediumCVE-2026-22702GHSA-597g-3phw-698613 Jan 2026

    virtualenv Has TOCTOU Vulnerabilities in Directory Creation

    Affected
    <20.36.1
    Fixed in
    20.36.1
  • HighCVE-2024-53899GHSA-rqc4-2hc7-8c8v24 Nov 2024

    virtualenv allows command injection through activation scripts for a virtual environment

    Affected
    <20.26.6
    Fixed in
    20.26.6
  • MediumCVE-2011-4617GHSA-3jhc-wjqf-5f2c17 May 2022

    Virtualenv Allows Symlink Attack on /tmp/

    Affected
    <1.5
    Fixed in
    1.5

Is your virtualenv version vulnerable?

Which of your client projects still run an old virtualenv?

NPMscan reads the requirements.txt, poetry.lock, uv.lock and Pipfile.lock in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other PyPI packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the PyPI registry.