Intel

AIKIDO-2026-10728

vm2 is vulnerable to Sandbox Escape

Sandbox EscapeGHSA-cp6g-6699-wx9c Published May 4, 2026

85

High Risk

This Affects:

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

TL;DR

NodeVM enforces require.root by comparing paths, but symlinked entries can resolve outside the intended directory prefix. Workspace layouts that rely on symlinks make the issue practical. The failure is classic link-following that defeats a prefix check and can become a sandbox escape. The library now canonicalizes candidates with realpath before enforcing the root boundary, and custom filesystem adapters must implement realpath support.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

vm2 is vulnerable to Sandbox Escape in versions 3.10.5 - 3.10.5.

How to fix this

Upgrade the vm2 library to the patch version.