Research1 in 10 popular npm releases needed a hotfix

critical vulnerability

vm2 NodeVM `nesting: true` bypasses `require: false` allowing sandbox escape and arbitrary OS command execution

Published May 7, 2026 · updated Nov 4, 2026

What to do

  1. Upgrade to a fixed version: vm2 3.11.1.
  2. Redeploy and restart long-running processes so they load the fixed code.

Affected packages

vm2

<= 3.11.0
3.11.1

Check your project: npm ls vm2 --all

Is vm2@3.11.1 safe to install? See the upgrade verdict →

Sources

← All critical vulnerabilities