Protection Mechanism Failure in vm2 - CVE-2026-47140
Published: May 18, 2026
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code in the host process.
The vulnerability exists due to protection mechanism failure in the NodeVM builtin denylist in lib/builtin.js when exposing non-denied builtins to sandboxed code through require.builtin. A remote attacker can require the process or inspector/promises builtins to execute arbitrary code in the host process.
This affects applications that allow untrusted JavaScript to run inside NodeVM with process, inspector/promises, or the wildcard "*" permitted in require.builtin; it is not reachable with the default configuration where require is disabled or no affected builtins are allowed.