Intel

AIKIDO-2026-920930

vm2 is vulnerable to Sandbox Escape

Sandbox EscapeGHSA-pq68-rvw4-xp4r Published 5 days ago

100

Critical Risk

This Affects:

JSvm2
3.11.0 - 3.12.0
Fixed in 3.12.1
Are you affected? Scan for Free

TL;DR

vm2's NodeVM uses a hard denylist of builtin modules that must not reach the sandbox even when the module allowlist is *. The denylist omits child_process, so guest code that requests it through *, an explicit entry, or the node: spelling gets the real host module. A single execSync call then runs arbitrary commands on the host, leading to a sandbox escape. The fix adds child_process to the dangerous builtins denylist so it is refused under the wildcard and on explicit request.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you run untrusted code in NodeVM with a builtin allowlist of * or named modules.

Background info

vm2 is vulnerable to Sandbox Escape in versions 3.11.0 - 3.12.0.

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