Intel

AIKIDO-2026-669161

vm2 is vulnerable to Sandbox Bypass

Sandbox BypassGHSA-f8gf-w286-fmq2 Published 2 days ago

71

High Risk

This Affects:

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

TL;DR

The library restricts asynchronous execution when configured with allowAsync: false, but the Promise static methods such as Promise.resolve, Promise.all, and Promise.race remain reachable from sandboxed code. This bypasses the async-execution restriction and the run timeout, letting sandboxed code keep executing outside the intended boundary. The fix guards the resolve capability across executor wrappers, static methods, and related entry points so thenable assimilation can no longer schedule async work.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you run untrusted code with the allowAsync: false option expecting asynchronous execution to be blocked.

Background info

vm2 is vulnerable to Sandbox Bypass 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