CVE-2026-22709 Details
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.
A critical vulnerability in vm2, an open-source virtual machine/sandbox for Node.js, allows for arbitrary code execution by escaping the sandbox. This issue affects vm2 versions through 3.10.0. The vulnerability arises because the sanitization of callbacks in 'Promise.prototype.then' and 'Promise.prototype.catch' can be bypassed. While the callback function of 'localPromise.prototype.then' is properly sanitized, 'globalPromise.prototype.then' is not. As a result, attackers can exploit this oversight to execute code outside the intended sandbox environment.
Users can upgrade to vm2 version 3.10.2 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 27, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/patriksimek/vm2/commit/4b009c2d4b1131c01810c1205e641d614c322a29 | [email protected] | Patch |
| https://github.com/patriksimek/vm2/releases/tag/v3.10.2 | [email protected] | ProductRelease Notes |
| https://github.com/patriksimek/vm2/security/advisories/GHSA-99p7-6v5w-7xg8 | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-693 | Protection Mechanism Failure | [email protected] |
| CWE-913 | Improper Control of Dynamically-Managed Code Resources | [email protected] |
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| vm2 project vm2 | < 3.10.2 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 17, 2026 | Reanalysis | [email protected] |
| Feb 17, 2026 | Initial Analysis | [email protected] |
| Jan 26, 2026 | New CVE Received | [email protected] |