Improperly Controlled Modification of Dynamically-Determined Object Attributes 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.51% (40th 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 Learn

Learn about Improperly Controlled Modification of Dynamically-Determined Object Attributes vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-VM2-17111325
  • published31 May 2026
  • disclosed29 May 2026
  • creditq1uf3ngONEKEY

Introduced: 29 May 2026

NewCVE-2026-47209  (opens in a new tab)
CWE-915  (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 Improperly Controlled Modification of Dynamically-Determined Object Attributes via the BaseHandler.set trap in lib/bridge.js. An attacker can mutate host-realm objects or install attacker-controlled hooks by writing through an inherited object or a forged Reflect.set receiver, causing sandbox-supplied values to be written to the wrapped host object instead of the intended receiver. This lets sandbox code pollute host-side properties on any embedder-exposed object, including dispatch slots used by host code, potentially leading to host-side code execution when the polluted property is later consumed.

CVSS Base Scores

version 4.0
version 3.1