Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-22709
January 26, 2026
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.
Affected Packages
https://github.com/patriksimek/vm2.git (GITHUB):
Affected version(s) >=v3.9.0 <v3.10.2
Fix Suggestion:
Update to version v3.10.2
vm2 (NPM):
Affected version(s) >=0.1.0 <3.10.2
Fix Suggestion:
Update to version 3.10.2
Do you need more information?
Contact Us
CVSS v4
Base Score:
9.3
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
9.8
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Improper Control of Generation of Code ('Code Injection')
Protection Mechanism Failure
Improper Control of Dynamically-Managed Code Resources
EPSS
Base Score:
0.04