Intel

AIKIDO-2026-793925

vm2 is vulnerable to Denial of Service

Denial of ServiceGHSA-2v2p-6j97-cjg9 Published 5 days ago

86

High Risk

This Affects:

JSvm2
0.1.0 - 3.12.1
Fixed in 3.12.2
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

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.

Background info

vm2 is vulnerable to Denial of Service in versions 0.1.0 - 3.12.1.

How to fix this

Upgrade the vm2 library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform