← Back to CVE List
Vulnerability Intelligence Report
vm2 before 3.12.1 Sandbox Escape RCE via Non-Strict Host Function

CVE-2026-93603

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.

No Active Exploit Signals
CVSS Base Score
10.0
CRITICAL
EPSS Probability:0.43%
Executive Threat Verdict
Evaluating...
Evaluating Threat Landscape...
Assessing known weaponization, exploitation telemetry, and federal advisories.
Attack Surface
—
Authentication
—
Weaponization
—
SSVC Action
—

Weaknesses (CWE)

CWE-94 ↗Improper Control of Generation of Code ('Code Injection')

Affected Products & Versions

Vendor Product Affected Versions
patriksimek vm2 0 < 3.12.1 (affected), 3.12.1 (unaffected)

References & Technical Advisories

No reference links found.

Threat Intelligence Signals

EPSS Score
0.426%

Identity & Timeline

StatusPUBLISHED
Assigning AuthorityVulnCheck · Bug Bounty Provider · USA
Reserved2026-09-18T11:00:32
Published2026-09-18T13:20:12
Patch Date2026-09-03
Last Updated2026-09-22T14:25:29

LINK COPIED TO CLIPBOARD