
UpTrajectory Review
Thirteen critical flaws in the vm2 JavaScript sandbox, an open-source library that runs untrusted code inside Node.js applications, have pushed maintainer Patrik Simek to urge every user to upgrade to version 3.11.2. The headline finding, CVE-2026-26956, lets attacker code slip out of VM.run(), grab the host process object, and execute commands on the underlying machine. Socket's researchers note the confirmed case runs on Node.js 25.6.1 with WebAssembly exception handling and JSTag support, though their follow-up guidance widens the scope and warns that some dependency scanners will miss affected builds. A day after InfoWorld's report, Socket corrected the record: the vulnerable footprint is broader than the first advisory claimed.
If your small business ships software that evaluates user-supplied JavaScript, vm2 likely sits in your dependency tree, often pulled in silently by a framework or plugin you installed years ago. The worst-case pairing is vm2 3.10.4 on Node 25 passing attacker-controlled code into VM.run(). One exploited escape turns your sandbox into an open door to the host process, its files, its network, and every other tenant on that server. A single compromised evaluation call can cascade into data theft, lateral movement, or a full environment takeover. Operators who treat sandboxing as a hard boundary should treat this as a boundary failure.
What is genuinely new is the speed of the scope revision. The original advisory pinned the escape to a narrow Node 25/WebAssembly combination; Socket's updated guidance now says the package and runtime reach is wider, and some scanners will under-report exposure. That reversal matters because teams often patch to the letter of the first advisory, run a scanner, see green, and move on. We are skeptical of any posture that relies on a single tool's verdict this week. The contested point is how many deployments actually sit in the blast radius; the honest answer is that nobody knows yet, and the safe assumption is that yours does until you verify otherwise.
The second-order effects hit different operators unevenly. A solo developer running vm2 on an isolated VM faces a bad day; a multi-tenant SaaS provider faces a breach notification, regulatory exposure, and customer churn. Managed service providers who embed vm2 in client tooling inherit every client's risk. The cost of patching is a version bump and a regression test; the cost of waiting is incident response, forensics, and rebuilding trust. Dependency scanners that lag the corrected scope will leave a false sense of security in their wake, and that gap will be exploited.
Patch to vm2 3.11.2 today, then audit every project that evaluates untrusted JavaScript, including transitive dependencies you did not install directly. Do not trust a scanner that still shows clean; run npm ls vm2 or check your lockfile by hand. Isolate any sandboxed workload on a dedicated VM or container with minimal privileges, and review what the host process can reach. Watch Socket's guidance and the vm2 advisories for further scope corrections, and assume the next sandbox escape is already in the wild.
“When those conditions line up, the security boundary fails completely: code that was supposed to be confined to the sandbox can reach the host process and execute commands.” — InfoWorld
Takeaway: Upgrade vm2 to 3.11.2 now, audit every project that runs untrusted JavaScript, and do not trust a dependency scanner that still shows clean.
Excerpt from the original — InfoWorld
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 …