Skip to main content

vm2 EUVDEUVD-2026-82901

| CVE-2026-93606 CRITICAL
Protection Mechanism Failure (CWE-693)
2026-09-18 VulnCheck GHSA-q84h-7qfg-c6j8
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 JS to vm2 sandbox
  2. Delivery
    Obtain host-realm Promise from exposed host API
  3. Exploit
    Overwrite p.constructor[Symbol.species]
  4. Execution
    Call p.then() with no onRejected, triggering V8 Thrower
  5. Persist
    Capture unsanitized host bridge proxy
  6. Impact
    Pivot host process object to host command execution

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

Requires that the embedding application (1) uses vm2 VM or NodeVM to execute attacker-controlled/untrusted JavaScript, and (2) exposes at least one host API to the sandbox that returns a host-realm (native) Promise whose rejection value is host-pivotable - the advisory specifically cites a host process object. When present, the sandbox overwrites p.constructor[Symbol.species] and calls p.then() with no onRejected handler, defeating hostPromiseSanitizeReject/handleException in lib/bridge.js because the neutralization is only installed on the sandbox intrinsic Promise.prototype, never on host Promises. LIMITING FACTORS: exploitation is gated on the embedder exposing a host-Promise-returning API with a pivotable rejection value; embedders that expose no such API, or that only return sandbox-realm promises, are not exploitable. Affects vm2 <=3.12.0; fixed in 3.12.1.

Impact

This is a genuinely high-priority issue, not a high-CVSS-but-low-risk paper cut. The CVSS 4.0 vector (AV:N/AC:L/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H, score 10.0) reflects a full sandbox escape to host arbitrary code execution, and CWE-693 (Protection Mechanism Failure) correctly captures that the security boundary vm2 exists to provide is defeated. vm2's entire purpose is to execute UNTRUSTED code, so PR:N is realistic: the attacker IS the sandboxed code, which the embedder deliberately runs. The subsequent-system impact metrics (SC/SI/SA:H) are justified because control pivots from the sandbox realm to the host Node.js process. No EPSS score, CISA KEV entry, or explicit POC flag is present in the input, so exploitation likelihood cannot be quantified from these signals; however, the advisory describes a precise, deterministic V8-internal-Thrower technique, which lowers the practical barrier to weaponization. The one real limiter is a per-embedder precondition (see exploitation_conditions): the host must expose an API returning a host-realm Promise whose rejection value is host-pivotable. Given vm2's known history of repeated escapes and its deprecation, defenders running any version <=3.12.0 with untrusted code should treat this as critical and patch immediately.

Exploit ScenarioDerived

An application uses vm2 to run untrusted user-supplied JavaScript and exposes a host helper that returns a native Promise. The sandboxed code overwrites the host Promise's constructor Symbol.species, calls p.then() with no onRejected handler so V8 substitutes its internal Thrower, and captures the raw unsanitized host rejection value (e.g. a host process object). No public exploit code is flagged in the input, but the advisory documents the full technique, making reliable reproduction straightforward for a skilled attacker.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.5% 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 3.12.0 and earlier allows unauthenticated remote attackers who can supply JavaScript to an application embedding vm2's VM or NodeVM to break out of the sandbox and execute arbitrary code on the host, provided the embedder exposes at least one host API returning a host-realm (native) Promise whose rejection value is host-pivotable - the advisory cites a host process object as the example. The flaw is an incomplete rejection-sanitization failure in lib/bridge.js: the sandbox-side Symbol.species and .then neutralization is installed only on the sandbox intrinsic Promise.prototype, so it never applies to host Promises, letting sandboxed code overwrite p.constructor[Symbol.species] and call p.then() without an onRejected handler, after which V8's internal Thrower re-throws the raw host rejection value into an attacker-controlled resolve/reject closure, bypassing handleException and hostPromiseSanitizeReject and yielding an unsanitized, fully functional bridge proxy of the host object. No public exploit identified at time of analysis, but the CVSS 4.0 base score is 10.0 and the issue is fixed in 3.12.1.

RemediationAI

Upgrade vm2 to 3.12.1, the vendor-released patch, as the primary fix per the GitHub advisory GHSA-6454-5x88-m6jw and the VulnCheck advisory. Until upgrading, the most effective compensating control is to stop exposing host-realm Promises to the sandbox: any host API exposed to VM or NodeVM should either return a sandbox-realm Promise or avoid returning host objects in rejection values - specifically, never let a host process object or any other host-pivotable object reach a Promise rejection that sandboxed code can observe. Note that stripping function-valued rejection handlers is not a workaround, because the bypass relies on the absence of an onRejected function and on host-realm Promises not being covered by the sandbox-side neutralization. Embedders that cannot change these APIs should restrict untrusted code execution, for example by running vm2 workloads in a separate low-privilege process or container with no host filesystem or process access, accepting the performance and functionality trade-offs. After upgrading, validate that no embedder API still returns a host-realm Promise whose rejection value is host-pivotable, since that pattern remains hazardous even on fixed code paths.

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 is a Node.js library that runs untrusted JavaScript in a sandbox, using a bridge (lib/bridge.js) to mediate object references between the host and sandbox realms. This is a protection-mechanism failure (CWE-693): the bridge's rejection sanitizer (hostPromiseSanitizeReject, makeSanitizedPromiseCallback, normalizeHostPromiseCallbacks) only wraps then/catch rejection slots that hold a function, and the sandbox-side Symbol.species/.then neutralization is installed only on the sandbox intrinsic Promise.prototype, never on host-realm Promise objects. When an embedder exposes a host API that returns a host-realm Promise, sandboxed code can overwrite p.constructor[Symbol.species] and call p.then() with no onRejected handler; V8 substitutes its internal Thrower, which re-throws the raw host rejection value into a resolve/reject closure the attacker controls. That closure then returns an unsanitized, fully functional bridge proxy of the host object to sandboxed code, defeating handleException and hostPromiseSanitizeReject. If the rejection value is host-pivotable - for example a host process object - the result is arbitrary code execution on the host. The affected component is the npm package patriksimek:vm2 (CPE cpe:2.3:a:patriksimek:vm2:*:*:*:*:*:*:*:*), all versions 0 through 3.12.0, fixed in 3.12.1; exploitation is gated on the embedder exposing a host-Promise-returning API with a pivotable rejection value, and embedders that expose no such API or only return sandbox-realm promises are not exploitable.

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 code is the attacker (PR:N/AV:N), the technique is deterministic (AC:L), and escape crosses the sandbox-to-host boundary (S:C) yielding full host RCE (C/I/A:H).

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 (npm) versions 3.12.0 and earlier contain a sandbox escape in VM and NodeVM. When an embedder exposes a host API that returns a host-realm Promise, the bridge's rejection sanitizer (hostPromiseSanitizeReject / makeSanitizedPromiseCallback / normalizeHostPromiseCallbacks in lib/bridge.js) only wraps then/catch rejection slots that hold a function, and the sandbox-side Symbol.species/.then neutralization is installed only on the sandbox intrinsic Promise.prototype, so it never applies to a host Promise. Code running inside the sandbox can overwrite p.constructor[Symbol.species] on the host Promise and then call p.then() with no onRejected handler; V8 substitutes its internal Thrower, which re-throws the raw host rejection value into a resolve/reject closure captured by the attacker. This delivers an unsanitized, fully functional bridge proxy of the host object to sandboxed code, bypassing handleException and hostPromiseSanitizeReject. If the rejection value is host-pivotable (for example a host process object), this results in arbitrary code execution on the host. Fixed in 3.12.1.

Technical POC Analysis

CWE-693 Protection Mechanism Failure (the advisory also lists 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

A critical sandbox-escape flaw in the vm2 JavaScript library (versions 3.12.0 and earlier) lets an attacker who can feed JavaScript into any application embedding it break out of the isolation boundary and run arbitrary code on the underlying host server. Because vm2 exists specifically to safely execute untrusted code, organizations using it in multi-tenant, customer-facing, or plugin-driven services should assume that isolation control can fail completely, exposing customer data, credentials, and service availability. Leadership should treat every internet-reachable or third-party-facing deployment on an affected version as potentially compromise-ready.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.5%
Top 57% exploitable
Prevalence
High
widely-used npm sandbox library with millions of weekly downloads
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.5%
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

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

Attack Technique

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