Incomplete List of Disallowed Inputs Affecting vm2 package, versions <3.11.4


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.88% (55th percentile)

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 IDSNYK-JS-VM2-17111172
  • published31 May 2026
  • disclosed29 May 2026
  • creditspbavarva, VladimirEliTokarev

Introduced: 29 May 2026

NewCVE-2026-47140  (opens in a new tab)
CWE-184  (opens in a new tab)
CWE-749  (opens in a new tab)

How to fix?

Upgrade vm2 to version 3.11.4 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 Incomplete List of Disallowed Inputs via the builtin allowlist handling in lib/builtin.js. An attacker can reach host code by requiring process and calling getBuiltinModule('child_process'), or by requiring inspector/promises and using Session().post('Runtime.evaluate', ...) to execute JavaScript in the host realm. This lets sandboxed code bypass the intended built-in restrictions and obtain host process execution capabilities, leading to arbitrary command execution and full compromise of the sandboxed application.

CVSS Base Scores

version 4.0
version 3.1