• News/
  • https://www.bleepingcomputer.com/news/security/critical-vm2-sandbox-bug-lets-attackers-execute-code-on-hosts/

Critical vm2 sandbox bug lets attackers execute code on hosts

BleepingComputer
·
Bill Toulas
·
Published May 6, 2026
·
Updated

A critical vulnerability in the popular Node.js sandboxing library vm2 allows escaping the sandbox and executing arbitrary code on the host system. The security issue is tracked as CVE-2026-26956 and has been confirmed to impact vm2 version 3.10.4, although earlier releases may also be vulnerable. Proof-of-concept (PoC) exploit code has been published. In the security advisory, the maintainer says that the issue only impacts environments with Node.js 25 (confirmed on Node.js 25.6.1) that have enabled WebAssembly exception handling and JSTag support. vm2 is an open-source Node.js library used to run untrusted JavaScript code inside a restricted sandbox environment. It is commonly employed by online coding platforms, automation tools, and SaaS apps that execute user-supplied scripts. The library attempts to isolate sandboxed code from the host system and block access to sensitive Node.js APIs like process and the filesystem. vm2 is widely used, with more than 1.3 million weekly downloads on the npm (Node Package Manager), the default command-line package manager for Node.js. CVE-2026-26956 stems from the library’s erroneous handling of exceptions crossing between the sandboxed environment and the host. The advisory explains that vm2 normally relies on JavaScript-level protections that safeguard against host-based errors and bridge Proxies that wrap cross-context objects, both running entirely within JavaScript. However, WebAssembly exception handling can intercept JavaScript e...

Read full article

Affected Software

2 affected components
vm2 Node.js sandboxing library<=3.10.4
Node.js Node.js runtime>=25<=25, =25.6.1

Frequently Asked Questions

1

What is the main topic of this article?

The article discusses a critical vulnerability in the vm2 sandboxing library for Node.js that allows attackers to execute code on host systems.

2

What security implications are discussed?

The security implications include the risk of arbitrary code execution on host systems due to sandbox escape vulnerabilities.

3

What products or software are affected?

The vulnerability affects the vm2 Node.js sandboxing library and possibly earlier versions of the library.

4

What is the identifier for the vulnerability?

The vulnerability is tracked as CVE-2026-26956.

5

When was this vulnerability published?

The vulnerability was published on May 6, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203