vm2
npm32 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 1 of 1
- CVE-2019-10761HIGHCVSS 8.3EG 8.3✓ Fixed in 3.6.112022-07-13
This affects the package vm2 before 3.6.11. It is possible to trigger a RangeError exception from the host rather than the "sandboxed" context by reaching the stack call limit with an infinite recursion. The returned object is then used to…
- CVE-2021-23449CRITICALCVSS 9.8EG 9.8✓ Fixed in 3.9.42021-10-18
This affects the package vm2 before 3.9.4 via a Prototype Pollution attack vector, which can lead to execution of arbitrary code on the host machine.
- CVE-2021-23555CRITICALCVSS 9.8EG 9.8✓ Fixed in 3.9.62022-02-11
The package vm2 before 3.9.6 are vulnerable to Sandbox Bypass via direct access to host error objects generated by node internals during generation of a stacktraces, which can lead to execution of arbitrary code on the host machine.
- CVE-2022-25893CRITICALCVSS 9.8EG 9.8✓ Fixed in 3.9.102022-12-21
The package vm2 before 3.9.10 are vulnerable to Arbitrary Code Execution due to the usage of prototype lookup for the WeakMap.prototype.set method. Exploiting this vulnerability leads to access to a host object and a sandbox compromise.
- CVE-2022-36067CRITICALCVSS 10.0EG 10.0✓ Fixed in 3.9.112022-09-06
vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. In versions prior to version 3.9.11, a threat actor can bypass the sandbox protections to gain remote code execution rights on the host running the sand…
- CVE-2023-29017CRITICALCVSS 10.0EG 10.0✓ Fixed in 3.9.152023-04-06
vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. Prior to version 3.9.15, vm2 was not properly handling host objects passed to `Error.prepareStackTrace` in case of unhandled async errors. A threat acto…
- CVE-2023-29199CRITICALCVSS 9.8EG 9.8✓ Fixed in 3.9.162023-04-14
There exists a vulnerability in source code transformer (exception sanitization logic) of vm2 for versions up to 3.9.15, allowing attackers to bypass `handleException()` and leak unsanitized host exceptions which can be used to escape the …
- CVE-2023-30547CRITICALCVSS 9.8EG 9.8✓ Fixed in 3.9.172023-04-17
vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. There exists a vulnerability in exception sanitization of vm2 for versions up to 3.9.16, allowing attackers to raise an unsanitized host exception insid…
- CVE-2023-32313MEDIUMCVSS 5.3EG 5.3✓ Fixed in 3.9.182023-05-15
vm2 is a sandbox that can run untrusted code with Node's built-in modules. In versions 3.9.17 and lower of vm2 it was possible to get a read-write reference to the node `inspect` method and edit options for `console.log`. As a result a thr…
- CVE-2023-32314CRITICALCVSS 9.8EG 9.8✓ Fixed in 3.9.182023-05-15
vm2 is a sandbox that can run untrusted code with Node's built-in modules. A sandbox escape vulnerability exists in vm2 for versions up to and including 3.9.17. It abuses an unexpected creation of a host object based on the specification o…
- CVE-2023-37466CRITICALCVSS 9.8EG 9.8✓ Fixed in 3.10.02023-07-14
vm2 is an advanced vm/sandbox for Node.js. The library contains critical security issues and should not be used for production. The maintenance of the project has been discontinued. In vm2 for versions up to 3.9.19, `Promise` handler sanit…
- CVE-2023-37903CRITICALCVSS 9.8EG 9.82023-07-21
vm2 is an open source vm/sandbox for Node.js. In vm2 for versions up to and including 3.9.19, Node.js custom inspect function allows attackers to escape the sandbox and run arbitrary code. This may result in Remote Code Execution, assuming…
- CVE-2026-22709CRITICALCVSS 9.8EG 9.8✓ Fixed in 3.10.22026-01-26
vm2 is an open source vm/sandbox for Node.js. In vm2 prior to version 3.10.2, `Promise.prototype.then` `Promise.prototype.catch` callback sanitization can be bypassed. This allows attackers to escape the sandbox and run arbitrary code. In …
- CVE-2026-24118CRITICALCVSS 9.8EG 9.8✓ Fixed in 3.11.02026-05-04
vm2 is an open source vm/sandbox for Node.js. Prior to version 3.11.0, VM2 suffers from a sandbox breakout vulnerability. This allows attackers to write code which can escape from the VM2 sandbox and execute arbitrary commands on the host …
- CVE-2026-24120CRITICALCVSS 9.8EG 9.8✓ Fixed in 3.10.52026-05-04
vm2 is an open source vm/sandbox for Node.js. Prior to version 3.10.5, the fix for CVE-2023-37466 is insufficient and can be circumvented allowing attackers to write code which can escape from the VM2 sandbox and execute arbitrary commands…
- CVE-2026-24781CRITICALCVSS 9.8EG 9.8✓ Fixed in 3.11.02026-05-04
vm2 is an open source vm/sandbox for Node.js. Prior to version 3.11.0, VM2 suffers from a sandbox breakout vulnerability through the inspect function. This allows attackers to write code which can escape from the VM2 sandbox and execute ar…
- CVE-2026-26332CRITICALCVSS 9.8EG 9.8✓ Fixed in 3.11.02026-05-04
vm2 is an open source vm/sandbox for Node.js. Prior to version 3.11.0, SuppressedError allows attackers to escape the sandbox and run arbitrary code. This issue has been patched in version 3.11.0.
- CVE-2026-26956CRITICALCVSS 9.8EG 9.8✓ Fixed in 3.10.52026-05-04
vulnerable: 3.10.4
vm2 is an open source vm/sandbox for Node.js. In version 3.10.4, vm2 is vulnerable to full sandbox escape with arbitrary code execution. Attacker code inside VM.run() obtains host process object and runs host commands with zero host cooper…
- CVE-2026-43997CRITICALCVSS 10.0EG 10.0✓ Fixed in 3.11.02026-05-13
vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.0, it is possible to obtain the host Object. There are various ways to use the host Object, to escape the sandbox, one example would be using HostObject.getOwnPropertySymbols to o…
- CVE-2026-43998HIGHCVSS 8.5EG 8.5✓ Fixed in 3.11.02026-05-13
vulnerable: 3.10.5
vm2 is an open source vm/sandbox for Node.js. In 3.10.5, NodeVM's require.root path restriction can be bypassed using filesystem symlinks, allowing sandboxed code to load modules from outside the allowed root directory in host context. Bec…
- CVE-2026-43999CRITICALCVSS 9.9EG 9.9✓ Fixed in 3.11.02026-05-13
vulnerable: 3.10.5
vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.0, NodeVM's builtin allowlist can be bypassed when the module builtin is allowed (including via the '*' wildcard). The module builtin exposes Node's Module._load(), which loads an…
- CVE-2026-44000MEDIUMCVSS 6.5EG 6.5✓ Fixed in 3.11.02026-05-13
vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.0, a sandbox boundary violation in vm2 allows host object identity to cross into the sandbox through host Promise resolution. When a host-side Promise that resolves to a host obje…
- CVE-2026-44001HIGHCVSS 8.6EG 8.6✓ Fixed in 3.11.02026-05-13
vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.0, a sandbox escape vulnerability in vm2 v3.10.5 allows any sandboxed code to crash the host Node.js process via a single Promise constructor that triggers an unhandled rejection …
- CVE-2026-44002MEDIUMCVSS 5.8EG 5.8✓ Fixed in 3.11.02026-05-13
vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.0, vm2's CallSite wrapper class (intended as a safe wrapper for V8's native CallSite) blocks getThis() and getFunction() to prevent host object leakage, but allows getFileName() t…
- CVE-2026-44003MEDIUMCVSS 5.3EG 5.3✓ Fixed in 3.11.02026-05-13
vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.0, vm2's code transformer has a performance optimization that skips AST analysis when the code does not contain catch, import, or async keywords. This fast-path bypass allows sand…
- CVE-2026-44004HIGHCVSS 7.5EG 7.5✓ Fixed in 3.11.02026-05-13
vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.0, sandboxed code can call Buffer.alloc() with an arbitrary size to allocate memory directly on the host heap. Because Buffer.alloc is a synchronous C++ native call, vm2's timeout…
- CVE-2026-44005CRITICALCVSS 10.0EG 10.0✓ Fixed in 3.11.02026-05-13
vm2 is an open source vm/sandbox for Node.js. From 3.9.6 to 3.10.5, vm2's bridge exposes mutable proxies for real host-realm intrinsic prototypes and then forwards sandbox writes into the underlying host objects with otherReflectSet() and …
- CVE-2026-44006CRITICALCVSS 10.0EG 10.0✓ Fixed in 3.11.02026-05-13
vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.0, It is possible to reach BaseHandler.getPrototypeOf, which can be used to get arbitrary prototypes. This vulnerability is fixed in 3.11.0.
- CVE-2026-44007CRITICALCVSS 9.1EG 9.1✓ Fixed in 3.11.12026-05-13
vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.1, when a NodeVM is created with nesting: true, sandbox code can unconditionally require('vm2') regardless of the outer VM's require configuration — including require: false. Wi…
- CVE-2026-44008CRITICALCVSS 9.8EG 9.8✓ Fixed in 3.11.22026-05-13
vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.2, the new method neutralizeArraySpeciesBatch works with objects from the other side but can call into this side via getter on the array prototype exposing objects of the wrong si…
- CVE-2026-44009CRITICALCVSS 9.8EG 9.8✓ Fixed in 3.11.22026-05-13
vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.2, This vulnerability is fixed in 3.11.2.
- CVE-2026-45411CRITICALCVSS 9.8EG 9.8✓ Fixed in 3.11.32026-05-13
vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.3, it is possible to catch a host exception using the yield* expression inside an async generator. When the generator is closed using the return function, the value is awaited on …
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.
Start Free Scan →