Skip to content
Heist/ feed
Back to feed
Critical

vm2 has a Sandbox Escape

Type: advisorySources: OSV

vm2 is an open source vm/sandbox for Node.js. In vm2 prior to version 3.10.2, `Promise.prototype.then` `Promise.prototype.catch` callback sanitization can be bypassed. This allows attackers to escape the sandbox and run arbitrary code. In lib/setup-sandbox.js, the callback function of `localPromise.prototype.then` is sanitized, but `globalPromise.prototype.then` is not sanitized. The return value of async functions is `globalPromise` object. Version 3.10.2 fixes the issue.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-22709
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 17:11 UTC · Revision 1

Source evidence

vm2 has a Sandbox Escape

core-osv · Original source

Published 26 Jan 2026, 21:32 UTC

vm2 is an open source vm/sandbox for Node.js. In vm2 prior to version 3.10.2, `Promise.prototype.then` `Promise.prototype.catch` callback sanitization can be bypassed. This allows attackers to escape the sandbox and run arbitrary code. In lib/setup-sandbox.js, the callback function of `localPromise.prototype.then` is sanitized, but `globalPromise.prototype.then` is not sanitized. The return value of async functions is `globalPromise` object. Version 3.10.2 fixes the issue.

osv:CVE-2026-22709
Complete source record
{
  "id": "57fda8ad1ba32b90d1df96a99b0f963ecf01843ecfac704c0f4503f02b02e5db",
  "url": "https://osv.dev/vulnerability/CVE-2026-22709",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "vm2 has a Sandbox Escape",
    "summary": "vm2 is an open source vm/sandbox for Node.js. In vm2 prior to version 3.10.2, `Promise.prototype.then` `Promise.prototype.catch` callback sanitization can be bypassed. This allows attackers to escape the sandbox and run arbitrary code. In lib/setup-sandbox.js, the callback function of `localPromise.prototype.then` is sanitized, but `globalPromise.prototype.then` is not sanitized. The return value of async functions is `globalPromise` object. Version 3.10.2 fixes the issue.",
    "evidence": "osv:CVE-2026-22709",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2026-22709",
      "aliases": [
        "CVE-2026-22709",
        "GHSA-99p7-6v5w-7xg8"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/patriksimek/vm2",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "4b009c2d4b1131c01810c1205e641d614c322a29"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "3.10.2"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "4b009c2d4b1131c01810c1205e641d614c322a29"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "4b009c2d4b1131c01810c1205e641d614c322a29"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v3.10.2"
                  },
                  {
                    "cpe": "cpe:2.3:a:vm2_project:vm2:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "3.10.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v3.10.1",
            "v3.10.0",
            "3.9.19",
            "3.9.18",
            "3.9.17",
            "3.9.16",
            "3.9.15",
            "3.9.14",
            "3.9.13",
            "3.9.12",
            "3.9.11",
            "3.9.10",
            "3.9.9",
            "3.9.8",
            "3.9.7",
            "3.9.6",
            "3.9.5",
            "3.9.4",
            "3.9.3",
            "v3.9.2",
            "v3.9.1",
            "v3.9.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-22709.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:37.860106079Z",
      "provider": "osv",
      "references": [
        "https://github.com/patriksimek/vm2/releases/tag/v3.10.2",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22709.json",
        "https://github.com/patriksimek/vm2/security/advisories/GHSA-99p7-6v5w-7xg8",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-22709",
        "https://github.com/patriksimek/vm2/commit/4b009c2d4b1131c01810c1205e641d614c322a29"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-693",
          "CWE-913",
          "CWE-94"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22709.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-22709",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 505175,
  "published_at": "2026-01-26T21:32:00.215+00:00"
}