---
id: CVE-2026-47698
title: vm2 is an open source vm/sandbox for Node.js
summary: >-
  vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.6, lib/bridge.js
  and lib/setup-sandbox.js fail to block stacked indirection through
  Function.prototype.call around dangerous host prototype getter and setter
  mutators, allowing …
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-913
vendor: vm2
product: vm2
affected:
  - vm2 <= 3.11.5
patched:
  - vm2 3.11.6
published: '2026-08-17'
updated: '2026-09-09'
sourceUpdated: '2026-09-09T21:11:46.833'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-47698'
references:
  - url: >-
      https://github.com/patriksimek/vm2/commit/a85acb61f81402c6eabf32760aa11272af6d0f9e
    label: security-advisories@github.com
  - url: 'https://github.com/patriksimek/vm2/releases/tag/3.11.6'
    label: security-advisories@github.com
  - url: 'https://github.com/patriksimek/vm2/security/advisories/GHSA-cfcw-xp6x-25gj'
    label: security-advisories@github.com
  - url: 'https://github.com/patriksimek/vm2/security/advisories/GHSA-cfcw-xp6x-25gj'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: 'https://github.com/advisories/GHSA-cfcw-xp6x-25gj'
tags:
  - nvd
  - ghsa
  - npm
epss: 0.00704
epssPercentile: 0.51909
aliases:
  - GHSA-cfcw-xp6x-25gj
ecosystem: npm
ingestedAt: '2026-08-17T17:58:10.520Z'
---

## Overview

vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.6, lib/bridge.js and lib/setup-sandbox.js fail to block stacked indirection through Function.prototype.call around dangerous host prototype getter and setter mutators, allowing sandbox code to sever a host intrinsic's prototype chain and reach e.constructor.constructor for arbitrary host command execution. This issue is fixed in version 3.11.6.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-47698)

Affected packages:

- `vm2 <= 3.11.5`

Patched in:

- `vm2 3.11.6`

Source: https://github.com/advisories/GHSA-cfcw-xp6x-25gj
