vm2 is vulnerable to Sandbox Bypass
71
High Risk
The library restricts asynchronous execution when configured with allowAsync: false, but the Promise static methods such as Promise.resolve, Promise.all, and Promise.race remain reachable from sandboxed code. This bypasses the async-execution restriction and the run timeout, letting sandboxed code keep executing outside the intended boundary. The fix guards the resolve capability across executor wrappers, static methods, and related entry points so thenable assimilation can no longer schedule async work.
You are affected if you are using a version that falls within the vulnerable range and you run untrusted code with the allowAsync: false option expecting asynchronous execution to be blocked.
vm2 is vulnerable to Sandbox Bypass in versions 0.0.1 - 3.11.7.
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.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.