Node.js 24 Sandbox Escape in vm2 by Allowlist Bypass
CVE-2026-92948
9.4CRITICAL
What is CVE-2026-92948?
The vulnerability in vm2 allows an attacker to escape the sandbox environment on Node.js 24 and newer when the node:test builtin is explicitly permitted. This occurs due to the interaction between module.builtinModules and the DANGEROUS_BUILTINS protection. The exploit enables untrusted code to execute arbitrary JavaScript in the host Node process, posing significant security risks. The issue affects vm2 versions from 3.9.6 to 3.11.6 and has been addressed in version 3.11.7.
Affected Version(s)
vm2 3.9.6 < 3.11.7
vm2 3.11.7
