vm2
npm78 known CVEs affecting this package
Aggregated from OSV, GitHub Security Advisories, NVD, and vendor advisories. Each CVE links to its full detail page with vendor advisories, patches, fixed versions, and remediation guidance.
CVEs affecting vm2page 2 of 2
- CVE-2026-92936MEDIUMCVSS 5.8EG 5.8fixed in 3.11.72026-09-17
vm2 versions 3.11.0 through 3.11.6 leak absolute host filesystem paths to sandboxed code through error stack formatting. Attacker-supplied code can force the host-realm source transformer to throw a SyntaxError (for example by calling eval…
- CVE-2026-92937CRITICALCVSS 10.0EG 10.0fixed in 3.11.72026-09-17
vulnerable: 3.11.6
vm2 3.11.6 is vulnerable to a sandbox escape leading to remote code execution in the host Node.js process. The fix for GHSA-m283-3h24-438v is incomplete: the bridge gate at lib/bridge.js:1624 identity-checks only the direct call target whe…
- CVE-2026-92938CRITICALCVSS 9.9EG 9.9fixed in 3.11.72026-09-17
vm2 versions 3.11.3 through 3.11.6 expose Node.js's host node:sqlite module to code running in NodeVM when that builtin is permitted, either explicitly or through builtin: ['*']. The module is wrapped with vm.readonly(), which prevents pro…
- CVE-2026-92939CRITICALCVSS 9.9EG 9.9fixed in 3.11.72026-09-17
vm2 3.11.3 through 3.11.6 exposes the host Node.js crypto module to a NodeVM sandbox when the crypto builtin is allowed. The module is presented via a recursive read-only proxy, but its callable exports still execute with host-process auth…
- CVE-2026-92940CRITICALCVSS 10.0EG 10.0fixed in 3.11.72026-09-17
vm2 versions 3.11.3 through 3.11.6 expose the host process's real https.globalAgent to sandboxed code when a NodeVM is explicitly configured to allow require('https'). The builtin loader wraps host modules in a read-only proxy, but method …
- CVE-2026-92941CRITICALCVSS 10.0EG 10.0fixed in 3.11.72026-09-17
vm2 versions from 3.11.3 before 3.11.7 expose the host tls module to NodeVM sandbox code, allowing attackers to call tls.setDefaultCACertificates() and replace process-wide certificate authorities. Attackers with access to allowed tls and …
- CVE-2026-92942HIGHCVSS 7.5EG 7.5fixed in 3.11.72026-09-17
vm2 before 3.11.7 (affected versions <= 3.11.6) does not enforce the VM({ timeout }) option on code executed outside the synchronous VM#run() call. The timeout only wraps the single call to _runScript() via doWithTimeout() in lib/vm.js, an…
- CVE-2026-92944CRITICALCVSS 9.8EG 9.8fixed in 3.11.72026-09-17
vm2 versions 3.10.2 through 3.11.6 contain a sandbox escape vulnerability on Node.js 26 where Promise.prototype.finally() bypasses vm2's wrapper protections due to a stale PromiseThenLookupChain protector in V8 14.6. Attackers can exploit …
- CVE-2026-92945MEDIUMCVSS 4.2EG 4.2fixed in 3.11.72026-09-17
vm2 before 3.11.7 contains a module allowlist bypass vulnerability in isPathAllowedForModule that uses raw string prefix matching instead of boundary-anchored comparison. Attackers can reach non-allowlisted packages sharing a prefix with a…
- CVE-2026-92946CRITICALCVSS 10.0EG 10.0fixed in 3.11.72026-09-17
vm2 before 3.11.7 contains a remote code execution vulnerability when require.external is enabled without an explicit require.root that excludes node_modules. Sandboxed code can require vm2's own package, instantiate an unrestricted NodeVM…
- CVE-2026-92947CRITICALCVSS 10.0EG 10.0fixed in 3.11.72026-09-17
vm2 before 3.11.7 exposes Node's shared Buffer pool to sandboxed code, allowing disclosure of host memory used by Buffer.from, Buffer.concat, and related allocations. Sandboxed code can read and write to host-realm buffers by acquiring Arr…
- CVE-2026-92948CRITICALCVSS 9.9EG 9.9fixed in 3.11.72026-09-17
vm2 versions >= 3.9.6 and <= 3.11.6 are affected by a NodeVM builtin allowlist bypass that permits a sandbox escape on Node.js 24 and newer when the embedder explicitly allows the node:test builtin (e.g. require: { builtin: ['node:test'] }…
- CVE-2026-92949MEDIUMCVSS 4.0EG 4.0fixed in 3.11.72026-09-17
vm2 versions from 3.9.6 before 3.11.7 fail to properly restrict access to accessor properties on frozen objects, allowing sandboxed scripts to bypass vm.freeze() and vm.readonly() protections. Attackers can use Object.getOwnPropertyDescrip…
- CVE-2026-92950HIGHCVSS 8.6EG 8.6fixed in 3.11.72026-09-17
vm2 before 3.11.7 contains a sandbox escape vulnerability in the CLI tool that allows attackers to execute arbitrary code in the host Node.js process. Attackers can supply a malicious script file to the vm2 CLI that uses require(__filename…
- CVE-2026-92951CRITICALCVSS 9.9EG 9.9fixed in 3.11.72026-09-17
vm2 before 3.11.7 contains an incorrect authorization vulnerability in the external package allowlist check that uses non-exact substring matching instead of full package-name boundary validation. Attackers can bypass the allowlist by requ…
- CVE-2026-92952MEDIUMCVSS 6.8EG 6.8fixed in 3.11.72026-09-17
vm2 versions 3.11.4 through 3.11.6 incompletely filter Node.js registered internal symbols across the sandbox boundary. The extraction filters in lib/setup-sandbox.js and the cross-realm symbol checks and write traps in lib/bridge.js use a…
- CVE-2026-92953CRITICALCVSS 10.0EG 10.0fixed in 3.11.82026-09-17
vm2 versions from 3.11.0 before 3.11.8 fail to protect host TypedArray and ArrayBuffer prototypes from sandbox mutation. Attackers can use prototype-walking primitives to reach and modify host Uint8Array.prototype, %TypedArray%.prototype, …
- CVE-2026-92954HIGHCVSS 8.6EG 8.6fixed in 3.11.82026-09-17
vm2 is a sandbox library for running untrusted JavaScript in Node.js. In versions >= 3.10.0 and <= 3.11.7, Promises returned from the host realm into the sandbox are not marked as handled at the bridge boundary; only Promises created insid…
- CVE-2026-92955CRITICALCVSS 10.0EG 10.0fixed in 3.11.82026-09-17
vm2 before 3.11.8 contains a sandbox escape vulnerability in NodeVM that allows attackers to access the host __proto__ getter/setter through console._stdout and console._stderr. Attackers can overwrite EventEmitter.prototype.emit and trigg…
- CVE-2026-92956CRITICALCVSS 10.0EG 10.0fixed in 3.11.72026-09-17
vm2 versions 3.10.1 through 3.11.6 contain a sandbox escape reachable from a default `new VM()` sandbox when running on Node.js 26. WebAssembly.compileStreaming and WebAssembly.instantiateStreaming can produce a raw host-realm Promise that…
- CVE-2026-92957CRITICALCVSS 9.9EG 9.9fixed in 3.11.72026-09-17
vm2 through 3.11.6 does not normalize `node:`-prefixed builtin specifiers when evaluating user-supplied negative (deny) entries in a NodeVM wildcard require policy. Although NodeVM strips the `node:` prefix during require() resolution, neg…
- CVE-2026-92958HIGHCVSS 8.5EG 8.5fixed in 3.11.72026-09-17
vm2 through 3.11.6 contains a builtin-module denylist bypass in NodeVM. When the embedder uses the builtin wildcard together with negative entries (e.g. require: { builtin: ['*', '-fs', '-child_process'] }), negative entries are matched by…
- CVE-2026-92959HIGHCVSS 7.1EG 7.1fixed in 3.11.82026-09-17
vm2 before 3.11.8 does not fully enforce the allowAsync: false option in VM and NodeVM. While localPromise.prototype.then is replaced with a handler that throws 'Async not available', the sandbox's Promise static methods (Promise.resolve, …
- CVE-2026-92960CRITICALCVSS 10.0EG 10.0fixed in 3.11.62026-09-17
vm2 before 3.11.6 fails to restrict access to os and dns builtins under the builtin: ['*'] configuration, allowing sandbox code to read host process identity and network topology. Attackers can invoke dns.setServers() to hijack the host pr…
- CVE-2026-92961HIGHCVSS 7.5EG 7.5fixed in 3.11.62026-09-17
vm2 before 3.11.6 fails to enforce bufferAllocLimit on ArrayBuffer, SharedArrayBuffer, and TypedArray constructors, allowing attackers to allocate arbitrary host memory. Attackers can bypass the buffer allocation cap by using these V8 intr…
- CVE-2026-92962LOWCVSS 2.1EG 2.1fixed in 3.11.42026-09-17
vm2 is a sandbox for running untrusted JavaScript. In vm2 versions up to and including 3.11.3, the defaultSandboxPrepareStackTrace function in lib/setup-sandbox.js builds its output array using prototype-walking index assignment (lines[lin…
- CVE-2026-92963MEDIUMCVSS 5.3EG 5.3fixed in 3.11.22026-09-17
vm2 versions before 3.11.2 fail to properly restrict access to the VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL global variable. Attackers can access this internal state object through globalThis to retrieve sensitive sandbox interna…
- CVE-2026-93605CRITICALCVSS 10.0EG 10.0fixed in 3.12.12026-09-18
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 comm…
Check whether vm2 is used in your infrastructure
EchelonGraph scans your cloud and SBOMs to map every package to your actual deployments. See blast radius for vm2 CVEs against the assets you own.
Book a Demo →