vm2 NodeVM `nesting: true` bypasses `require: false` allowing sandbox escape and arbitrary OS command execution
What to do
- Upgrade to a fixed version: vm2 3.11.1.
- 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