Incorrect authorization in vm2 - #VU161909
Published: November 8, 2026
Vulnerability details
The vulnerability allows an unauthenticated remote attacker to execute existing host code outside the vm2 NodeVM sandbox.
The vulnerability exists due to missing path-boundary checks when NodeVM authorizes custom-resolved external modules in a configuration using a custom resolver and context: 'host'. An unauthenticated remote attacker can submit guest JavaScript that first requires an allowlisted module and then requires an existing readable sibling file sharing its path prefix, causing the unauthorized file to execute in the host process.