Memory Allocation Vulnerability in vm2 for Node.js
CVE-2026-44004
7.5HIGH
What is CVE-2026-44004?
The vm2 library, used for sandboxing Node.js applications, has a vulnerability that allows arbitrary memory allocation through Buffer.alloc() prior to version 3.11.0. This issue arises because the Buffer.alloc() function is a synchronous native call, which inhibits the timeout feature of vm2 from interrupting the process. Consequently, an exploit can lead to exhaustion of the host memory, potentially causing a crash with a fatal error due to reaching the heap limit. This vulnerability has been fixed in version 3.11.0.
Affected Version(s)
vm2 < 3.11.0
