Skip to content

CVE-2026-22709 vm2 has a Sandbox Escape

CriticalCVSS 10.0 EPSS 1.3%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: total

Description

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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
npm vm2(npm) < 3.10.2; <= 3.10.1 3.10.2 Fixed
vm2 project vm2 < 3.10.2 3.10.2 Fixed
patriksimek vm2 = < 3.10.2 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
patriksimek vm2 = < 3.10.2 No fix listed
npm vm2(npm) <= 3.10.1 No fix listed
vm2 project vm2 < 3.10.2 3.10.2
npm vm2(npm) < 3.10.2 3.10.2

References