Improper access control in isolated-vm - CVE-2021-21413
Published: March 30, 2021 / Updated: November 9, 2026
Vulnerability details
The vulnerability allows an attacker controlling code in an isolate to escape isolation and access the permissions of the main Node.js context.
The vulnerability exists due to unrestricted prototype-chain traversal through Reference objects in isolated-vm when an application exposes such an object to untrusted isolate code. An attacker controlling code in an isolate can traverse the exposed reference to obtain a reference to the main context's Function object.