Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit malicious JS to NodeVM sandbox
-
Deliveryrequire('child_process') bypasses denylist
-
ExploitCall execSync/exec with attacker command
-
ExecutionExecute arbitrary commands on host
-
ImpactFull host compromise beyond sandbox
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture Protection mechanism completeness
|
| Exploitation Conditions | Exploitation requires the host application to have already run untrusted/attacker-controlled JavaScript inside a vm2 NodeVM instance AND to have configured that instance with builtin:['*'] (wildcard builtin allowance) or an explicit child_process entry in the allowed builtins. Under those conditions the sandboxed code simply calls require('child_process') and executes host commands - no authentication or user interaction beyond code submission. The key LIMITING factor is that this is NOT a default configuration: applications that omit child_process from their builtins allowlist (or allow no builtins) are not exploitable via this path. Additionally, vm2 is deprecated, so affected deployments are those still embedding the library to sandbox untrusted code. |
| Impact | The vendor-supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N with VC/VI/VA/SC/SI/SA all High = 10.0) frames this as maximum-severity unauthenticated remote code execution, and mechanically a sandbox escape that yields arbitrary host command execution does warrant near-top scores. However, the raw 10.0 is conditional: the description explicitly states exploitation only works 'when NodeVM is configured with builtin:["*"] or explicit child_process allowance.' That is a non-default host-application configuration, so the AT:N (no attack requirement) choice in the vendor vector is arguably too generous - AT:P is more honest. No EPSS score, no CISA KEV listing, and no explicit POC flag are provided in the input, so there is no evidence of active exploitation; the signals available are limited to VulnCheck's advisory and the vendor GHSA. Net: this is a genuinely high-priority issue for any deployment that runs untrusted code in vm2 NodeVM with builtins enabled (the flaw is trivial once that config is present - child_process was simply left off the DANGEROUS_BUILTINS denylist), but it is NOT a blanket 'every vm2 user is remotely ownable' situation. vm2 is also deprecated by its author, which shifts remediation toward migration rather than patching. Prioritize based on whether your app actually allows child_process or wildcard builtins. |
| Exploit ScenarioDerived | An application uses vm2 NodeVM to execute user-submitted JavaScript (e.g., an online code runner, serverless function evaluator, or plugin engine) and is configured with builtin:['*'] or an explicit child_process allowance. An attacker submits sandboxed code that calls require('child_process').execSync(...), which the DANGEROUS_BUILTINS denylist fails to block, executing arbitrary OS commands on the host. No public exploit was identified in the provided data, but the mechanism is documented in the VulnCheck and GHSA advisories and is trivial to reproduce. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 18, 2026
Sandbox escape in vm2 NodeVM before 3.12.1 allows unauthenticated remote attackers to execute arbitrary commands on the host, but only when the application has been configured to allow child_process via builtin:['*'] or an explicit allowlist entry. Exploitation requires the host application to run untrusted JavaScript inside a NodeVM instance and to have this misconfiguration; default configurations that do not allow child_process are not vulnerable. The vendor-supplied CVSS 4.0 vector rates this 10.0, while the independent CVSS 3.1 assessment reflects high attack complexity (AC:H) due to the required misconfiguration. No public exploit code or active exploitation has been identified at time of analysis.
RemediationAI
Vendor-released patch: upgrade to vm2 3.12.1 or later. Since vm2 is deprecated, consider migrating to a maintained sandboxing library such as isolated-vm. As a workaround, remove child_process from the builtins allowlist and avoid using builtin:['*']; instead, explicitly allow only the minimal set of required builtins. Note that this may break functionality that legitimately relies on child_process, so test thoroughly. Restricting untrusted JavaScript execution to fully isolated environments is also recommended. See advisory: https://github.com/patriksimek/vm2/security/advisories/GHSA-pq68-rvw4-xp4r.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
vm2 is a deprecated Node.js library for sandboxing untrusted JavaScript. The NodeVM component uses a DANGEROUS_BUILTINS denylist to block access to dangerous built-in modules like child_process, but the denylist omits child_process itself. This protection mechanism failure (CWE-693) means that when NodeVM is configured with builtin:['*'] or an explicit child_process entry, sandboxed code can require('child_process') and spawn host processes. The affected package (CPE cpe:2.3:a:patriksimek:vm2:*:*:*:*:*:*:*:*) includes all versions before 3.12.1. The vendor-supplied CVSS 4.0 vector rates this 10.0 (CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H), while the independent assessment uses CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H, reflecting the high attack complexity due to the required misconfiguration. vm2 has been deprecated and users are advised to migrate to alternatives such as isolated-vm.
Know when Vm2 gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Attacker-supplied sandbox code needs no auth (PR:N) but exploitation depends on a non-default builtin/child_process allowance (AC:H); sandbox escape to host is S:C with full C/I/A:H.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
vm2 NodeVM versions before 3.12.1 contain a sandbox escape vulnerability where the DANGEROUS_BUILTINS denylist omits child_process despite blocking other host-spawning modules. Attackers can require child_process and execute arbitrary commands on the host system when NodeVM is configured with builtin:['*'] or explicit child_process allowance.
Articles & Coverage 1
Technical POC Analysis
CWE-693 Protection Mechanism Failure.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
vm2 NodeVM versions before 3.12.1 contain a critical sandbox escape that can lead to arbitrary command execution on the host, but only in applications that run untrusted JavaScript and explicitly allow child_process access. Organizations using default vm2 configurations without child_process are not exposed, while teams with the affected non-default setup face potential full host compromise, data loss, and service disruption. No public exploit identified at time of analysis, and the vendor-released patch is available in 3.12.1.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
vm2 is an advanced vm/sandbox for Node.js. Rated critical severity (CVSS 10.0), this vulnerability is remotely exploitab
vm2 is a sandbox that can run untrusted code with Node's built-in modules. Rated critical severity (CVSS 10.0), this vul
vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. Rated critical severity (CVSS 10.
There exists a vulnerability in source code transformer (exception sanitization logic) of vm2 for versions up to 3.9.15,
vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. Rated critical severity (CVSS 10.
This affects the package vm2 before 3.9.4 via a Prototype Pollution attack vector, which can lead to execution of arbitr
Full sandbox escape with arbitrary code execution allows remote attackers to break out of vm2's Node.js sandbox environm
Sandbox escape in vm2 for Node.js allows remote unauthenticated attackers to execute arbitrary commands on the host syst
Sandbox escape in vm2 (patriksimek/vm2) versions prior to 3.11.3 enables remote code execution on the host Node.js proce
Sandbox escape in vm2 Node.js sandbox before 3.10.2 via Promise.prototype.then/catch callback sanitization bypass. PoC a
vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. Rated critical severity (CVSS 9.8
The package vm2 before 3.9.10 are vulnerable to Arbitrary Code Execution due to the usage of prototype lookup for the We
EUVD-2026-82900
GHSA-9hxx-m5g2-2q3h
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB