Intel

AIKIDO-2026-87273

vm2 is vulnerable to Sandbox Escape

Sandbox EscapeCVE-2026-47698 Published 4 days ago

98

Critical Risk

This Affects:

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

TL;DR

vm2 blocks calls to dangerous host prototype mutators to prevent sandbox code from tampering with host object prototypes, but the guard only recognizes direct invocations. Sandbox code bypasses the check by routing the mutator through an indirect call form. This lets sandbox code alter a host error object's prototype and reach the host constructor chain, obtaining a reference to process and executing arbitrary commands on the host. The fix detects and blocks the indirect-call bypass of the prototype mutators.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you execute untrusted code inside a vm2 sandbox.

Background info

vm2 is vulnerable to Sandbox Escape in versions 0.0.1 - 3.11.5.

How to fix this

Upgrade the vm2 library to the patch version.