Skip to main content
← All vulnerabilities
CVE-2026-22709GHSA-99P7-6V5W-7XG8

vm2 has a Sandbox Escape

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.10.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: total

Summary

vm2 is an open source vm/sandbox for Node.js. In vm2 prior to version 3.10.2, `Promise.prototype.then` `Promise.prototype.catch` callback sanitization can be bypassed. This allows attackers to escape the sandbox and run arbitrary code. In lib/setup-sandbox.js, the callback function of `localPromise.prototype.then` is sanitized, but `globalPromise.prototype.then` is not sanitized. The return value of async functions is `globalPromise` object. Version 3.10.2 fixes the issue.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • patriksimek vm2

    fixed in 3.10.2

  • vm2npm

    fixed in 3.10.2

References 3

GitHub · patriksimek/vm2