
UpTrajectory Review
A widely used open-source JavaScript sandbox called vm2 contains thirteen critical vulnerabilities, one of which allows attackers to break out of the sandbox entirely and run arbitrary commands on the host system. The vm2 package is designed to safely execute untrusted code by isolating it in a container with only whitelisted Node.js modules available. Developers using vm2 in their applications have been advised to update immediately to version 3.11.2. The most severe flaw, tracked as CVE-2026-26956, represents a complete sandbox escape: malicious code fed into the VM.run() function can obtain the host process object and execute commands without any host cooperation.
For small-business operators running applications that process user-supplied code—whether through plugins, templates, automation scripts, or third-party integrations—this vulnerability is a direct threat to infrastructure security. If your application relies on vm2 to safely run untrusted JavaScript, an attacker could potentially move from that sandboxed environment into your servers and databases. This is not a theoretical risk but an active exploitation vector. The stakes are particularly high for SaaS platforms, no-code tools, and workflow automation vendors that encourage users to upload custom code. Any delay in patching exposes your systems and your customers' data to compromise.
The vulnerability's scope matters: researchers at Socket initially confirmed the exploit only on Node.js 25.6.1 with specific WebAssembly features enabled, suggesting the flaw might not affect every vm2 deployment equally. Socket later issued guidance indicating the vulnerability's reach is broader than the original advisory stated, and some security scanners may have missed affected configurations. This bait-and-switch in severity assessment is typical of complex vulnerabilities but creates real operational friction: teams must decide whether they fit the 'narrow' or 'broad' risk profile, and they cannot trust the first advisory to be complete. The update language also hints that dependency scanning tools—the automated sentries most teams rely on—may not flag this correctly on first pass.
The second-order effects ripple outward quickly. Organizations using vm2 with user-controlled JavaScript inputs face immediate risk, but so do their customers and downstream integrations. An attacker who compromises a vm2-powered application could pivot to steal data, modify records, or weaponize the environment against other systems. Teams using dependency management tools may discover false negatives: your scanner may report vm2 as safe when it is not. Vendors who bundle vm2 internally face pressure to patch not just their own code but to communicate the urgency to their customer base, many of whom will not understand the technical distinction between a narrow and broad vulnerability scope.
Act now if you use vm2: audit your codebase immediately for any dependency on this package, check which Node.js version your applications run, and prioritize the update to 3.11.2 above routine patching schedules. If you cannot patch immediately, review what permissions the sandboxed process holds—if it has access to sensitive databases or system commands, isolate or disable it until you can update. Do not wait for your dependency scanner to alert you; manually verify that vm2 appears in your dependency tree. If you are a vendor whose customers use your application, notify them directly rather than waiting for them to discover this through security channels. The gap between the initial advisory and Socket's expanded guidance demonstrates why direct communication beats automatic scanning in these moments.
Takeaway: Audit your codebase for vm2 dependencies and update to version 3.11.2 immediately, regardless of what your dependency scanner reports.
Excerpt from the original — CSO Online
Thirteen critical vulnerabilities have been found in the vm2 JavaScript sandbox package that could allow an attacker’s code to escape the container and do nasty things to IT environments. As a result, developers using this library in their applications are urged to update the software to the latest version, which is currently 3.11.2.
The warnings come in advisories from vm2 maintainer Patrik Simek.
vm2 is an open source vm/sandbox that can run untrusted code with whitelisted Node.js’s built-in modules.
One of the more serious of the 13 vulnerabilities is CVE-2026-26956, a full sandbox escape with arbitrary code execution. Attacker code that is inside VM.run() can obtain host process object and runs host commands with zero co-operation from the host.
However, researchers at Socket told us in an email that the advisory about this escape says it has been confirmed only on …