virtualenv: Xonsh activation literals depend on the script decoding codec
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.
- Products
- virtualenv
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-113718
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 13:57 UTC · Revision 2
Source evidence
virtualenv: Xonsh activation literals depend on the script decoding codec
core-cve · Original sourcePublished 20 Oct 2026, 19:39 UTC
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.
cve:CVE-2026-113718
virtualenv
Fixed versions: Not specified
Complete source record
{
"id": "29f1c1b0959deb7e1c8be1605603bbd062659945cdcbcfcaa89f96dfd12b8f02",
"url": "https://www.cve.org/CVERecord?id=CVE-2026-113718",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "virtualenv: Xonsh activation literals depend on the script decoding codec",
"summary": "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.",
"evidence": "cve:CVE-2026-113718",
"products": [
{
"name": {
"value": "virtualenv",
"evidence": "/containers/cna/affected/0/product"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2026-113718",
"aliases": [
"CVE-2026-113718"
],
"metrics": [
{
"cvssV4_0": {
"version": "4.0",
"baseScore": 7.1,
"attackVector": "LOCAL",
"baseSeverity": "HIGH",
"vectorString": "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",
"userInteraction": "ACTIVE",
"attackComplexity": "HIGH",
"attackRequirements": "PRESENT",
"privilegesRequired": "NONE",
"subIntegrityImpact": "NONE",
"vulnIntegrityImpact": "HIGH",
"subAvailabilityImpact": "NONE",
"vulnAvailabilityImpact": "HIGH",
"subConfidentialityImpact": "NONE",
"vulnConfidentialityImpact": "HIGH"
}
}
],
"affected": [
{
"vendor": "pypa",
"product": "virtualenv",
"versions": [
{
"status": "affected",
"version": "< 21.14.9"
}
]
}
],
"modified": "2026-10-27T13:33:36.583Z",
"provider": "cve",
"references": [
"https://github.com/pypa/virtualenv/security/advisories/GHSA-394h-qwmc-48pf",
"https://github.com/pypa/virtualenv/pull/3432",
"https://github.com/pypa/virtualenv/commit/e5fc2e6e189a877ff559af288919e3525d13e5e0",
"https://github.com/pypa/virtualenv/releases/tag/21.14.9"
],
"provider_metadata": {
"adp": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2026-113718",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "total"
}
],
"version": "2.0.3",
"timestamp": "2026-10-27T13:33:30.399430Z"
}
}
}
],
"references": [
{
"url": "https://github.com/pypa/virtualenv/security/advisories/GHSA-394h-qwmc-48pf",
"tags": [
"exploit"
]
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-10-27T13:33:36.583Z"
}
}
],
"cna": {
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M",
"dateUpdated": "2026-10-20T19:39:52.633Z"
}
}
},
"related_cves": [
{
"value": "CVE-2026-113718",
"evidence": "/cveMetadata/cveId"
}
],
"security_relevant": true,
"severity_evidence": "/containers/cna/metrics"
},
"source_id": "core-cve",
"document_id": 392600,
"published_at": "2026-10-20T19:39:52.633+00:00"
}