CVE-2026-113718

GHSA-394h-qwmc-48pf · PYSEC-2026-4377 · published 20 Oct 2026 · updated 18 Nov 2026

virtualenv: Xonsh activation literals depend on the script decoding codec

8.1HighCVSS 7.1EPSS 0%1 public exploits

A public exploit exists; 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.9 and virtualenv 21.14.9.

virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, POSIX xonsh activation quote() uses repr() to write printable non-ASCII prompt or destination data into UTF-8 activate.xsh, while xonsh can read that script using $XONSH_ENCODING. Under a legacy multibyte codec such as GBK or Big5, a UTF-8 trail byte can consume the backslash before an adjacent quote, allowing the literal to close and attacker-influenced statements to execute when the user sources the generated script. This issue is fixed in version 21.14.9.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
pypa<21.14.9
virtualenvvirtualenv>=21.3.0 <21.14.921.14.9
pypi: virtualenv<21.14.9, >=21.3.0 <21.14.921.14.9

Exploit evidence

1 public sources

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-113718 severity on Zeptric[![CVE-2026-113718](https://zeptric.io/badge/cve/CVE-2026-113718.svg)](https://zeptric.io/cve/CVE-2026-113718)