vm2 is vulnerable to Protection Mechanism Failure
30
Low Risk
Affected versions of this package allow sandbox escape via WebAssembly.JSTag, where wasm exception handling can catch JavaScript exceptions and bypass transformer catch instrumentation that only wraps JS catch clauses. An attacker can craft a malicious wasm module that imports JSTag, triggers a host TypeError, captures the exception as an externref, and leverage the host error’s constructor chain to escape the sandbox. This enables unauthorized access to host objects and breaks isolation guarantees.
You are affected if you are using a version that falls within the vulnerable range.
vm2 is vulnerable to Protection Mechanism Failure in versions 3.9.6 - 3.10.4.
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