vm2 is vulnerable to Protection Mechanism Failure
53
Medium Risk
An internal identifier used to keep vm2’s private state out of guest reach could still be referenced through computed property access on globalThis. That exposes a privileged name and weakens the separation between guest-visible globals and implementation details. Attackers can use it as a gadget in larger exploit chains. The implementation moves the binding out of globalThis reach so computed-key access cannot recover it.
You are affected if you are using a version that falls within the vulnerable range.
vm2 is vulnerable to Protection Mechanism Failure in versions 0.0.1 - 3.11.1.
Upgrade the vm2 library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant