Skip to main content

vm2 CVE-2026-93603

| EUVDEUVD-2026-82898 CRITICAL
Code Injection (CWE-94)
2026-09-18 VulnCheck GHSA-2mqq-5j76-f3c6
10.0
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit malicious script to vm2 sandbox
  2. Delivery
    Call exposed non-strict host function with nullish receiver
  3. Exploit
    V8 substitutes host global as `this`
  4. Execution
    Receive live proxy of host global object
  5. Persist
    Reach `process` and load child_process
  6. Impact
    Execute 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. fn(), fn.call(), fn.apply(undefined), or Reflect.apply(fn, undefined, []) - causing V8 to substitute the host realm's global object for this, which vm2 wraps and hands back as a live proxy. The attacker then walks to process and runs process.getBuiltinModule('child_process').execSync(...) for arbitrary command execution on the host. The advisories detail the exact technique, but no discrete public exploit tool is flagged in the input.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

vm2 0 <3.12.1

Affected Packages

euvd vm2 fix: 3.12.1

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

Vendor (VulnCheck) PRIMARY 10.0 CRITICAL
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
vuln.today AI 10.0 CRITICAL

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Red Hat 9.8 CRITICAL

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

2
Patch available
Sep 18, 2026 - 14:02 EUVD
CVE Published
Sep 18, 2026 - 13:20 cve.org
CRITICAL 10.0

DescriptionCVE.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.

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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 63% exploitable
Prevalence
Medium
popular but deprecated Node.js sandboxing library, migration ongoing
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL GitHub

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

50
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +50
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

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.

More in Vm2

View all
CVE-2023-37466 CRITICAL POC
10.0 Jul 14

vm2 is an advanced vm/sandbox for Node.js. Rated critical severity (CVSS 10.0), this vulnerability is remotely exploitab

CVE-2023-32314 CRITICAL POC
10.0 May 15

vm2 is a sandbox that can run untrusted code with Node's built-in modules. Rated critical severity (CVSS 10.0), this vul

CVE-2023-30547 CRITICAL POC
10.0 Apr 17

vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. Rated critical severity (CVSS 10.

CVE-2023-29199 CRITICAL POC
10.0 Apr 14

There exists a vulnerability in source code transformer (exception sanitization logic) of vm2 for versions up to 3.9.15,

CVE-2022-36067 CRITICAL POC
10.0 Sep 06

vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. Rated critical severity (CVSS 10.

CVE-2021-23449 CRITICAL POC
10.0 Oct 18

This affects the package vm2 before 3.9.4 via a Prototype Pollution attack vector, which can lead to execution of arbitr

CVE-2026-26956 CRITICAL POC
9.8 May 04

Full sandbox escape with arbitrary code execution allows remote attackers to break out of vm2's Node.js sandbox environm

CVE-2026-24120 CRITICAL POC
9.8 May 04

Sandbox escape in vm2 for Node.js allows remote unauthenticated attackers to execute arbitrary commands on the host syst

CVE-2026-45411 CRITICAL POC
9.8 May 13

Sandbox escape in vm2 (patriksimek/vm2) versions prior to 3.11.3 enables remote code execution on the host Node.js proce

CVE-2026-22709 CRITICAL POC
9.8 Jan 26

Sandbox escape in vm2 Node.js sandbox before 3.10.2 via Promise.prototype.then/catch callback sanitization bypass. PoC a

CVE-2023-29017 CRITICAL POC
9.8 Apr 06

vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. Rated critical severity (CVSS 9.8

CVE-2022-25893 CRITICAL POC
9.8 Dec 21

The package vm2 before 3.9.10 are vulnerable to Arbitrary Code Execution due to the usage of prototype lookup for the We

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy