Arbitrary Code Injection Affecting virtualenv package, versions [21.14.8,21.14.9)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.18% (8th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-VIRTUALENV-21282486
  • published21 Oct 2026
  • disclosed20 Oct 2026
  • creditUnknown

Introduced: 20 Oct 2026

NewCVE-2026-113718  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade virtualenv to version 21.14.9 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Code Injection via the quote method in src/virtualenv/activation/xonsh/__init__.py, which uses repr() to encode string literals written into the xonsh activation script. Because repr() does not guarantee ASCII-safe output, non-ASCII characters in paths (such as a virtualenv directory containing Unicode characters) can be written into the activation script in a form that xonsh, depending on its source encoding, may misparse, allowing an attacker who controls the virtualenv path to inject and execute arbitrary code when a user activates the environment.

CVSS Base Scores

version 4.0
version 3.1