patriksimek vm2 vulnerabilities (CVE)

CVE records published for patriksimek vm2, newest first. Follow to get an email when a new one appears.

69 results
7.5High
CVE-2026-100723

vm2 before 3.12.2 Memory Disclosure via zlib Buffer Pool

patriksimek vm2

vm2 before 3.12.2 does not apply its Buffer backing-store ownership invariant (byteOffset === 0 and buffer.byteLength === length) to Buffers returned from host builtin modules. When an application explicitly exposes Node's zlib module through NodeVM's builtin…

6.8Medium
CVE-2026-100722

vm2 before 3.12.2 Host Process Termination via Construct Trap

patriksimek vm2

vm2 before 3.12.2 does not apply host-side Promise rejection handling in the sandbox-to-host construct trap. In BaseHandler, the apply trap calls markHostPromiseHandled() on the returned value, but the adjacent construct path returns the result of Reflect.con…

9.0Critical
CVE-2026-100721

vm2 before 3.12.2 Authorization Bypass via Custom Resolver

patriksimek vm2

vm2 before 3.12.2 contains an authorization bypass in the NodeVM external-module resolver. When an embedder configures `require.external` with a custom resolver (and `context: 'host'`), `LegacyResolver.customResolve` in lib/resolver-compat.js records the reso…

10.0Critical
CVE-2026-93606

vm2 before 3.12.1 Sandbox Escape via Promise Symbol.species

patriksimek vm2

vm2 (npm) versions 3.12.0 and earlier contain a sandbox escape in `VM` and `NodeVM`. When an embedder exposes a host API that returns a host-realm Promise, the bridge's rejection sanitizer (hostPromiseSanitizeReject / makeSanitizedPromiseCallback / normalizeH…

7.2High
CVE-2026-93604

vm2 3.11.8 Sandbox Escape via crypto.setFips

patriksimek vm2

vm2 through 3.12.0 exposes Node.js's crypto.setFips() function to untrusted guest code when an embedder explicitly allowlists the crypto builtin for a NodeVM (require.builtin: ['crypto']). The builtin sanitizer (sanitizeCryptoModule in lib/builtin.js) replace…

10.0Critical
CVE-2026-92960

vm2 before 3.11.6 Process-wide State Exposure via os and dns

patriksimek vm2

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 process DNS resolver g…

7.1High
CVE-2026-92959

vm2 before 3.11.8 allowAsync Bypass via Promise Thenable

patriksimek vm2

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, Promise.all, Promise…

8.5High
CVE-2026-92958

vm2 before 3.11.7 Denylist Bypass via fs/promises

patriksimek vm2

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 exact module name i…

10.0Critical
CVE-2026-92955

vm2 before 3.11.8 Sandbox Escape via NodeVM

patriksimek vm2

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 trigger process events to…

8.6High
CVE-2026-92954

vm2 3.10.0 through 3.11.7 Denial of Service via Host Promise

patriksimek vm2

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 inside the sandbox are wr…

10.0Critical
CVE-2026-92953

vm2 3.11.0 through 3.11.7 Prototype Pollution via TypedArray

patriksimek vm2

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, and ArrayBuffer.prot…

6.8Medium
CVE-2026-92952

vm2 3.11.4 through 3.11.6 Sandbox Symbol Filtering Bypass

patriksimek vm2

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 fixed list of known…

9.9Critical
CVE-2026-92951

vm2 before 3.11.7 Module Allowlist Bypass via Custom Resolver

patriksimek vm2

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 requiring a colliding pa…

8.6High
CVE-2026-92950

vm2 before 3.11.7 Sandbox Escape via CLI require

patriksimek vm2

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) to re-execute itse…

4.0Medium
CVE-2026-92949

vm2 3.9.6 before 3.11.7 Sandbox Bypass via Accessor Descriptor

patriksimek vm2

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.getOwnPropertyDescriptor() or __lookupSet…

9.9Critical
CVE-2026-92948

vm2 3.9.6 through 3.11.5 Sandbox Escape via node:test

patriksimek vm2

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'] }). On Node.js 24+, m…

10.0Critical
CVE-2026-92947

vm2 before 3.11.7 Memory Disclosure via Buffer Pool

patriksimek vm2

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 ArrayBuffers from small…

10.0Critical
CVE-2026-92946

vm2 before 3.11.7 Remote Code Execution via require.external

patriksimek vm2

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 instance, and execu…