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.44% (35th 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-17111274
  • published31 May 2026
  • disclosed29 May 2026
  • creditq1uf3ng

Introduced: 29 May 2026

NewCVE-2026-47135  (opens in a new tab)
CWE-184  (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 through Symbol.for handling in lib/setup-sandbox.js and the bridge write traps in lib/bridge.js. An attacker can install host-side hooks or alter host object behavior by supplying nodejs.* symbol keys such as nodejs.util.promisify.custom, stream brand symbols, or webstream symbols on a bridge-exposed host object. The sandbox-side symbol registry exposed real cross-realm Node internal symbols for keys outside the original allowlist, and the bridge forwarded dangerous symbol keys through set, defineProperty, and deleteProperty without rejecting them. This lets sandbox code hijack util.promisify callbacks, or interfere with webstream error handling on mutable host objects exposed to the VM.

CVSS Base Scores

version 4.0
version 3.1