VYPR

npm package

vm2

pkg:npm/vm2

Vulnerabilities (32)

  • CVE-2023-37903Jul 21, 2023
    affected <= 3.9.19

    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 the attacker has arbitrary code executio

  • CVE-2023-37466Jul 13, 2023
    affected < 3.10.0fixed 3.10.0

    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 sanitization can be bypassed with the `@@speci

  • CVE-2023-32314May 15, 2023
    affected < 3.9.18fixed 3.9.18

    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 of `Proxy`. As a result a threat actor can

  • CVE-2023-32313May 15, 2023
    affected < 3.9.18fixed 3.9.18

    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 threat actor can edit options for the `conso

  • CVE-2023-30547Apr 17, 2023
    affected < 3.9.17fixed 3.9.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 inside `handleException()` which can be used t

  • CVE-2023-29199Apr 14, 2023
    affected < 3.9.16fixed 3.9.16

    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 sandbox and run arbitrary code in host co

  • CVE-2023-29017Apr 6, 2023
    affected < 3.9.15fixed 3.9.15

    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 actor could bypass the sandbox protections to

  • CVE-2022-25893Dec 21, 2022
    affected < 3.9.10fixed 3.9.10

    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-36067Sep 6, 2022
    affected < 3.9.11fixed 3.9.11

    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 sandbox. This vulnerability was patched in th

  • CVE-2019-10761Jul 13, 2022
    affected < 3.6.11fixed 3.6.11

    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 reference the mainModule property of the

  • CVE-2021-23555Feb 11, 2022
    affected < 3.9.6fixed 3.9.6

    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-2021-23449Oct 18, 2021
    affected < 3.9.4fixed 3.9.4

    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.

Page 2 of 2