Protection Mechanism Failure in vm2 - #VU131740
Published: May 18, 2026
vm2
Detailed vulnerability description
The vulnerability allows a remote attacker to interfere with stack-trace formatting and observe bridge-internal data writes.
The vulnerability exists due to protection mechanism failure in defaultSandboxPrepareStackTrace in lib/setup-sandbox.js when processing error stack traces. A remote attacker can install a setter on Array.prototype at a targeted index to interfere with stack-trace formatting and observe bridge-internal data writes.
The issue is triggered when sandbox code reads error.stack or otherwise invokes Error.prepareStackTrace, and the current observed value is limited to appended primitive string frame text rather than a host-realm reference.