CVE-2026-92942: Uncontrolled Resource Consumption in patriksimek vm2
CVE-2026-92942 is a high-severity vulnerability in the patriksimek vm2 library versions before 3.11.7. The issue arises because the VM timeout option does not apply to code executed outside the synchronous VM#run() call. Specifically, sandboxed code can exploit exposed FinalizationRegistry and WeakRef objects to run cleanup callbacks after the VM#run() call completes, bypassing the configured timeout. This can lead to uncontrolled resource consumption and a denial of service by blocking the host event loop indefinitely.
AI Analysis
Technical Summary
The patriksimek vm2 library versions up to 3.11.6 do not enforce the VM({ timeout }) option on code executed outside the synchronous VM#run() call. The timeout only applies to the single _runScript() invocation within VM#run(). Sandboxed code can register a FinalizationRegistry cleanup callback on an object and then drop the strong reference to that object. When the V8 garbage collector later reclaims the object, it invokes the cleanup callback outside the timeout context. If the callback contains a busy loop, it can block the host event loop indefinitely, causing denial of service. The timing of the callback invocation depends on garbage collection triggers such as memory pressure or explicit GC calls.
Potential Impact
This vulnerability allows sandboxed code to bypass the VM timeout restriction by executing code asynchronously during garbage collection cleanup callbacks. This can result in unbounded CPU consumption and denial of service by blocking the host event loop. The impact is a high-severity denial of service condition affecting applications using vulnerable vm2 versions.
Mitigation Recommendations
A fix is available in vm2 version 3.11.7 that addresses this issue. Users should upgrade to version 3.11.7 or later to ensure the VM timeout option is properly enforced on all code execution paths, including FinalizationRegistry cleanup callbacks. Until upgraded, applications remain vulnerable to denial of service via this uncontrolled resource consumption.
CVE-2026-92942: Uncontrolled Resource Consumption in patriksimek vm2
Description
CVE-2026-92942 is a high-severity vulnerability in the patriksimek vm2 library versions before 3.11.7. The issue arises because the VM timeout option does not apply to code executed outside the synchronous VM#run() call. Specifically, sandboxed code can exploit exposed FinalizationRegistry and WeakRef objects to run cleanup callbacks after the VM#run() call completes, bypassing the configured timeout. This can lead to uncontrolled resource consumption and a denial of service by blocking the host event loop indefinitely.
CVSS v4.0
Score 8.7high
Affected software
patriksimek
vm2
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The patriksimek vm2 library versions up to 3.11.6 do not enforce the VM({ timeout }) option on code executed outside the synchronous VM#run() call. The timeout only applies to the single _runScript() invocation within VM#run(). Sandboxed code can register a FinalizationRegistry cleanup callback on an object and then drop the strong reference to that object. When the V8 garbage collector later reclaims the object, it invokes the cleanup callback outside the timeout context. If the callback contains a busy loop, it can block the host event loop indefinitely, causing denial of service. The timing of the callback invocation depends on garbage collection triggers such as memory pressure or explicit GC calls.
Potential Impact
This vulnerability allows sandboxed code to bypass the VM timeout restriction by executing code asynchronously during garbage collection cleanup callbacks. This can result in unbounded CPU consumption and denial of service by blocking the host event loop. The impact is a high-severity denial of service condition affecting applications using vulnerable vm2 versions.
Mitigation Recommendations
A fix is available in vm2 version 3.11.7 that addresses this issue. Users should upgrade to version 3.11.7 or later to ensure the VM timeout option is properly enforced on all code execution paths, including FinalizationRegistry cleanup callbacks. Until upgraded, applications remain vulnerable to denial of service via this uncontrolled resource consumption.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-09-17T12:42:34.828Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6aac65c555bf5e2cf5fdf68d
Added to database: 09/17/2026, 22:12:21 UTC
Last enriched: 09/17/2026, 22:16:33 UTC
Last updated: 09/18/2026, 01:08:36 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.