{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "21.14.9"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "fixed": "e5fc2e6e189a877ff559af288919e3525d13e5e0"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "21.14.9",
                "range": [
                  {
                    "fixed": "e53e30b9c8fbc3f4f502223819449ddc970fbbe8"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "e53e30b9c8fbc3f4f502223819449ddc970fbbe8"
            },
            {
              "fixed": "e5fc2e6e189a877ff559af288919e3525d13e5e0"
            }
          ],
          "repo": "https://github.com/pypa/virtualenv",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-394h-qwmc-48pf"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-94"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/113xxx/CVE-2026-113718.json"
  },
  "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.",
  "id": "CVE-2026-113718",
  "modified": "2026-10-21T10:31:07.555773245Z",
  "published": "2026-10-20T19:39:52.633Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/113xxx/CVE-2026-113718.json"
    },
    {
      "type": "FIX",
      "url": "https://github.com/pypa/virtualenv/commit/e5fc2e6e189a877ff559af288919e3525d13e5e0"
    },
    {
      "type": "FIX",
      "url": "https://github.com/pypa/virtualenv/pull/3432"
    },
    {
      "type": "WEB",
      "url": "https://github.com/pypa/virtualenv/releases/tag/21.14.9"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/pypa/virtualenv/security/advisories/GHSA-394h-qwmc-48pf"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-113718"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "virtualenv: Xonsh activation literals depend on the script decoding codec"
}