Intel

AIKIDO-2026-280286

vm2 is vulnerable to Sandbox Escape

Sandbox EscapeGHSA-qhwx-74w5-xhxq Published 2 days ago

99

Critical Risk

This Affects:

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

TL;DR

When the node:test builtin is allowlisted, the prefix-stripping logic removes only a single node: prefix, so requesting node:node:test resolves to the real host module past the read-only proxy. Sandboxed code calls the host test runner's run() with a controlled execArgv. This spawns unrestricted child processes with arbitrary evaluation arguments, giving full code execution under the host identity. The fix corrects prefix normalization so the doubled form cannot reach the host module.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you allow the node:test builtin in the sandbox and you run Node.js 24 or later.

Background info

vm2 is vulnerable to Sandbox Escape in versions 3.9.6 - 3.11.6.

How to fix this

Upgrade the vm2 library to the patch version.