CVE-2026-92935
CRITICAL 9.5CVSS 4.0vm2: NodeVM nesting guard accepts array-shaped require and permits host RCE
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.
- Published
- 17 Sep 2026
- Last modified
- 1 Oct 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Deferred
- Weakness
- CWE-913
- Also known as
- GHSA-8hr7-r645-pc6w
- Sources
- NVDJSONOSV GHSA-8hr7-r645-pc6wJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | CRITICAL 9.5 | CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 3.1 | CRITICAL 9.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | vm2 | >= 3.11.4, < 3.11.7 | 3.11.7 |
References
- https://github.com/patriksimek/vm2/commit/54b54b74a382577f0bcd0538c5bf99acdcd7f53b · WEB
- https://github.com/patriksimek/vm2/security/advisories/GHSA-8hr7-r645-pc6w · WEB
- https://www.vulncheck.com/advisories/vm2-nodevm-remote-code-execution-via-array-shaped-require · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-92935 · ADVISORY
- https://github.com/patriksimek/vm2/commit/05894eca1dc6a2b1a986f312c88255288a983d22 · WEB
- https://github.com/patriksimek/vm2 · PACKAGE
- https://github.com/patriksimek/vm2/releases/tag/v3.11.7 · WEB
History
- 25 Nov 2026 21:21 UTC · NVD: first stored (published 17 Sep 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 1 Oct 2026)