Security Vulnerability in vm2 Sandbox for Node.js by Patrik Simek
CVE-2026-47683
8.7HIGH
What is CVE-2026-47683?
A vulnerability exists in vm2, an open-source sandbox solution for Node.js, where prior to version 3.11.6, the bufferAllocLimit enforcement mechanism in lib/setup-sandbox.js fails to adequately cover certain buffer methods. Specifically, the methods Buffer.concat(list, totalLength) and Buffer.from(arrayLike) can be manipulated with attacker-controlled lengths, enabling malicious sandbox code to execute large synchronous external-memory allocations. This inadequacy can lead to exhaustion of the host process due to overwhelming resource use. The issue has been addressed in version 3.11.6.
Affected Version(s)
vm2 < 3.11.6
