p PatchFirst

PatchFirst · Latest vulnerabilities

vm2 vulnerabilities · Page 4

Vulnerabilities published for vm2 in the last 30 days: 3. Listed in the KEV catalogue: 0.

Filter vulnerabilities
Clear filters

Vulnerabilities: 78

  1. CVE-2026-26956

    Critical · CVSS 9.8EPSS 0.92%Fix available

    vm2: WASM Sandbox Escape (Node 25 only)

    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 cooperation. This issue has been patched in version 3.10.5.

    • Update to 3.10.5
    Published Updated
  2. CVE-2026-24781

    Critical · CVSS 9.8EPSS 1.19%Fix available

    vm2: Sandbox Breakout Through Inspect

    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 arbitrary commands on the host system. This issue has been patched in version 3.11.0.

    • Update to 3.11.0
    Published Updated
  3. CVE-2026-24120

    Critical · CVSS 9.8EPSS 0.9%Fix available

    vm2: Sandbox Breakout Through Promise Species

    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 on the host system. This issue has been patched in version 3.10.5.

    • Update to 3.10.5
    Published Updated
  4. CVE-2026-24118

    Critical · CVSS 9.8EPSS 0.91%Fix available

    VM2 Sandbox Breakout Through __lookupGetter__

    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 system. This issue has been patched in version 3.11.0.

    • Update to 3.11.0
    Published Updated
  5. CVE-2026-22709

    Critical · CVSS 9.8EPSS 1.27%Fix available

    vm2 has a Sandbox Escape

    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 lib/setup-sandbox.js, the callback function of `localPromise.prototype.then` is sanitized, but `globalPromise.prototype.then` is not sanitized. The return value of async functions is `globalPromise` object. Version 3.10.2 fixes the issue.

    • Update to 3.10.2
    Published Updated
  6. CVE-2023-37903

    Critical · CVSS 9.8EPSS 4.21%No fix published

    Sandbox Escape in vm2

    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 execution primitive inside the context of vm2 sandbox. There are no patches and no known workarounds. Users are advised to find an alternative software.

    Published Updated
  7. CVE-2023-37466

    Critical · CVSS 9.8EPSS 3.87%Fix available

    vm2 Sandbox Escape vulnerability

    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 `@@species` accessor property allowing attackers to escape the sandbox and run arbitrary code, potentially allowing remote code execution inside the context of vm2 sandbox. Version 3.10.0 contains a patch for the issue.

    • Update to 3.10.0
    Published Updated
  8. CVE-2023-32314

    Critical · CVSS 9.8EPSS 8.13%Fix available

    Sandbox Escape

    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 bypass the sandbox protections to gain remote code execution rights on the host running the sandbox. This vulnerability was patched in the release of version `3.9.18` of `vm2`. Users are advised to upgrade. There are no known workarounds for this vulnerability.

    • Update to 3.9.18
    Published Updated
  9. CVE-2023-32313

    Medium · CVSS 5.3EPSS 0.79%Fix available

    Inspect method manipulation in vm2

    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 `console.log` command. This vulnerability was patched in the release of version `3.9.18` of `vm2`. Users are advised to upgrade. Users unable to upgrade may make the `inspect` method readonly with `vm.readonly(inspect)` after creating a vm.

    • Update to 3.9.18
    Published Updated
  10. CVE-2023-30547

    Critical · CVSS 9.8EPSS 72.97%Fix available

    Sandbox Escape in vm2

    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 to escape the sandbox and run arbitrary code in host context. This vulnerability was patched in the release of version `3.9.17` of `vm2`. There are no known workarounds for this vulnerability. Users are advised to upgrade.

    • Update to 3.9.17
    Published Updated
  11. CVE-2023-29199

    Critical · CVSS 9.8EPSS 3.85%Fix available

    vm2 Sandbox escape vulnerability

    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 context. 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 the release of version `3.9.16` of `vm2`.

    • Update to 3.9.16
    Published Updated
  12. CVE-2023-29017

    Critical · CVSS 10EPSS 63.19%Fix available

    vm2 Sandbox Escape vulnerability

    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 gain remote code execution rights on the host running the sandbox. This vulnerability was patched in the release of version 3.9.15 of vm2. There are no known workarounds.

    • Update to 3.9.15
    Published Updated
  13. CVE-2022-25893

    Critical · CVSS 9.8EPSS 1.54%Fix available

    Arbitrary Code Execution

    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.

    • Update to 3.9.10
    Published Updated
  14. CVE-2022-36067

    Critical · CVSS 10EPSS 47.87%Fix available

    vm2 vulnerable to Sandbox Escape before v3.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 the release of version 3.9.11 of vm2. There are no known workarounds.

    • Update to 3.9.11
    Published Updated
  15. CVE-2019-10761

    High · CVSS 8.3EPSS 1.33%Fix available

    Sandbox Bypass

    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 host code running the script allowing it to spawn a child_process and execute arbitrary code.

    • Update to 3.6.11
    Published Updated
  16. CVE-2021-23555

    Critical · CVSS 9.8EPSS 2.88%Fix available

    Sandbox Bypass

    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.

    • Update to 3.9.6
    Published Updated

Check your server

Check your installed stack and versions against the current vulnerability feeds.

Check your server →