A serious security vulnerability has been identified in the isolated-vm library , a popular tool in the Node.js ecosystem used to run untrusted JavaScript code in an isolated environment . The vulnerability, if successfully exploited, could allow an attacker to escape the sandbox and affect the execution flow of the host system , potentially opening the way for remote code execution .

The development is particularly significant due to the library's widespread use. Isolated-vm is downloaded more than a million times a week and is used either directly or as a dependency in various projects. These include automation platforms and tools that leverage AI agents, such as n8n, Sim.ai, Mastra, and Activepieces.
See also: Chrome V8 JavaScript Engine: Critical vulnerability – Update now
The role of isolated-vm
The main purpose of isolated-vm is to provide a mechanism for Node.js applications to execute untrusted JavaScript without it having direct access to the rest of the system.
To do this, it leverages the Isolate feature of the V8 engine, the same fundamental isolation mechanism used in Google Chrome. The logic is simple but critical: the code runs in a separate environment, with restrictions designed to prevent access to sensitive host resources.
This model has gained even greater importance in recent years, as applications that incorporate AI agents often need to process dynamic data, scripts, or commands that cannot be considered reliable in advance.
The problem wasn't the V8
Endor Labs ' research showed that the vulnerability was not found in the V8 isolation mechanism itself. Instead, the problem was in the so-called glue code , that is, the C++ code that acts as a bridge between the library and the JavaScript engine.
Researcher Cris Staicu describes the vulnerability as type confusion, a class of error in which a program treats an object as if it were of a different type than it actually is. In sandbox environments, such an error can be particularly serious, as the interface layer is essentially part of the defenses surrounding isolated execution.
Why sandboxes remain a difficult proposition
Safely executing untrusted JavaScript has long been considered one of the most challenging challenges for Node.js. A typical example is vm2, which was widely used for sandboxingbut suffered more than 20 documented escapes before being abandoned.
See also: Chrome 144 fixes vulnerability in V8 JavaScript engine

The isolated-vm case shows that even an architecture based on a proven mechanism, such as V8, is not automatically invulnerable. A bug at the intermediate level can nullify some of the protection offered by the isolation mechanism itself.
Great importance for AI platforms
The issue becomes even more pressing as AI agents gain the ability to perform actions, invoke tools, and process data with limited human intervention. When such platforms use sandboxes to execute untrusted code, any weakness at this level can become a serious risk to the entire application.
See also: JavaScript malware: malvertising that assembles payload in browser memory

The isolated-vm developers have already addressed the issue in versions 7.0.1 and 6.2.0, which were released earlier this month. However, the public disclosure of the technical details means that organizations and developers should immediately check their dependencies and proceed with the upgrade.
🔒 Protect your privacy with Proton VPN
Swiss VPN from the creators of Proton Mail — strict no-logs policy, strong encryption, and built-in NetShield that blocks ads, trackers, & malware.
- ✔ No-logs, based in Switzerland (except 14-Eyes)
- ✔ NetShield: blocks ads, trackers & malicious domains
- ✔ Covers all devices — free version available
The link is an affiliate link — SecNews may receive a commission at no additional cost to you. It does not affect the independence of our article writing.
This case is a reminder that the security of a sandbox does not depend only on the core isolation technology. Every layer that transfers data to and from it can be a critical point of attack.
