Improper Check or Handling of Exceptional Conditions in vm2 - #VU129599
Published: May 4, 2026
vm2
Detailed vulnerability description
The vulnerability allows a remote attacker to execute arbitrary commands on the host system.
The vulnerability exists due to improper exception handling in handleException when processing exceptions with a null prototype. A remote attacker can throw and catch a crafted sandbox object with a null prototype to execute arbitrary commands on the host system.
Exploitation requires the ability to execute arbitrary code inside the context of a vm2 sandbox.