---
id: GHSA-7rr2-8fr3-fjqx
title: >-
  Duplicate Advisory: vm2: Host Promise rejection from an exposed constructor
  can terminate the vm2 host process
summary: >-
  Duplicate Advisory: vm2: Host Promise rejection from an exposed constructor
  can terminate the vm2 host process
severity: high
cvss: 6.8
cwe:
  - CWE-248
vendor: vm2
product: vm2
ecosystem: npm
affected:
  - vm2 < 3.12.2
patched:
  - vm2 3.12.2
published: '2026-09-27'
updated: '2026-10-05'
sourceUpdated: '2026-10-05T23:19:30Z'
source: GHSA
sourceUrl: 'https://github.com/advisories/GHSA-7rr2-8fr3-fjqx'
references:
  - url: 'https://github.com/patriksimek/vm2/security/advisories/GHSA-2v2p-6j97-cjg9'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-100722'
  - url: >-
      https://www.vulncheck.com/advisories/vm2-before-3.12.2-host-process-termination-via-construct-trap
  - url: 'https://github.com/advisories/GHSA-7rr2-8fr3-fjqx'
tags:
  - ghsa
  - npm
ingestedAt: '2026-10-05T23:36:21.169Z'
---

## Overview

## Duplicate Advisory

This advisory has been withdrawn because it is a duplicate of GHSA-2v2p-6j97-cjg9. This link is maintained to preserve external references.

## Original Description
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.

## Affected packages

- `vm2 < 3.12.2`

## Remediation

Upgrade to a patched release:

- `vm2 3.12.2`
