9.8Critical

CVE-2026-22709vm2 has a Sandbox Escape

patriksimek vm2 Published: (9 months ago)

Description

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.

Weakness (CWE): CWE-94CWE-913CWE-693

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
patriksimek vm2 < 3.10.2
vm2 project vm2 < 3.10.2

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:vm2_project:vm2:*:*:*:*:*:node.js:*:* < 3.10.2