vm2 is vulnerable to Remote Code Execution (RCE)
100
Critical Risk
Promise species hijacking lets sandbox code steer then/catch/finally handlers onto attacker-chosen constructors. That exposes host-realm objects and enables full escape from VM sandboxes. Untrusted JavaScript executed as a security boundary is fully compromised. The fix hardens Promise species handling in lib/setup-sandbox.js and related bridge logic.
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