vm2 is vulnerable to Remote Code Execution
100
CVE Score
Critical
Remote Code Execution
The sandbox bridge sanitizes host error objects that reach sandboxed code, but identity checks on the call target fail when handlers are registered through Function.prototype.call indirection. Using a pattern such as p.then.call(p, undefined, cb), the intercepted target is the host call function rather than the promise handler, so sanitization is skipped. Unsanitized host error objects carrying references to host objects reach the sandbox, allowing code execution with host privileges. The fix closes the call and apply indirection so rejection handlers are sanitized correctly.
Upgrade the vm2 library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you expose a host-realm Promise to the sandbox that can reject with host-object properties.
3.11.6 - 3.11.6
Fixed in 3.11.7vm2 is vulnerable to Remote Code Execution in versions 3.11.6 - 3.11.6.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
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.