vm2 is vulnerable to Improper Authorization
42
CVE Score
Medium
Improper Authorization
The external module allowlist decides whether a resolved path belongs to an allowlisted module using a raw prefix comparison with no path-separator anchoring. A sibling package whose name shares a prefix with an allowlisted module is therefore treated as allowlisted. Code running under an allowlist with transitive loading disabled can reach non-allowlisted packages through relative requires. The fix anchors the comparison on the path separator so only the intended module directory matches.
Upgrade the vm2 library to the patch version.
You are affected if you are using a version that falls within the vulnerable range, use NodeVM with an external module allowlist, and have transitive loading disabled while executing untrusted guest code.
0.0.1 - 3.11.6
Fixed in 3.11.7vm2 is vulnerable to Improper Authorization in versions 0.0.1 - 3.11.6.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.