Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:npm/vm2@3.11.0
purl pkg:npm/vm2@3.11.0
Next non-vulnerable version 3.11.4
Latest non-vulnerable version 3.11.4
Risk 4.5
Vulnerabilities affecting this package (5)
Vulnerability Summary Fixed by
VCID-598j-pe72-qkh3
Aliases:
CVE-2026-45411
GHSA-248r-7h7q-cr24
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 and exceptions thrown in the then call will be caught by the runtime and passed to the yield* iterator as the next value. This allows attackers to write code which can escape from the VM2 sandbox and execute arbitrary commands on the host system. This vulnerability is fixed in 3.11.3.
3.11.3
Affected by 10 other vulnerabilities.
VCID-8zk3-a7sw-u7an
Aliases:
CVE-2026-44009
GHSA-9vg3-4rfj-wgcm
vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.2, This vulnerability is fixed in 3.11.2.
3.11.2
Affected by 1 other vulnerability.
VCID-g93v-7a6d-5bfm
Aliases:
CVE-2026-44008
GHSA-9qj6-qjgg-37qq
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 side into the sandbox. This can be used to get host objects and get the host Function object. This allows attackers to write code which can escape from the VM2 sandbox and execute arbitrary commands on the host system. This vulnerability is fixed in 3.11.2.
3.11.2
Affected by 1 other vulnerability.
VCID-rt16-s8w5-8qgy
Aliases:
CVE-2026-44007
GHSA-8hg8-63c5-gwmx
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. With access to vm2, the sandbox constructs a new inner NodeVM with its own unrestricted require settings and executes arbitrary OS commands on the host. Any application that runs untrusted code inside a NodeVM with nesting: true is fully compromised. This vulnerability is fixed in 3.11.1.
3.11.1
Affected by 4 other vulnerabilities.
VCID-tvb2-2e76-27av
Aliases:
GHSA-2cm2-m3w5-gp2f
vm2 has access to `VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL` ### Summary https://github.com/patriksimek/vm2/security/advisories/GHSA-wp5r-2gw5-m7q7 is not fully patched. ### Details It is still possible to get access to `VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL`. ### PoC ```js const {VM} = require("vm2"); const vm = new VM(); console.log(vm.run(` globalThis['VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL'] `)); ```
3.11.2
Affected by 1 other vulnerability.
Vulnerabilities fixed by this package (13)
Vulnerability Summary Aliases
VCID-55dr-v6ew-s3e8 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-44006
GHSA-qcp4-v2jj-fjx8
VCID-6fr8-3aqn-wyce 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 obtain Symbol(nodejs.util.inspect.custom). This vulnerability is fixed in 3.11.0. CVE-2026-43997
GHSA-47x8-96vw-5wg6
VCID-77zs-22q5-d7ev 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 object is exposed to the sandbox, the value delivered to the sandbox .then() callback preserves host identity. This allows the sandbox to interact with the host object directly, including performing identity checks using host-side WeakMap and mutating host object state from inside the sandbox. This behavior occurs because the Promise fulfillment wrapper uses ensureThis() instead of the stronger cross-realm conversion path (from() / proxy wrapping). If no prototype mapping is found, ensureThis() returns the original object. As a result, objects resolved by host Promises can cross the sandbox boundary without proper isolation. This vulnerability is fixed in 3.11.0. CVE-2026-44000
GHSA-mpf8-4hx2-7cjg
VCID-88m4-3mra-mqfc 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. Because path validation uses path.resolve() (which does not dereference symlinks) but module loading uses Node's native require() (which does), an attacker can load arbitrary host-realm modules and achieve remote code execution. This vulnerability is fixed in 3.11.0. CVE-2026-43998
GHSA-cp6g-6699-wx9c
VCID-8he7-t256-1yct 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. CVE-2026-24781
GHSA-v37h-5mfm-c47c
VCID-8pe8-9mh9-27f3 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 sandboxed code to directly access the internal VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL variable, which exposes internal security functions (handleException, wrapWith, import). This vulnerability is fixed in 3.11.0. CVE-2026-44003
GHSA-wp5r-2gw5-m7q7
VCID-bcct-j6mk-z7hu 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 option cannot interrupt it. A single request can exhaust host memory and crash the process with a FATAL ERROR: Reached heap limit. This vulnerability is fixed in 3.11.0. CVE-2026-44004
GHSA-6785-pvv7-mvg7
VCID-gbh7-h2ek-hqgg 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 otherReflectDefineProperty(), which lets attacker-controlled JavaScript running in a default VM or inherited NodeVM mutate shared host Object.prototype, Array.prototype, and Function.prototype from inside the sandbox This vulnerability is fixed in 3.11.0. CVE-2026-44005
GHSA-vwrp-x96c-mhwq
VCID-gvhg-db7k-57ey 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-26332
GHSA-55hx-c926-fr95
VCID-hb4z-qz2p-rqc5 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 propagating to the host. The fix for CVE-2026-22709 (v3.10.2) only sanitized the onRejected callback in .then() and .catch() overrides and did not address the executor-to-unhandledRejection path. This vulnerability is fixed in 3.11.0. CVE-2026-44001
GHSA-hw58-p9xv-2mjh
VCID-kjca-h5yw-cudv 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. CVE-2026-24118
GHSA-grj5-jjm8-h35p
VCID-vwem-gghh-t7hc 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() to return unsanitized host absolute paths. Any sandboxed code can extract the full directory structure, library paths, and framework versions of the host server. This vulnerability is fixed in 3.11.0. CVE-2026-44002
GHSA-v27g-jcqj-v8rw
VCID-x2zr-7eqd-m3b7 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 any module by name directly in the host context, completely bypassing vm2's builtin restriction. This allows sandboxed code to load excluded builtins like child_process and achieve remote code execution. This vulnerability is fixed in 3.11.0. CVE-2026-43999
GHSA-947f-4v7f-x2v8

Date Actor Action Vulnerability Source VulnerableCode Version
2026-06-13T21:01:28.878833+00:00 GitLab Importer Affected by VCID-598j-pe72-qkh3 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/vm2/CVE-2026-45411.yml 38.6.0
2026-06-13T06:30:03.073004+00:00 GHSA Importer Affected by VCID-rt16-s8w5-8qgy https://github.com/advisories/GHSA-8hg8-63c5-gwmx 38.6.0
2026-06-13T06:30:03.028671+00:00 GHSA Importer Fixing VCID-88m4-3mra-mqfc https://github.com/advisories/GHSA-cp6g-6699-wx9c 38.6.0
2026-06-13T06:30:02.996185+00:00 GHSA Importer Fixing VCID-8pe8-9mh9-27f3 https://github.com/advisories/GHSA-wp5r-2gw5-m7q7 38.6.0
2026-06-13T06:30:02.964076+00:00 GHSA Importer Fixing VCID-vwem-gghh-t7hc https://github.com/advisories/GHSA-v27g-jcqj-v8rw 38.6.0
2026-06-13T06:30:02.929227+00:00 GHSA Importer Fixing VCID-77zs-22q5-d7ev https://github.com/advisories/GHSA-mpf8-4hx2-7cjg 38.6.0
2026-06-13T06:30:02.894342+00:00 GHSA Importer Fixing VCID-bcct-j6mk-z7hu https://github.com/advisories/GHSA-6785-pvv7-mvg7 38.6.0
2026-06-13T06:30:02.862496+00:00 GHSA Importer Fixing VCID-hb4z-qz2p-rqc5 https://github.com/advisories/GHSA-hw58-p9xv-2mjh 38.6.0
2026-06-13T06:30:02.828399+00:00 GHSA Importer Fixing VCID-x2zr-7eqd-m3b7 https://github.com/advisories/GHSA-947f-4v7f-x2v8 38.6.0
2026-06-13T06:30:02.796745+00:00 GHSA Importer Fixing VCID-gbh7-h2ek-hqgg https://github.com/advisories/GHSA-vwrp-x96c-mhwq 38.6.0
2026-06-13T06:30:02.755562+00:00 GHSA Importer Fixing VCID-6fr8-3aqn-wyce https://github.com/advisories/GHSA-47x8-96vw-5wg6 38.6.0
2026-06-13T06:30:02.721330+00:00 GHSA Importer Fixing VCID-55dr-v6ew-s3e8 https://github.com/advisories/GHSA-qcp4-v2jj-fjx8 38.6.0
2026-06-13T06:29:51.181241+00:00 GHSA Importer Fixing VCID-gvhg-db7k-57ey https://github.com/advisories/GHSA-55hx-c926-fr95 38.6.0
2026-06-13T06:29:51.138747+00:00 GHSA Importer Fixing VCID-8he7-t256-1yct https://github.com/advisories/GHSA-v37h-5mfm-c47c 38.6.0
2026-06-13T06:29:47.412175+00:00 GHSA Importer Fixing VCID-kjca-h5yw-cudv https://github.com/advisories/GHSA-grj5-jjm8-h35p 38.6.0
2026-06-12T22:25:10.431728+00:00 GitLab Importer Affected by VCID-8zk3-a7sw-u7an https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/vm2/CVE-2026-44009.yml 38.6.0
2026-06-12T22:24:48.384854+00:00 GitLab Importer Affected by VCID-tvb2-2e76-27av https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/vm2/GHSA-2cm2-m3w5-gp2f.yml 38.6.0
2026-06-12T22:24:18.911284+00:00 GitLab Importer Affected by VCID-g93v-7a6d-5bfm https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/vm2/CVE-2026-44008.yml 38.6.0
2026-06-12T22:23:46.483643+00:00 GitLab Importer Affected by VCID-rt16-s8w5-8qgy https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/vm2/CVE-2026-44007.yml 38.6.0
2026-06-12T22:23:46.096118+00:00 GitLab Importer Fixing VCID-vwem-gghh-t7hc https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/vm2/CVE-2026-44002.yml 38.6.0
2026-06-12T22:23:44.042853+00:00 GitLab Importer Fixing VCID-6fr8-3aqn-wyce https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/vm2/CVE-2026-43997.yml 38.6.0
2026-06-12T22:23:42.781960+00:00 GitLab Importer Fixing VCID-88m4-3mra-mqfc https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/vm2/CVE-2026-43998.yml 38.6.0
2026-06-12T22:23:42.689709+00:00 GitLab Importer Fixing VCID-gbh7-h2ek-hqgg https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/vm2/CVE-2026-44005.yml 38.6.0
2026-06-12T22:23:33.044096+00:00 GitLab Importer Fixing VCID-hb4z-qz2p-rqc5 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/vm2/CVE-2026-44001.yml 38.6.0
2026-06-12T22:23:32.090339+00:00 GitLab Importer Fixing VCID-8pe8-9mh9-27f3 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/vm2/CVE-2026-44003.yml 38.6.0
2026-06-12T22:23:31.404606+00:00 GitLab Importer Fixing VCID-bcct-j6mk-z7hu https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/vm2/CVE-2026-44004.yml 38.6.0
2026-06-12T22:23:23.719485+00:00 GitLab Importer Fixing VCID-x2zr-7eqd-m3b7 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/vm2/CVE-2026-43999.yml 38.6.0
2026-06-12T22:23:23.201104+00:00 GitLab Importer Fixing VCID-77zs-22q5-d7ev https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/vm2/CVE-2026-44000.yml 38.6.0
2026-06-12T22:23:22.536342+00:00 GitLab Importer Fixing VCID-55dr-v6ew-s3e8 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/vm2/CVE-2026-44006.yml 38.6.0
2026-06-12T22:21:10.049469+00:00 GitLab Importer Fixing VCID-8he7-t256-1yct https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/vm2/CVE-2026-24781.yml 38.6.0
2026-06-12T22:20:20.615510+00:00 GitLab Importer Fixing VCID-gvhg-db7k-57ey https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/vm2/CVE-2026-26332.yml 38.6.0
2026-06-12T22:20:00.854106+00:00 GitLab Importer Fixing VCID-kjca-h5yw-cudv https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/vm2/CVE-2026-24118.yml 38.6.0
2026-06-12T07:52:09.163840+00:00 GithubOSV Importer Fixing VCID-55dr-v6ew-s3e8 https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-qcp4-v2jj-fjx8/GHSA-qcp4-v2jj-fjx8.json 38.6.0
2026-06-12T07:52:05.018022+00:00 GithubOSV Importer Fixing VCID-gvhg-db7k-57ey https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-55hx-c926-fr95/GHSA-55hx-c926-fr95.json 38.6.0
2026-06-12T07:51:57.536652+00:00 GithubOSV Importer Fixing VCID-kjca-h5yw-cudv https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-grj5-jjm8-h35p/GHSA-grj5-jjm8-h35p.json 38.6.0
2026-06-12T07:51:55.055262+00:00 GithubOSV Importer Fixing VCID-gbh7-h2ek-hqgg https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-vwrp-x96c-mhwq/GHSA-vwrp-x96c-mhwq.json 38.6.0
2026-06-12T07:51:52.098676+00:00 GithubOSV Importer Fixing VCID-bcct-j6mk-z7hu https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-6785-pvv7-mvg7/GHSA-6785-pvv7-mvg7.json 38.6.0
2026-06-12T07:51:52.003128+00:00 GithubOSV Importer Fixing VCID-x2zr-7eqd-m3b7 https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-947f-4v7f-x2v8/GHSA-947f-4v7f-x2v8.json 38.6.0
2026-06-12T07:51:48.670630+00:00 GithubOSV Importer Fixing VCID-8he7-t256-1yct https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-v37h-5mfm-c47c/GHSA-v37h-5mfm-c47c.json 38.6.0
2026-06-12T07:51:36.848210+00:00 GithubOSV Importer Fixing VCID-8pe8-9mh9-27f3 https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-wp5r-2gw5-m7q7/GHSA-wp5r-2gw5-m7q7.json 38.6.0
2026-06-12T07:51:24.064935+00:00 GithubOSV Importer Fixing VCID-vwem-gghh-t7hc https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-v27g-jcqj-v8rw/GHSA-v27g-jcqj-v8rw.json 38.6.0
2026-06-12T07:51:03.652358+00:00 GithubOSV Importer Fixing VCID-77zs-22q5-d7ev https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-mpf8-4hx2-7cjg/GHSA-mpf8-4hx2-7cjg.json 38.6.0
2026-06-12T07:50:55.407209+00:00 GithubOSV Importer Fixing VCID-6fr8-3aqn-wyce https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-47x8-96vw-5wg6/GHSA-47x8-96vw-5wg6.json 38.6.0
2026-06-12T07:50:54.211718+00:00 GithubOSV Importer Fixing VCID-hb4z-qz2p-rqc5 https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-hw58-p9xv-2mjh/GHSA-hw58-p9xv-2mjh.json 38.6.0
2026-06-12T07:50:48.165319+00:00 GithubOSV Importer Fixing VCID-88m4-3mra-mqfc https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-cp6g-6699-wx9c/GHSA-cp6g-6699-wx9c.json 38.6.0