CVE-2026-47683: CWE-770: Allocation of Resources Without Limits or Throttling in patriksimek vm2
CVE-2026-47683 is a high-severity vulnerability in the open source Node.js sandbox vm2 prior to version 3.11.6. It involves insufficient enforcement of buffer allocation limits, allowing sandboxed code to bypass configured caps on memory allocation. This can lead to large synchronous external-memory allocations that may exhaust the host process. The issue is fixed in vm2 version 3.11.6.
AI Analysis
Technical Summary
The vulnerability in vm2 (CVE-2026-47683) arises from incomplete enforcement of the bufferAllocLimit in lib/setup-sandbox.js. Specifically, the enforcement does not cover Buffer.concat(list, totalLength) or Buffer.from(arrayLike) when the length is attacker-controlled. This allows sandboxed code to allocate large amounts of host memory synchronously, bypassing the intended memory cap and potentially exhausting the host process. The problem is resolved in version 3.11.6 of vm2.
Potential Impact
An attacker executing code within the vm2 sandbox can bypass memory allocation limits and cause large synchronous allocations of host external memory. This can exhaust the host process's memory resources, potentially leading to denial of service conditions. There is no indication of privilege escalation or code execution outside the sandbox beyond resource exhaustion.
Mitigation Recommendations
Upgrade vm2 to version 3.11.6 or later, where the bufferAllocLimit enforcement covers all relevant Buffer allocation methods and prevents bypass. No other mitigation is indicated or necessary as the issue is fixed in this version.
CVE-2026-47683: CWE-770: Allocation of Resources Without Limits or Throttling in patriksimek vm2
Description
CVE-2026-47683 is a high-severity vulnerability in the open source Node.js sandbox vm2 prior to version 3.11.6. It involves insufficient enforcement of buffer allocation limits, allowing sandboxed code to bypass configured caps on memory allocation. This can lead to large synchronous external-memory allocations that may exhaust the host process. The issue is fixed in vm2 version 3.11.6.
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.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in vm2 (CVE-2026-47683) arises from incomplete enforcement of the bufferAllocLimit in lib/setup-sandbox.js. Specifically, the enforcement does not cover Buffer.concat(list, totalLength) or Buffer.from(arrayLike) when the length is attacker-controlled. This allows sandboxed code to allocate large amounts of host memory synchronously, bypassing the intended memory cap and potentially exhausting the host process. The problem is resolved in version 3.11.6 of vm2.
Potential Impact
An attacker executing code within the vm2 sandbox can bypass memory allocation limits and cause large synchronous allocations of host external memory. This can exhaust the host process's memory resources, potentially leading to denial of service conditions. There is no indication of privilege escalation or code execution outside the sandbox beyond resource exhaustion.
Mitigation Recommendations
Upgrade vm2 to version 3.11.6 or later, where the bufferAllocLimit enforcement covers all relevant Buffer allocation methods and prevents bypass. No other mitigation is indicated or necessary as the issue is fixed in this version.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-19T21:18:20.402Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a837910bf8831d539931946
Added to database: 08/17/2026, 21:11:44 UTC
Last enriched: 09/12/2026, 00:16:36 UTC
Last updated: 10/01/2026, 14:51:07 UTC
Views: 55
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.