vm2 is vulnerable to Remote Code Execution (RCE)
100
Critical Risk
The NodeVM builtin denylist omits process and inspector/promises. Sandboxed code that may load those builtins can call process.getBuiltinModule('child_process') or Runtime.evaluate via the inspector protocol. That bypasses intended builtin restrictions and executes code in the host process. The fix adds these modules to the dangerous builtin blocklist in lib/builtin.js.
You are affected if you are using a version that falls within the vulnerable range.
vm2 is vulnerable to Remote Code Execution (RCE) in versions 3.0.0 - 3.11.3.
Upgrade the vm2 library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant