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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- https://github.com/patriksimek/vm2/security/advisories/GHSA-99p7-6v5w-7xg8 exploit vendor-advisory
- https://github.com/patriksimek/vm2/commit/4b009c2d4b1131c01810c1205e641d614c322a29 patch
- https://github.com/patriksimek/vm2/releases/tag/v3.10.2 product release-notes
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product