๐Ÿ” CVE Alert

CVE-2026-100722

MEDIUM 6.8

vm2 before 3.12.2 Host Process Termination via Construct Trap

CVSS Score
6.8
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-248
Vendor patriksimek
Product vm2
Published Sep 27, 2026
Stay Ahead of the Next One

Get instant alerts for patriksimek vm2

Be the first to know when new medium vulnerabilities affecting patriksimek vm2 are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

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

Affected Versions

patriksimek / vm2
0 < 3.12.2

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/patriksimek/vm2/security/advisories/GHSA-2v2p-6j97-cjg9 vulncheck.com: https://www.vulncheck.com/advisories/vm2-before-3.12.2-host-process-termination-via-construct-trap

Credits

๐Ÿ” rexpository