---
id: CVE-2026-100722
title: >-
  vm2 before 3.12.2 does not apply host-side Promise rejection handling in the
  sandbox-to-host construct trap
summary: >-
  vm2 before 3.12.2 does not apply host-side Promise rejection handling in the
  sandbox-to-host construct trap. In BaseHandler, the apply trap calls
  markHostPromiseHandled() on the returned value, but the adjacent construct
  path returns the…
severity: medium
cvss: 6.8
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:H'
cwe:
  - CWE-248
  - CWE-703
vendor: patriksimek
product: vm2
affected:
  - vm2 < 3.12.2
published: '2026-09-27'
updated: '2026-09-28'
sourceUpdated: '2026-09-28T14:17:09.373'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-100722'
references:
  - url: 'https://github.com/patriksimek/vm2/security/advisories/GHSA-2v2p-6j97-cjg9'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/vm2-before-3.12.2-host-process-termination-via-construct-trap
    label: disclosure@vulncheck.com
  - url: 'https://github.com/patriksimek/vm2/security/advisories/GHSA-2v2p-6j97-cjg9'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-100722.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-100722'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2541994'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-100722'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-100722'
  - url: >-
      https://github.com/patriksimek/vm2/commit/6e487df9518e455e5e60faec3df3a0e2e27f9940
  - url: 'https://github.com/patriksimek/vm2/releases/tag/v3.12.2'
  - url: 'https://github.com/advisories/GHSA-2v2p-6j97-cjg9'
tags:
  - nvd
  - cve.org
  - exploit-available
  - csaf
  - vex
  - red-hat
  - ghsa
  - npm
epss: 0.00315
epssPercentile: 0.24228
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-09-28T13:51:25.270432Z'
ingestedAt: '2026-09-27T02:41:45.565Z'
aliases:
  - GHSA-2v2p-6j97-cjg9
ecosystem: npm
patched:
  - vm2 3.12.2
scores:
  nvd: 6.8
  ghsa: 8.6
---

## Overview

vm2 before 3.12.2 does not apply host-side Promise rejection handling in the sandbox-to-host construct trap. In BaseHandler, the apply trap calls markHostPromiseHandled() on the returned value, but the adjacent construct path returns the result of Reflect.construct without the same sanitization. If an embedder exposes a constructable host function whose constructor returns a native rejected Promise, an untrusted script executed via VM.run can invoke it with `new` and ignore the result; the rejected host Promise crosses the bridge unhandled and, under Node's strict unhandled-rejection policy, is promoted to an uncaught exception that terminates the host process.

## Remediation

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

## Vendor advisories

- **Red Hat VEX** · Moderate · affected: Red Hat Developer Hub, Self-service automation portal 2 · no fix planned: Red Hat Developer Hub, Self-service automation portal 2 · updated 2026-10-01 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-100722.json)

## Package advisory (CVE-2026-100722)

Affected packages:

- `vm2 <= 3.12.1`

Patched in:

- `vm2 3.12.2`

Source: https://github.com/advisories/GHSA-2v2p-6j97-cjg9
