Loading SecureCyberVM…
SecureCyberVM
CVE Lookup Daily Threat Briefing Exploited CVEs Ransomware Zero-day
SecureCyberVM
Get the Patch Brief

vm2 sandbox escape CVE-2026-26956 lets untrusted code run on the Node.js host

A critical sandbox escape in the vm2 Node.js library, CVE-2026-26956, lets untrusted code reach the host process through WebAssembly exception handling. Proof-of-concept code is public and vm2 3.10.5 fixes it.

vm2 sandbox escape CVE-2026-26956 lets untrusted code run on the Node.js host

A critical vulnerability in vm2, a widely used JavaScript sandboxing library for Node.js, allows code running inside the sandbox to break out and execute arbitrary code on the host system. The flaw is tracked as CVE-2026-26956, and Qualys reports that proof-of-concept code is publicly available.

vm2 is designed to run untrusted JavaScript safely and, according to Qualys, records more than 16 million downloads a month. It is used in code editors, function-as-a-service platforms, security and testing tools, and other software that executes code supplied by users. Version 3.10.5 fixes the issue.

What happened

The vm2 advisory, as summarized by Qualys, explains that the sandbox enforces isolation with two JavaScript-level mechanisms: a code transformer that wraps host errors caught inside the sandbox, and proxy objects that mediate access to objects crossing between the sandbox and the host.

WebAssembly exception handling operates below that layer. When WebAssembly code catches a JavaScript exception using the JSTag mechanism, V8 handles it at the engine level, before vm2’s JavaScript safeguards run. The caught exception is handed back as an ordinary value, so a host-realm error object reaches sandboxed code without being sanitized. From that object, attacker code can reach the host’s function constructor and, through it, the host process, which leads to arbitrary code execution outside the sandbox.

Who is affected

PackageAffectedFixed
vm2 (npm)3.10.43.10.5

Qualys notes that exploitation is only possible on Node.js versions that support WebAssembly exception handling and JSTag; the researchers tested the issue on Node.js v25.6.1. The sources do not list the earliest affected Node.js release. Applications that pull in vm2 as a transitive dependency are affected in the same way as those that use it directly.

Applications that never pass untrusted code to vm2 are not directly exploitable through this flaw, but they should still update, since usage patterns change and the fix is a patch-level release.

Severity and exploitation

Qualys rates the vulnerability critical but does not publish a CVSS score or vector; the GitHub advisories carry the scoring. Public proof-of-concept code exists. The sources do not report exploitation in the wild.

Qualys detects the vulnerable package with QID 5011814, available for container scanning.

What defenders should do now

  1. Upgrade vm2 to 3.10.5 in every application and lockfile, including transitive dependencies.
  2. Rebuild and redeploy container images that bundle vm2.
  3. Identify services that execute code from untrusted users through vm2 and prioritize those first.
  4. Run sandboxing services with least privilege and inside an OS-level isolation boundary such as a container or separate VM.
  5. Evaluate whether a process- or VM-based isolation approach should replace in-process JavaScript sandboxing for high-risk workloads.

SCVM analysis

vm2 has a long history of sandbox escapes, and this one again shows the limits of enforcing isolation in the same language runtime as the attacker’s code. New engine features such as WebAssembly exception handling create paths that a JavaScript-level sandbox cannot see.

For vulnerability management, the main challenge is discovery: vm2 often arrives as a dependency of another package. Software composition analysis across repositories and images, rather than host scanning alone, is the practical way to find every copy.

Sources

About this article: produced by the SCVM Newsroom with AI assistance from the public sources linked above, enriched with NVD, FIRST EPSS and CISA KEV data, and checked by automated quality controls under our editorial policy. Spotted an error? Request a correction.

SecureCyberVM

Install SecureCyberVM

Get the Daily Threat Briefing and exploited-CVE alerts one tap away, full screen, like an app.