{"id":"CVE-2026-100722","published":"2026-09-27T01:28:29Z","modified":"2026-09-28T13:51:49Z","title":"vm2 before 3.12.2 Host Process Termination via Construct Trap","vendor":"patriksimek","product":"vm2","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00315,"percentile":0.25034,"provenance":"source"},"cwes":[{"id":"CWE-248","name":"Uncaught Exception"}],"references":[{"url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-2v2p-6j97-cjg9","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/vm2-before-3.12.2-host-process-termination-via-construct-trap","tags":["third-party-advisory"]}],"priority":{"score":9.8,"factors":[{"name":"EPSS percentile","points":5.01},{"name":"CVSS severity","points":4.76}]},"vendorSlug":"patriksimek","affectedVersions":[{"vendor":"patriksimek","product":"vm2","versions":["< 3.12.2"]}],"fixedVersions":[{"vendor":"patriksimek","product":"vm2","versions":["3.12.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-09-28T13:51:25.270432Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"vm2","vulnerableRanges":["<3.12.2"],"patched":["3.12.2"],"from":["GHSA-2v2p-6j97-cjg9"],"provenance":"source"}],"summary":{"text":"The vm2 library before version 3.12.2 has a flaw in its sandbox-to-host construct trap, where the result of a constructor call is passed back to the host without the Promise rejection handling applied to the apply path. An attacker who runs untrusted code through VM.run can exploit this when the embedder exposes a constructable host function that returns a rejected native Promise: the script invokes it with new and ignores the result, so the rejection goes unhandled, and under Node's strict unhandled-rejection policy this crashes the host process.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:04:47Z"},"euvd":{"id":"EUVD-2026-87857","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-patriksimek-vm2-cve-2022-36067","parents":[{"from":"CVE-2023-37466","to":"CVE-2026-100722","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/bridge.js"],"commits":["https://github.com/patriksimek/vm2/commit/d9a1fde8ec5a5a9c9e5a69bf91d703950859d744","https://github.com/patriksimek/vm2/commit/6e487df9518e455e5e60faec3df3a0e2e27f9940"],"basis":"shared function","functions":["createBridge"]}]},{"from":"CVE-2026-44008","to":"CVE-2026-100722","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/bridge.js"],"commits":["https://github.com/patriksimek/vm2/commit/6e487df9518e455e5e60faec3df3a0e2e27f9940","https://github.com/patriksimek/vm2/commit/ca195f0178989d6f59eafb7af965806f829e20f7"],"basis":"shared function","functions":["createBridge"]}]}],"packageHistory":[{"cve":"CVE-2026-92959","published":"2026-09-17","fixed":"3.11.8","kev":false},{"cve":"CVE-2026-93605","published":"2026-09-18","fixed":"3.12.1","kev":false,"link":{"from":"CVE-2026-93605","to":"CVE-2026-100722","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:vm2","fromFixed":"3.12.1","toFixed":"3.12.2","daysApart":9}]}},{"cve":"CVE-2026-100721","published":"2026-09-27","fixed":"3.12.2","kev":false},{"cve":"CVE-2026-100722","published":"2026-09-27","fixed":"3.12.2","kev":false},{"cve":"CVE-2026-100723","published":"2026-09-27","fixed":"3.12.2","kev":false}],"package":"npm:vm2"}}