Intel

AIKIDO-2026-952274

vm2 is vulnerable to Remote Code Execution

Remote Code ExecutionGHSA-647f-g98j-qq25 Published Yesterday

100

Critical Risk

This Affects:

JSvm2
3.11.6 - 3.11.6
Fixed in 3.11.7
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

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.

Background info

vm2 is vulnerable to Remote Code Execution in versions 3.11.6 - 3.11.6.

How to fix this

Upgrade the vm2 library to the patch version.