Intel

AIKIDO-2026-128982

vm2 is vulnerable to Sandbox Escape

Sandbox EscapeGHSA-88hf-g992-jg85 Published 3 days ago

100

Critical Risk

This Affects:

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

TL;DR

Sandboxed code obtains a raw host __proto__ reader and walks the prototype chain of the console output streams to reach the host process object through the EventEmitter prototype. With a reference to a host being intrinsic, sandboxed code invokes host functionality and executes arbitrary commands on the host. This is a full sandbox escape from a NodeVM instance to the host process. The fix denies host prototype readers and diverts callable writes away from host prototypes so these references can no longer be obtained.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you execute untrusted JavaScript in a NodeVM sandbox.

Background info

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

How to fix this

Upgrade the vm2 library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform