Protection mechanism failure in vm2 - CVE-2026-92937
Published: August 25, 2026 / Updated: September 18, 2026
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the host system.
The vulnerability exists due to a protection mechanism failure in the Promise rejection sanitization logic in lib/bridge.js when registering a rejection handler through call/apply indirection on a host Promise. A remote attacker can submit crafted JavaScript that uses Function.prototype.call or apply to bypass sanitization and execute arbitrary code on the host system.
Exploitation requires the application to evaluate attacker-controlled code with vm2, expose a host-realm Promise to the sandbox, and have that Promise reject with an Error object whose own property references a host object.