CVE-2026-47139 — Vulnerability in vm2 — CVE Details
NodeVM network builtin exclusions bypass via internal _http_client and _http_server
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.49%). Schedule for your next planned update.
Does your project use an affected vm2 version?
Paste your package-lock.json to check it for CVE-2026-47139 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
NodeVM supports excluding public network builtins from the wildcard builtin option. With this configuration direct access to http, https, http2, net, dgram, tls, dns, and dns/promises is blocked.
However, Node.js also exposes underscored internal HTTP builtins such as _http_client and _http_server. These are not blocked when the public modules are excluded.
Sandboxed code can use these internal builtins to make outbound HTTP requests and open listening HTTP sockets even though the public network modules are denied.
Note: This is not host RCE. It is a network capability bypass that can lead to SSRF-style access to internal services.
Details
The wildcard builtin expansion is based on Node.js builtin module names:
const BUILTIN_MODULES = (nmod.builtinModules || Object.getOwnPropertyNames(process.binding('natives')))
.filter(s=>!s.startsWith('internal/') && !DANGEROUS_BUILTINS.has(s));
Public modules can be excluded with -name:
if (builtins.indexOf(`-${name}`) === -1) {
addDefaultBuiltin(res, name, hostRequire);
}
But excluding http and net does not exclude internal siblings such as:
_http_client
_http_server
_tls_wrap
These internal modules expose network primitives.
Confirmed examples:
require('_http_client').ClientRequest(...)performs an outbound HTTP request to a host-local service whilehttpandnetare blocked.require('_http_server').Server(...).listen(...)opens a listening HTTP socket whilehttpandnetare blocked.
PoC
Tested on:
vm2: 3.11.2
Node.js: v25.9.0
Run from the vm2 repository root:
node poc/internal-http-builtin-network-bypass.js
internal-http-builtin-network-bypass.js
The PoC first confirms the intended restrictions work then bypasses them:
require("_http_client").ClientRequest(...)
This performs an HTTP request to a host-local service and reads the response.
It also confirms:
require("_http_server").Server(...).listen(0)
This opens a listening HTTP socket from inside the sandbox.
Impact
An attacker who can run untrusted JavaScript inside NodeVM with this affected builtin configuration can regain network access even when the application attempted to block network modules.
This can allow SSRF-style access to localhost services, metadata endpoints, internal admin panels, or other network resources reachable from the host process.
Suggested fix
Treat underscored internal network modules as dangerous or link their availability to the public module they wrap.
At minimum, exclude related internal modules such as:
_http_agent
_http_client
_http_common
_http_incoming
_http_outgoing
_http_server
_tls_common
_tls_wrap
Alternatively, deny underscored Node.js internals from wildcard builtin expansion by default.
Advisory Timeline
- First published May 29, 2026 (181 days ago).
- Last revised June 12, 2026 — 14 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install vm2@3.11.4
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: npm (1).
| Package | Fixed In |
|---|---|
| vm2 npm · Affected: All versions | 3.11.4 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-693Protection Mechanism FailureMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.6 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
References
- https://github.com/patriksimek/vm2/security/advisories/GHSA-r9pm-gxmw-wv6pWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-47139ADVISORY
- https://github.com/patriksimek/vm2/commit/436053e30eecbabd487e2fd2959c137ac34e2bb1WEB
- https://github.com/patriksimek/vm2PACKAGE
- https://github.com/patriksimek/vm2/releases/tag/v3.11.4WEB
Frequently Asked Questions
- What is CVE-2026-47139?
- NodeVM network builtin exclusions bypass via internal _http_client and _http_server. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.6/10).
- How do I check if my project is affected by CVE-2026-47139?
- CVE-2026-47139 affects vm2. It has a 0.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-47139 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 35.1% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-92935CRITICAL
vm2: NodeVM nesting guard accepts array-shaped require and permits host RCE
- CVE-2026-43999CRITICAL
vm2 has a NodeVM builtin allowlist bypass via `module` builtin's `Module._load` that allows sandbox escape
- CVE-2026-92941CRITICAL
vm2 NodeVM can replace the host process TLS trust store
- CVE-2026-22709CRITICAL
vm2 has a Sandbox Escape
- CVE-2026-44008CRITICAL
vm2 has sandbox breakout via `neutralizeArraySpeciesBatch`
- CVE-2026-44009CRITICAL
vm2 has Sandbox Breakout Through Null Proto Exception
- CVE-2026-92951CRITICAL
vm2 Custom Module Resolver Can Bypass the External Package Allowlist by Loading a Colliding Host Package
- CVE-2026-47209HIGH
vm2's Bridge Proxy set trap ignores receiver parameter, enabling host object property injection via prototype chain