Remote Code Execution Vulnerability in vm2 by Patrik Simek
CVE-2026-92946
10CRITICAL
What is CVE-2026-92946?
The vm2 package, prior to version 3.11.7, is susceptible to a remote code execution vulnerability that arises when the require.external function is enabled without proper restrictions through require.root. This misconfiguration permits maliciously crafted code running within a sandbox to require the vm2 package itself, leading to the instantiation of an unrestricted NodeVM instance. As a result, attackers could execute arbitrary commands on the host operating system using Node.js's child_process module, potentially leading to severe security implications. Organizations leveraging vm2 should upgrade to the latest version to mitigate this risk.
Affected Version(s)
vm2 0 < 3.11.7
vm2 3.11.7
