Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit malicious script to vm2 sandbox
-
DeliveryCall exposed non-strict host function with nullish receiver
-
ExploitV8 substitutes host global as `this`
-
ExecutionReceive live proxy of host global object
-
PersistReach `process` and load child_process
-
ImpactExecute arbitrary commands on host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the embedding application expose at least one non-strict (sloppy-mode) host-provided function to the vm2 sandbox; the attacker then calls it with a nullish/undefined receiver so V8 leaks the host realm's global object. This condition is common because ordinary JavaScript functions are non-strict by default. What LIMITS exploitation: host functions written in strict mode or provided as ES modules are NOT affected, and the flaw only matters when vm2 is used to run untrusted code (its intended use case). No authentication or user interaction is required beyond the attacker's ability to submit script into the sandbox. Affects vm2 through 3.12.0; fixed in 3.12.1 - note vm2 is a deprecated library, so unmaintained deployments remain exposed. |
| Impact | This is a genuine top-tier priority, not a high-CVSS-but-low-risk artifact. vm2 exists specifically to run untrusted/attacker-supplied JavaScript, so a full sandbox escape to host RCE defeats the product's entire security purpose - the attacker IS the sandboxed code by design. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N, VC/VI/VA:H, SC/SI/SA:H = 10.0) is well-founded: no authentication, low complexity, and compromise propagates from the sandbox to the host system (subsequent-system impact). CWE-94 (code injection) accurately captures arbitrary host code execution. The one real limiter is a deployment prerequisite, not an attacker-controlled gate: the embedding application must expose at least one non-strict (sloppy-mode) host function to the sandbox - a very common pattern, since ordinary JS functions are non-strict unless authored as strict-mode or ES modules. No EPSS score, no CISA KEV entry, and no explicit public POC flag are present in the input; the CVE.org/VulnCheck advisories describe the mechanism in exploit-grade detail but that is not the same as confirmed active exploitation. Critically, vm2 was deprecated by its maintainer in 2023 with no further security fixes planned beyond this release, so any lingering deployments are unlikely to be actively maintained - raising real-world exposure for laggards. |
| Exploit ScenarioDerived | An application embeds vm2 to sandbox untrusted user-submitted scripts (e.g., a plugin engine, formula evaluator, or code-runner) and exposes at least one ordinary non-strict host helper function to that sandbox. Attacker-controlled script invokes the helper with no receiver - e.g. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 18, 2026
Sandbox escape in vm2 through 3.12.0 lets unauthenticated remote attackers execute arbitrary code on the host when the embedding application exposes at least one non-strict (sloppy-mode) host function to the sandbox. By calling such a function with a nullish receiver (fn(), fn.call(), Reflect.apply(fn, undefined, []), etc.), sandboxed script causes V8 to substitute the host realm’s global object for this, which vm2 then wraps and returns as a live proxy of the host global; the attacker can then reach process and run commands such as process.getBuiltinModule('child_process').execSync. Vendor-released patch: upgrade to 3.12.1; no public exploit identified at time of analysis, but the required pre-condition is common because ordinary JavaScript functions are non-strict by default, and vm2 is deprecated, so unmaintained deployments remain exposed-independent assessment rates this a top-tier priority.
RemediationAI
Vendor-released patch: upgrade to vm2 3.12.1, which fixes the nullish-receiver mishandling in the bridge’s apply trap; see the advisory at https://github.com/patriksimek/vm2/security/advisories/GHSA-j89j-5m6r-cr2q. Because vm2 is deprecated and unmaintained, the most durable fix is to migrate untrusted code execution to a maintained isolation mechanism such as isolated-vm or separate processes/containers, accepting the engineering cost of re-architecting the sandbox. If vm2 must remain temporarily, audit every host function exposed to the sandbox and ensure they are written in strict mode ('use strict') or provided as ES modules, since those forms are not affected; this is a per-function mitigation that requires exhaustive coverage and may break host functions that rely on sloppy-mode this coercion. Blocking calls is not practical because any non-strict function becomes an escape vector, so do not rely on input filtering; prioritize patching or migration.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
vm2 implements a security sandbox by proxying access between untrusted code and the host realm, with the bridge in lib/bridge.js handling function calls via the Proxy apply trap. The flaw is a failure to normalize a nullish this receiver before invoking a host-provided function: when sandboxed code calls a non-strict (sloppy-mode) host function without a receiver, the ECMAScript specification’s OrdinaryCallBindThis step replaces the undefined this with the host realm’s global object, and the bridge returns that object (wrapped as a Proxy) back to the sandbox. From there, the sandbox gains a live proxy of the host global, allowing access to process and arbitrary command execution-classic CWE-94 code injection enabled by improper neutralization of the receiver. Strict-mode and ES module host functions are unaffected because their this remains undefined rather than being coerced to the global object. The CPE cpe:2.3:a:patriksimek:vm2:*:*:*:*:*:*:*:* covers all versions through 3.12.0; independent assessment confirms CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H (scope change), matching the vendor’s CVSS 4.0 score of 10.0. Exploitation requires that the embedding application expose at least one non-strict host function to the sandbox-a common condition-but the library is deprecated and must be replaced for lasting risk reduction.
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
Untrusted sandboxed script (PR:N, UI:N) escapes to host RCE crossing the sandbox trust boundary (S:C) with full C/I/A:H; the non-strict-host-function prerequisite is a common deployment condition, so AC:L.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
vm2 through 3.12.0 (fixed in 3.12.1) does not correctly handle a nullish this receiver in the apply trap of its bridge (lib/bridge.js): when sandboxed code calls a host-provided non-strict (sloppy-mode) function without a receiver - e.g. fn(), a detached method, fn.call(), fn.apply(undefined), Reflect.apply(fn, undefined, []), or fn.bind()() - the undefined receiver is passed straight through to the host call, and V8 substitutes the host realm's global object for this. vm2 then wraps and returns that object to the sandbox, giving sandboxed script a live proxy of the host global. This allows a complete sandbox escape: untrusted script can reach process and execute arbitrary code/commands on the host (for example via process.getBuiltinModule('child_process').execSync). Exploitation requires that the embedding application expose at least one non-strict host function to the sandbox; strict-mode and ES module host functions are not affected.
Articles & Coverage 1
Technical POC Analysis
CWE-94 code injection - the advisory also tags CWE-913.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-93603 is a critical sandbox escape in vm2 through 3.12.0 that can allow attackers to run commands on the host server, affecting any application that embeds vm2 to execute untrusted JavaScript. Leadership should care because successful exploitation could lead to full host compromise, data theft, and service disruption, and the vulnerable component is deprecated, so unmaintained deployments remain exposed. No public exploit identified at time of analysis, but the technical pre-condition is common in typical JavaScript code.
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
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
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-82898
GHSA-2mqq-5j76-f3c6
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB