---
id: CVE-2026-92954
title: vm2 is a sandbox library for running untrusted JavaScript in Node.js
summary: >-
  vm2 is a sandbox library for running untrusted JavaScript in Node.js. In
  versions >= 3.10.0 and <= 3.11.7, Promises returned from the host realm into
  the sandbox are not marked as handled at the bridge boundary; only Promises
  created ins…
severity: high
cvss: 8.6
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H'
cwe:
  - CWE-248
vendor: patriksimek
product: vm2
affected:
  - vm2 >= 3.10.0 < 3.11.8
published: '2026-09-17'
updated: '2026-09-21'
sourceUpdated: '2026-09-21T18:17:15.997'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-92954'
references:
  - url: 'https://github.com/patriksimek/vm2/security/advisories/GHSA-gjq8-xm47-88rc'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/vm2-3.10.0-through-3.11.5-denial-of-service-via-host-promise
    label: disclosure@vulncheck.com
  - url: 'https://github.com/patriksimek/vm2/security/advisories/GHSA-gjq8-xm47-88rc'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
  - cve.org
  - exploit-available
epss: 0.00488
epssPercentile: 0.39419
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-09-21T17:15:31.102120Z'
ingestedAt: '2026-09-17T14:19:30.989Z'
---

## Overview

vm2 is a sandbox library for running untrusted JavaScript in Node.js. In versions >= 3.10.0 and <= 3.11.7, Promises returned from the host realm into the sandbox are not marked as handled at the bridge boundary; only Promises created inside the sandbox are wrapped with a rejection-swallowing handler (lib/setup-sandbox.js), and the bridge only installs host-side rejection sanitizers when sandbox code calls .then/.catch/.finally. As a result, code running in the sandbox can invoke a host function that returns a rejected Promise (for example events.once() exposed via the NodeVM events builtin, or any embedder-provided Promise-returning API) and simply ignore the return value, leaving the host Promise unhandled so that Node.js's default unhandled-rejection behavior terminates the host process. This is an incomplete fix of GHSA-hw58-p9xv-2mjh. The issue is fixed in version 3.11.8.

## Remediation

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