{"id":"CVE-2026-22709","published":"2026-01-26T21:32:00Z","modified":"2026-01-27T21:42:27Z","title":"vm2 has a Sandbox Escape","vendor":"patriksimek","product":"vm2","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0127,"percentile":0.70524,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-913","name":"Improper Control of Dynamically-Managed Code Resources"},{"id":"CWE-693","name":"Protection Mechanism Failure"}],"references":[{"url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-99p7-6v5w-7xg8","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/patriksimek/vm2/commit/4b009c2d4b1131c01810c1205e641d614c322a29","tags":["x_refsource_MISC"]},{"url":"https://github.com/patriksimek/vm2/releases/tag/v3.10.2","tags":["x_refsource_MISC"]}],"priority":{"score":21.0,"factors":[{"name":"EPSS percentile","points":14.1},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"patriksimek","affectedVersions":[{"vendor":"patriksimek","product":"vm2","versions":["< 3.10.2"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-01-27T21:42:17.760812Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"vm2","vulnerableRanges":["<3.10.2"],"patched":["3.10.2"],"from":["GHSA-99p7-6v5w-7xg8"],"provenance":"source"}],"summary":{"text":"A sandbox escape in vm2, an open source Node.js vm/sandbox, exists in its Promise handling: the callback sanitization applied to the sandbox's local Promise.prototype.then and catch is missing for the global Promise.prototype.then, which async function return values use. An attacker who can get code executed inside the sandbox can use this bypass to escape it and run arbitrary code, with no authentication or user interaction required and network access as the delivery path.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:03:31Z"},"euvd":{"id":"EUVD-2026-4660","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-patriksimek-vm2-cve-2026-22709","children":[{"from":"CVE-2026-22709","to":"CVE-2026-44001","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"The fix for CVE-2026-22709 (v3.10.2) only sanitized the onRejected callback in .then() and .catch() overrides and did not address the executor-to-unhandledRejection path.","from":"CVE.org","in":"CVE-2026-44001"},{"kind":"osv-related","provenance":"source","id":"GHSA-hw58-p9xv-2mjh","via":"reference","url":"https://github.com/advisories/GHSA-99p7-6v5w-7xg8"}]},{"from":"CVE-2026-22709","to":"CVE-2026-44009","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/setup-sandbox.js"],"commits":["https://github.com/patriksimek/vm2/commit/4b009c2d4b1131c01810c1205e641d614c322a29","https://github.com/patriksimek/vm2/commit/c33c2bb19a822847f4e01d8d87b28dd5b2c86b3e"],"basis":"shared function","functions":["then"]}]}],"packageHistory":[{"cve":"CVE-2023-32313","published":"2023-05-15","fixed":"3.9.18","kev":false},{"cve":"CVE-2023-32314","published":"2023-05-15","fixed":"3.9.18","kev":false},{"cve":"CVE-2023-37466","published":"2023-07-13","fixed":"3.10.0","kev":false},{"cve":"CVE-2026-22709","published":"2026-01-26","fixed":"3.10.2","kev":false},{"cve":"CVE-2026-24120","published":"2026-05-04","fixed":"3.10.5","kev":false,"link":{"from":"CVE-2026-22709","to":"CVE-2026-24120","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:vm2","fromFixed":"3.10.2","toFixed":"3.10.5","daysApart":98}]}},{"cve":"CVE-2026-26956","published":"2026-05-04","fixed":"3.10.5","kev":false,"link":{"from":"CVE-2026-22709","to":"CVE-2026-26956","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:vm2","fromFixed":"3.10.2","toFixed":"3.10.5","daysApart":98}]}},{"cve":"CVE-2026-24118","published":"2026-05-04","fixed":"3.11.0","kev":false}],"package":"npm:vm2"}}