[ CVE-2026-100722 · Published 27 Sep 2026 ]

vm2: Host Promise rejection from an exposed constructor can terminate the vm2 host process

CVSS 6.8 EPSS <1%1 agency advisoryFix available

[ Why it matters ]Priority signals

  • Public proof-of-concept exploit exists (CISA SSVC)

[ Description ]Official description

vm2 before 3.12.2 does not apply host-side Promise rejection handling in the sandbox-to-host construct trap. In BaseHandler, the apply trap calls markHostPromiseHandled() on the returned value, but the adjacent construct path returns the result of Reflect.construct without the same sanitization. If an embedder exposes a constructable host function whose constructor returns a native rejected Promise, an untrusted script executed via VM.run can invoke it with `new` and ignore the result; the rejected host Promise crosses the bridge unhandled and, under Node's strict unhandled-rejection policy, is promoted to an uncaught exception that terminates the host process.

[ Fixes ]Fixes and patches

  • vm2 3.12.2Fixed version · GitHub Advisories · npm package vm2: upgrade to 3.12.2 or later (affected <= 3.12.1)

[ Advisories ]Government CERT advisories

[ Packages ]Affected open-source packages