Tuesday, August 11, 2026
LIVEThe Unrelenting Cyber Battle: Hacking Threats and the Imperative of Robust Data Protection///Navigating the Cyber Labyrinth: Bolstering Defenses Against Evolving Hacking Threats///The Dual Front War: Battling Hacking and Bolstering Data Protection in the Digital Age///The Ever-Evolving Cyber Threat Landscape: Navigating Hacking and Fortifying Data Protection///The Unseen Battle: Fortifying Data in an Age of Relentless Hacking///The Unseen War: Hacking's Relentless Advance and the Imperative of Data Protection///The Evolving Threat Landscape: Hacking, Data Protection, and the Imperative for Proactive Security///Navigating the Digital Minefield: Bolstering Data Protection in an Era of Relentless Hacking///The Dual Fronts of Digital Defense: Combating Hacking and Fortifying Data Protection///Hacking's New Frontier: Fortifying Data Protection in the Age of Advanced Cyber Threats///The Dual Front: Navigating Hacking Threats and Fortifying Data Protection in the Digital Age///Navigating the Digital Gauntlet: The Evolving Nexus of Hacking and Data Protection///The Unrelenting Cyber Battle: Hacking Threats and the Imperative of Robust Data Protection///Navigating the Cyber Labyrinth: Bolstering Defenses Against Evolving Hacking Threats///The Dual Front War: Battling Hacking and Bolstering Data Protection in the Digital Age///The Ever-Evolving Cyber Threat Landscape: Navigating Hacking and Fortifying Data Protection///The Unseen Battle: Fortifying Data in an Age of Relentless Hacking///The Unseen War: Hacking's Relentless Advance and the Imperative of Data Protection///The Evolving Threat Landscape: Hacking, Data Protection, and the Imperative for Proactive Security///Navigating the Digital Minefield: Bolstering Data Protection in an Era of Relentless Hacking///The Dual Fronts of Digital Defense: Combating Hacking and Fortifying Data Protection///Hacking's New Frontier: Fortifying Data Protection in the Age of Advanced Cyber Threats///The Dual Front: Navigating Hacking Threats and Fortifying Data Protection in the Digital Age///Navigating the Digital Gauntlet: The Evolving Nexus of Hacking and Data Protection///
Subscribe
Cyber Security
Independent · Digital
Thehackingpost
CybersecurityAI-assisted

Critical Vulnerability in VM2 Sandbox Library for Node.js Let Attackers run Untrusted Code

A critical sandbox escape vulnerability has been identified in vm2, a widely used Node.js library for sandbox isolation of untrusted code execution.

A critical sandbox escape vulnerability has been identified in vm2, a widely used Node.js library for sandbox isolation of untrusted code execution.

The flaw, tracked as CVE-2026-22709 (GHSA-99p7-6v5w-7xg8), affects all versions up to and including 3.10.0, with a CVSS v3.1 base score of 10.0, indicating maximum severity.

The vulnerability arises from incomplete callback sanitization in Promise prototype handling. While the vm2 developers sanitized callbacks for localPromise.prototype.then , the sanitization does not apply to globalPromise.prototype.then . Since async functions return global Promise objects, attackers can bypass sandbox restrictions and gain code execution privileges on the underlying host system.

Researchers discovered that Promise.prototype.catch callbacks can be manipulated through error stack manipulation. By creating an error object with a symbolic name and triggering an async function, an attacker gains access to the Error constructor, enabling arbitrary code execution via the Function constructor.

A critical sandbox escape vulnerability has been identified in vm2, a widely used Node.js library for sandbox isolation of untrusted code execution.
Brooke Sanders · Thehackingpost

The attack chain leverages this progression to instantiate a Function object with arbitrary payload code. In proof-of-concept demonstrations, attackers successfully executed system commands such as execSync() via access to the child_process module, circumventing the sandbox isolation layer.

VM2 maintainers released version 3.10.2, a patched version, to address the flaw. This update properly sanitizes Promise callbacks across both local and global prototype chains, closing the sandbox escape vector.

Organizations using vm2 should immediately upgrade to version 3.10.2 or later. Conduct inventory assessments across development and production environments to identify affected deployments. Deploy version 3.10.2 through your package management pipeline without delay and ensure no production instances remain on vulnerable versions. Until patching is complete, consider restricting VM2 execution contexts to trusted code only.

Advertisement

Development teams relying on VM2 for code sandboxing should treat this as a critical priority. The package co-founder, Patrik Šimek, published a GitHub advisory demonstrating active maintenance and a rapid response to the security issue.

Based on reporting by Cyber Security News.

AI transparency. This article was produced with the assistance of artificial intelligence and published under human editorial oversight. AI systems can make mistakes. Read how we use AI (EU AI Act, Art. 50).
Related Stories