Uncaught Exception in vm2 - #VU161910
Published: November 8, 2026
Vulnerability details
The vulnerability allows an unauthenticated remote attacker to terminate the Node.js process hosting a vm2 sandbox, denying service.
The vulnerability exists due to missing rejection handling in vm2's host-constructor bridge when an application exposes a constructor that returns a rejected native Promise. An unauthenticated remote attacker can submit sandbox JavaScript that invokes this constructor and ignores its result, causing process termination when the host uses strict unhandled-rejection handling.