vm2 is vulnerable to Remote Code Execution
65
Medium Risk
Host promise resolution can preserve host object identity through .then handling and null-prototype edge cases in sanitizer callbacks. Attackers unwrap those identities to obtain raw host objects inside guest reach. That violates the intended boundary for promises bridged into the sandbox. Sanitization is tightened so host objects cannot be smuggled through those resolution paths.
You are affected if you are using a version that falls within the vulnerable range.
vm2 is vulnerable to Remote Code Execution in versions 0.0.1 - 3.10.5.
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