CVE-2026-100722 PUBLISHED

vm2 before 3.12.2 Host Process Termination via Construct Trap

Assigner: VulnCheck
Reserved: 26.09.2026 Published: 27.09.2026 Updated: 27.09.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H
CVSS Score: 8.9

Product Status

Vendor patriksimek
Product vm2
Versions Default: unaffected
  • affected from 0 to 3.12.2 (excl.)
  • Version 3.12.2 is unaffected

Credits

  • rexpository reporter

References

Problem Types

  • Uncaught Exception CWE