High severity7.8NVD Advisory· Published Oct 20, 2026· Updated Nov 17, 2026
CVE-2026-113718
CVE-2026-113718
Description
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 packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
virtualenvPyPI | < 21.14.9 | 21.14.9 |
Affected products
3- Range: <21.14.9
- osv-coords2 versions
< 21.14.9+ 1 more
- (no CPE)range: < 21.14.9
- (no CPE)range: < 21.15.1-1.1
Patches
Vulnerability mechanics
References
6- github.com/pypa/virtualenv/commit/e5fc2e6e189a877ff559af288919e3525d13e5e0nvdPatchWEB
- github.com/pypa/virtualenv/pull/3432nvdIssue TrackingPatchWEB
- github.com/pypa/virtualenv/security/advisories/GHSA-394h-qwmc-48pfnvdExploitVendor AdvisoryWEB
- github.com/advisories/GHSA-394h-qwmc-48pfghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-113718ghsaADVISORY
- github.com/pypa/virtualenv/releases/tag/21.14.9nvdRelease NotesWEB
News mentions
0No linked articles in our index yet.