{"id":"BIT-virtualenv-2026-113718","summary":"virtualenv: Xonsh activation literals depend on the script decoding codec","details":"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.","aliases":["CVE-2026-113718","GHSA-394h-qwmc-48pf"],"modified":"2026-10-29T10:55:57.228294866Z","published":"2026-10-29T09:00:33.381Z","database_specific":{"cpes":["cpe:2.3:a:virtualenv:virtualenv:*:*:*:*:*:*:*:*"],"severity":"High"},"references":[{"type":"WEB","url":"https://github.com/pypa/virtualenv/commit/e5fc2e6e189a877ff559af288919e3525d13e5e0"},{"type":"WEB","url":"https://github.com/pypa/virtualenv/pull/3432"},{"type":"WEB","url":"https://github.com/pypa/virtualenv/releases/tag/21.14.9"},{"type":"WEB","url":"https://github.com/pypa/virtualenv/security/advisories/GHSA-394h-qwmc-48pf"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-113718"}],"affected":[{"package":{"name":"virtualenv","ecosystem":"Bitnami","purl":"pkg:bitnami/virtualenv"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"21.14.9"}]}],"database_specific":{"source":"https://github.com/bitnami/vulndb/tree/main/data/virtualenv/BIT-virtualenv-2026-113718.json"},"severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"}]}],"schema_version":"1.9.2"}