vm2 is vulnerable to Sandbox Escape
85
High Risk
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.
You are affected if you are using a version that falls within the vulnerable range.
vm2 is vulnerable to Sandbox Escape in versions 3.10.5 - 3.10.5.
Upgrade the vm2 library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant