vm2 is vulnerable to Denial of Service
86
High Risk
A host promise that reaches the sandbox through a constructor return, a host getter or data property, or a callback argument has no rejection reaction in lib/bridge.js. Sandbox code that drops a rejected host promise then terminates the host process under Node's unhandledRejection policy. A prior fix marked promises as handled only on apply returns, so the construct trap and the other delivery routes stay unguarded. The fix marks every host promise as handled once at the delivery chokepoint and gives the construct trap the same unconditional marking as apply.
You are affected if you are using a version that falls within the vulnerable range and you expose host promises to sandboxed code under a strict unhandledRejection policy.
vm2 is vulnerable to Denial of Service in versions 0.1.0 - 3.12.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.

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.