[ CVE-2026-113732 · Published 20 Oct 2026 ]

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

CVSS 7.8 EPSS <1%Fix available

[ Description ]Official description

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.

[ Fixes ]Fixes and patches

  • virtualenv 21.14.2Fixed version · GitHub Advisories · pip package virtualenv: upgrade to 21.14.2 or later (affected <= 21.14.1)

[ Packages ]Affected open-source packages