Skip to main content
EPSS 0.3%top 84%

vm2 before 3.12.2 does not apply host-side Promise rejection handling in the sandbox-to-host construct trap. (CVE-2026-100722)

0
High
Published: 09/27/2026 (09/27/2026, 03:31:03 UTC)
Source: GCVE Database

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.

CVSS v3.1

Score 6.8medium

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:H

Affected software

vm2
pkg:npm/vm2
Affected versions
<3.12.2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/27/2026, 04:36:46 UTC

Technical Analysis

The vm2 sandbox before version 3.12.2 does not properly handle host-side Promise rejections in the construct trap used when sandboxed code invokes host functions with the 'new' operator. While the apply trap sanitizes returned Promises by marking them as handled, the construct trap returns the result of Reflect.construct without this sanitization. If a host function's constructor returns a native rejected Promise, the rejection crosses the sandbox boundary unhandled. Under Node.js's strict unhandled rejection policy, this leads to an uncaught exception that terminates the host process.

Potential Impact

Exploitation of this vulnerability can cause the host Node.js process to terminate unexpectedly due to unhandled Promise rejections originating from sandboxed code invoking certain host functions. This results in a denial of service condition. There is no direct impact on confidentiality or integrity reported.

Mitigation Recommendations

A fix is available in vm2 version 3.12.2 that applies proper host-side Promise rejection handling in the construct trap. Users should upgrade to vm2 3.12.2 or later to remediate this issue. No other mitigation steps are indicated.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-7rr2-8fr3-fjqx
Osv Schema Version
1.4.0
Aliases
["CVE-2026-100722"]
Database Specific Severity
HIGH
Cvss Version
3.1

Threat ID: 6ab89bc3f7a7c54106941edd

Added to database: 09/27/2026, 04:29:55 UTC

Last enriched: 09/27/2026, 04:36:46 UTC

Last updated: 09/28/2026, 01:59:12 UTC

Views: 6

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses