Medium severity6.8NVD Advisory· Published Sep 27, 2026· Updated Sep 28, 2026
CVE-2026-100722
CVE-2026-100722
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
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
vm2npm | < 3.12.2 | 3.12.2 |
Affected products
1- Range: <3.12.2
Patches
Vulnerability mechanics
References
6- github.com/advisories/GHSA-2v2p-6j97-cjg9ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-100722ghsaADVISORY
- github.com/patriksimek/vm2/commit/6e487df9518e455e5e60faec3df3a0e2e27f9940ghsaWEB
- github.com/patriksimek/vm2/releases/tag/v3.12.2ghsaWEB
- github.com/patriksimek/vm2/security/advisories/GHSA-2v2p-6j97-cjg9nvdWEB
- www.vulncheck.com/advisories/vm2-before-3.12.2-host-process-termination-via-construct-trapnvdWEB
News mentions
1- vm2 npm Package: Critical Auth Bypass and High-Severity Flaws Disclosed TogetherVypr Intelligence · Sep 27, 2026