Protection mechanism failure in vm2 - CVE-2026-47686
Published: August 15, 2026
Vulnerability details
The vulnerability allows a remote user to execute arbitrary code on the host system.
The vulnerability exists due to protection mechanism failure in the handleException function in lib/setup-sandbox.js when handling host-thrown errors with an unsanitized Error.cause property. A remote user can access a host object reference through the error cause and invoke host functionality to execute arbitrary code on the host system.
Exploitation requires that an embedder-exposed function throws an Error whose cause references a powerful host object.