vm2 is vulnerable to Improper Access Control
40
Medium Risk
Objects protected with the sandbox's freeze() and readonly() helpers remain mutable when they expose accessor properties. Sandboxed code retrieves the accessor descriptor and invokes the setter directly, which routes through the bridge and unwraps the read-only proxy to the underlying host object. This lets sandboxed code mutate host object state that was intended to be immutable, though plain data properties stay protected. The fix closes the setter-invocation path for frozen and read-only accessor-backed properties.
You are affected if you are using a version that falls within the vulnerable range and you rely on freeze() or readonly() to protect host objects that expose accessor properties.
vm2 is vulnerable to Improper Access Control in versions 3.9.6 - 3.11.6.
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.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant