CVE-2026-92957: vm2: NodeVM node:-prefixed negative builtin deny bypass exposes child_process
NodeVM normalizes node:-prefixed builtin specifiers during require() resolution, but it does not normalize user-provided negative builtin entries in wildcard policy.
As a result, this configuration:
new NodeVM({
require: {
builtin: ['*', '-node:child_process']
}
});
does not deny the canonical child_process builtin. Sandboxed code can require both child_process and node:child_process, and receives the host module with process-spawning APIs such as execSync and spawn.
The safe proof below only checks module and function reachability. It does not execute any OS command.
References
- github.com/advisories/GHSA-8686-vhfx-7r3j
- github.com/patriksimek/vm2/commit/b0f50662dd499ff33544bb42387958c64711af1e
- github.com/patriksimek/vm2/releases/tag/v3.11.7
- github.com/patriksimek/vm2/security/advisories/GHSA-8686-vhfx-7r3j
- nvd.nist.gov/vuln/detail/CVE-2026-92957
- www.vulncheck.com/advisories/vm2-before-3.11.7-authentication-bypass-via-node-prefix
Code Behaviors & Features
Detect and mitigate CVE-2026-92957 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 →