Allocation of Resources Without Limits or Throttling Affecting vm2 package, versions <3.11.6


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-VM2-18912325
  • published18 Aug 2026
  • disclosed17 Aug 2026
  • creditKrishna Agarwal

Introduced: 17 Aug 2026

New CVE NOT AVAILABLE CWE-770  (opens in a new tab)

How to fix?

Upgrade vm2 to version 3.11.6 or higher.

Overview

vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via sandbox escape through cross-realm Node.js internal symbol injection. In lib/bridge.js and lib/setup-sandbox.js, the isDangerousCrossRealmSymbol check and the Symbol.for override previously covered only a subset of dangerous nodejs.* symbols (util.inspect.custom, rejection, and util.promisify.custom), leaving seven additional Node-internal symbols accessible to sandbox code. An attacker can install these symbols on host-realm objects exposed to the sandbox, hijacking host-side control flow through Node's duck-typing checks and internal hooks (e.g., via util.promisify hijack or stream brand spoofing), ultimately causing a denial of service or potentially achieving sandbox escape.

CVSS Base Scores

version 4.0
version 3.1