Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-92935
Published:September 17, 2026
Updated:September 22, 2026
vm2 is a sandbox for running untrusted Node.js code. In versions >= 3.11.4 and <= 3.11.6, the NodeVM constructor computes "hasRealRequireConfig" with "typeof requireOpts === 'object' && requireOpts !== null", so an array-shaped "require" value (for example "require: []") satisfies the guard that is meant to reject nesting without an explicit require configuration. "makeResolverFromLegacyOptions()" then destructures the array into undefined option fields and returns a resolver containing only "NESTING_OVERRIDE.vm2". As a result, an attacker who can supply JavaScript executed by a NodeVM configured with truthy "nesting" and an array-shaped "require" (e.g. "new NodeVM({nesting: true, require: []})") can require the host "vm2" module, create an inner NodeVM with an attacker-chosen builtin allowlist (such as "child_process"), and execute arbitrary commands with the privileges of the host Node.js process, escaping the sandbox. Outer builtin restrictions do not constrain the attacker-created inner NodeVM. This issue is fixed in vm2 3.11.7.
Affected Packages
https://github.com/patriksimek/vm2.git (GITHUB):
Affected version(s) =3.11.6 <v3.11.7
Fix Suggestion:
Update to version v3.11.7
vm2 (NPM):
Affected version(s) >=3.11.4 <3.11.7
Fix Suggestion:
Update to version 3.11.7
Do you need more information?
Contact Us
CVSS v4
Base Score:
9.5
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
PRESENT
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
HIGH
Subsequent System Integrity
HIGH
Subsequent System Availability
HIGH
CVSS v3
Base Score:
9
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
CHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Improper Control of Dynamically-Managed Code Resources
EPSS
Base Score:
0.50