CVE-2026-113732

GHSA-c947-3pg5-gm8q · PYSEC-2026-4386 · published 20 Oct 2026 · updated 18 Nov 2026

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

7.8HighCVSS 7.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 21.14.2 and virtualenv 21.14.2.

virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.2, FishActivator inherits ViaTemplateActivator.quote(), which uses POSIX shlex.quote() even though fish interprets backslashes and single quotes differently. An attacker-influenced environment path, --prompt, or VIRTUALENV_PROMPT value containing a backslash before a quote can therefore terminate the generated fish literal and execute command substitution when the user sources activate.fish. This issue is fixed in version 21.14.2.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
pypa<21.14.2
virtualenvvirtualenv<21.14.221.14.2
pypi: virtualenv<21.14.221.14.2

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in virtualenv (PyPI), strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-113732 severity on Zeptric[![CVE-2026-113732](https://zeptric.io/badge/cve/CVE-2026-113732.svg)](https://zeptric.io/cve/CVE-2026-113732)