Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
Back to intelligence
open-source-dependency-vulnerabilityproof-of-concept-releasewidely-deployed-product-advisory

Critical vm2 Sandbox Escape via Promise Callback Sanitization Bypass

Updated 3mo agoFirst seen Jan 27, 20267 sources

A critical sandbox-escape vulnerability in the popular Node.js sandbox library vm2 allows attackers to bypass isolation and execute arbitrary code on the host. Tracked as CVE-2026-22709 (CVSS v3.1 9.8, AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H), the issue stems from incomplete sanitization of Promise.prototype.then/Promise.prototype.catch callbacks in lib/setup-sandbox.js: local promise callbacks are sanitized, but global promise callbacks are not, and async functions return a globalPromise object that can be abused to reach unsanitized paths.

Public technical details describe an exploitation chain where an attacker leverages the unsanitized global promise catch behavior to obtain an error object’s constructor, traverse the prototype chain to the Function constructor, and then execute code outside the sandbox (including loading Node modules such as child_process to run system commands). The vulnerability affects vm2 versions prior to 3.10.2 (with some reporting noting exposure through 3.10.0 and below), and vm2 3.10.2 is identified as the fix; organizations running untrusted code via vm2 should prioritize upgrading and review any services that rely on vm2 for isolation.

Share:
Critical vm2 Sandbox Escape via Promise Callback Sanitization Bypass
Stay ahead

Get ahead of threats like this

Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.

EVENT TIMELINE

How this story unfolded

5 events from the most recent confirmed update back to the earliest known activity.

5 EVENTS
Jan 28, 20265mo ago

Maintainers and media urge upgrades to vm2 3.10.3

After disclosure and the 3.10.2 fix, reporting highlighted vm2 3.10.3 as the latest recommended release, with claims it includes additional or all disclosed sandbox-escape fixes. Users were advised to upgrade beyond vulnerable versions immediately.

Jan 27, 20265mo ago

Technical analyses and PoCs detail arbitrary code execution path

Subsequent reporting published exploit details showing how attackers could abuse unsanitized global Promise behavior, traverse to the Function constructor, and execute host commands such as via child_process.execSync. Multiple sources described proof-of-concept exploit chains and working demonstrations.

Jan 26, 20265mo ago

CVE-2026-22709 is publicly disclosed as a critical vm2 sandbox escape

The vulnerability was publicly disclosed as CVE-2026-22709, affecting vm2 and allowing attackers to escape the Node.js sandbox and execute arbitrary code on the host. Reports describe the root cause as incomplete sanitization of Promise.prototype.then and Promise.prototype.catch when async functions return global Promise objects.

vm2 3.10.2 fully fixes CVE-2026-22709

The vm2 maintainers released version 3.10.2 to fully address CVE-2026-22709, a sandbox escape caused by improper sanitization of Promise callback handling. The fix covers affected versions prior to 3.10.2 and is referenced by the release tag, fixing commit, and GitHub Security Advisory.

vm2 3.10.1 partially fixes the sandbox escape flaw

A partial mitigation for the vm2 sandbox escape vulnerability was released in version 3.10.1, but the issue was not fully resolved. Later reporting states the flaw remained exploitable until a subsequent release.

LINKED ENTITIES

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

15 LINKEDOpen in app
The operational view lives in Mallory

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t — which of your assets are affected, which threat actors are using it right now, which detections to deploy, and what to do next.
Exposure mapping

Map indicators from this story to your assets and identify affected systems in minutes.

Threat actor evidence

Every observed campaign, victim, and pivot linked to actors named in this story.

Associated malware

Malware, exploits, and IOCs connected to the activity described here.

Detection signatures

YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.

Scheduled alerts

Get matching new stories delivered to your team as they break — not the next morning.

AI threads

Ask questions about this story and take action on the answers.

Critical vm2 Sandbox Escape via Promise Callback Sanitization Bypass | Mallory