CVE-2026-92942
Reported by VulnCheck · Published September 17, 2026
vm2 before 3.11.7 (affected versions <= 3.11.6) does not enforce the VM({ timeout }) option on code executed outside the synchronous VM#run() call. The timeout only wraps the single call to _runScript() via doWithTimeout() in lib/vm.js, and FinalizationRegistry and WeakRef are exposed to sandboxed code unmodified (they are not among the hardened globals in lib/setup-sandbox.js). Sandboxed code can register a FinalizationRegistry cleanup callback against an object and then drop the only strong reference to it; vm.run() returns within the configured timeout, but when the V8 garbage collector later reclaims the object it invokes the sandboxed cleanup callback outside any vm2 timeout accounting. A busy loop in that callback blocks the host event loop for an unbounded period, resulting in denial of service. The time of invocation depends on the garbage collector (e.g. under memory pressure or with --expose-gc).
Risk Scores
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| patriksimek | vm2 | 0, 3.11.7 |
| patriksimek | vm2 | 0, 3.11.7 |
| npm | vm2 | 0 |
Timeline
- Sep 17, 2026 Coalition ESS Score
- Sep 17, 2026 CVE Published
- Sep 18, 2026 EPSS Score
- Sep 18, 2026 CVE Updated
- Sep 24, 2026 EPSS Score
- Sep 25, 2026 EPSS Score
- Sep 26, 2026 EPSS Score
- Sep 30, 2026 EPSS Score
- Oct 2, 2026 EPSS Score
- Oct 6, 2026 EPSS Score
- Oct 8, 2026 EPSS Score
- Oct 11, 2026 EPSS Score
References
- GitHub Security Advisory (GHSA-r4fx-v8hh-22mv) vendor-advisory
- VulnCheck Advisory: vm2 before 3.11.7 Timeout Bypass via FinalizationRegistry third-party-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-92942 advisory
- https://github.com/advisories/GHSA-r4fx-v8hh-22mv advisory
- https://github.com/patriksimek/vm2/commit/fe2fcca2a1e693548993eccc624489dc4cb586b4 patch
- https://github.com/patriksimek/vm2/releases/tag/v3.11.7 url