Exposure of Resource to Wrong Sphere in vm2 - #VU129588
Published: May 4, 2026
vm2
Detailed vulnerability description
The vulnerability allows a remote attacker to disclose sensitive information and modify host object state.
The vulnerability exists due to improper isolation in Promise.prototype.then handling in setup-sandbox.js when processing host-side Promise resolutions exposed to the sandbox. A remote attacker can expose a host-side Promise that resolves to a host object and access the resolved value inside a sandbox .then() callback to disclose sensitive information and modify host object state.
Host object identity is preserved across the sandbox boundary, enabling host-side WeakMap or WeakSet identity checks from within the sandbox.