CVE-2026-43999: vm2 has a NodeVM builtin allowlist bypass via `module` builtin's `Module._load` that allows sandbox escape
NodeVM’s builtin allowlist can be bypassed when the module builtin is allowed (including via the '*' wildcard). The module builtin exposes Node’s Module._load(), which loads any module by name directly in the host context, completely bypassing vm2’s builtin restriction. This allows sandboxed code to load excluded builtins like child_process and achieve remote code execution.
References
Code Behaviors & Features
Detect and mitigate CVE-2026-43999 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →