Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit malicious JS to vm2 sandbox
-
DeliveryCall eval with malformed source
-
ExploitHost transformer throws SyntaxError
-
ExecutionRead error.stack via bridge forwarding
-
ImpactDisclose host absolute paths and function names
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Error message sanitization
MITRE ATT&CK
1 technique across 1 tactic: Discovery The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires that the embedding application runs attacker-controlled JavaScript inside a vm2 sandbox (the inherent vm2 threat model). Beyond that there are NO special conditions: default new VM() and new NodeVM() configurations are affected without any options, and the leak persists even when string eval is disabled because the host-side source transformer throws before eval is handled. The primary limiting factors are that the attacker must already be able to execute code in the sandbox and that the disclosed data is limited to filesystem path strings and host function names (no secrets, no write, no code execution), and affected versions are constrained to vm2 3.11.0 through 3.11.6. |
| Impact | This is a genuine but low-to-moderate real-world risk best characterized as high-CVSS-appearance-but-modest-impact. The vendor CVSS 4.0 score of 6.9 (VC:L/SC:L, confidentiality-only) is consistent with the description, which explicitly states the impact is information disclosure only with no code execution. My independent CVSS 3.1 assessment is ~6.5 (AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N) - scope-changed because the sandbox boundary is crossed to leak host-realm data, but confidentiality is Low (path strings and function names, not secrets/credentials) and integrity/availability are unaffected. There is no EPSS score, no CISA KEV listing, and no public POC identified in the provided data, so this is no public exploit identified at time of analysis - not evidence of active exploitation. The signals are internally consistent (info-disclosure CWE-209, low impact metrics, no exploitation intelligence), so no conflict to flag on severity. The one notable elevating factor over other vm2 CVEs in this wave: it affects DEFAULT new VM() and new NodeVM() configurations with no special options and persists even when string eval is disabled, so the reachability is broader than misconfiguration-gated siblings. Net: worth patching to 3.11.7, but a reconnaissance/stepping-stone primitive rather than a standalone priority. |
| Exploit ScenarioDerived | An application embeds vm2 to run untrusted user-supplied JavaScript (the standard vm2 threat model). The attacker submits sandboxed code that calls eval on malformed source to force the host-realm source transformer to throw a SyntaxError, then reads the resulting error's .stack property, which the bridge forwards to the host formatter, returning absolute filesystem paths from vm2, Node.js internals, and the embedding application's own source tree plus host function names. No public POC is identified, and the leaked paths aid further attacks (e.g., locating app source for a subsequent escape) rather than causing direct compromise. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 17, 2026
Absolute host filesystem path disclosure in vm2 3.11.0 through 3.11.6 allows attacker-supplied JavaScript running inside a vm2 sandbox to force the host-realm source transformer to throw a SyntaxError (for example via eval with malformed source) and then read the resulting error's .stack property, which the bridge forwards to the host-realm formatter. Default new VM() and new NodeVM() configurations are affected with no special options, and the leak persists even when string eval is disabled, because the host-side transformer throws before eval is handled. Only information disclosure results - absolute paths from vm2, Node.js internals, and the embedding application's source tree plus host function names - with no write, no code execution, and no public exploit identified at time of analysis; the CVSS 4.0 score of 6.9 reflects the scope change and low confidentiality impact rather than a high-severity outcome.
RemediationAI
Vendor-released patch: vm2 3.11.7 - upgrade to 3.11.7 or later, which is the primary and recommended fix; advisory links are https://github.com/patriksimek/vm2/security/advisories/GHSA-x6m4-chr9-cg97 and https://www.vulncheck.com/advisories/vm2-3.11.0-before-3.11.7-information-disclosure-via-error-stack. There is no reliable configuration workaround: the leak occurs under default new VM() and new NodeVM() settings, and disabling string eval does not help because the host-side source transformer throws before eval is handled, so do not rely on sandbox options as a stopgap. Compensating controls if upgrading is delayed: stop executing untrusted or semi-trusted JavaScript in vm2 and move that workload into an OS-level isolation boundary such as a separate process, container, or microVM with a restricted, non-sensitive filesystem layout - the trade-off is higher operational complexity and latency than in-process sandboxing, but it removes the path/host-function-name oracle entirely. Additionally, treat host paths and source-tree structure as sensitive: run the embedding service on a minimal filesystem, avoid mounting directories whose names disclose internal architecture, and scrub or suppress error .stack exposure at the application boundary (for example wrapping sandbox results in generic error objects) - this limits the value of the leak but does not fix the underlying bridge flaw, so it must not be treated as remediation.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
vm2 is a Node.js library that executes untrusted JavaScript in a separate sandbox realm and bridges selected objects back to the host realm. This CVE is an instance of CWE-209 (Generation of Error Message Containing Sensitive Information): the sandbox-side host-path redaction added for the earlier fix GHSA-v27g-jcqj-v8rw formats errors in the sandbox realm, but when attacker code reads the .stack property of an error, the bridge forwards that property access to the host-realm sink, which formats the stack with host context and without the sandbox redaction. The trigger does not depend on attacker privileges in the sandbox beyond the ability to run code there: calling eval (or any path reaching the host-realm source transformer) with malformed source makes the host-side transformer throw a SyntaxError before eval is ever handled, so disabling string eval does not mitigate the issue. The leaked string contains absolute filesystem paths for vm2 itself, Node.js internals, and the embedding application's own source tree, along with host-realm function names. The affected CPE is cpe:2.3:a:patriksimek:vm2:*:*:*:*:*:*:*:* over the version window 3.11.0-3.11.6; the assessed vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N confirms network-reachable, unauthenticated, no-user-interaction conditions with a scope change and confidentiality-only impact. Note that the associated tag set includes 'RCE', but neither the vendor advisory nor the independent assessment supports code execution for this CVE.
Know when Vm2 gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N
Untrusted sandbox code reaches the flaw with no auth or interaction (PR:N/UI:N/AC:L); crossing the sandbox-to-host boundary is a scope change (S:C); impact is limited host-path disclosure (C:L, I:N, A:N).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
vm2 versions 3.11.0 through 3.11.6 leak absolute host filesystem paths to sandboxed code through error stack formatting. Attacker-supplied code can force the host-realm source transformer to throw a SyntaxError (for example by calling eval with malformed source) and then read the error's .stack property; the bridge forwards the .stack read to the host-realm formatter, bypassing the sandbox-side host-path redaction introduced for GHSA-v27g-jcqj-v8rw. The returned stack string discloses absolute paths from vm2, Node.js internals, and the embedding application's own source tree, along with host function names. Default new VM() and new NodeVM() configurations are affected without any special options, and the issue persists when string eval is disabled because the host-side transformer throws before eval is handled. The impact is information disclosure only; no code execution results. Fixed in vm2 3.11.7.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
vm2 is an advanced vm/sandbox for Node.js. Rated critical severity (CVSS 10.0), this vulnerability is remotely exploitab
vm2 is a sandbox that can run untrusted code with Node's built-in modules. Rated critical severity (CVSS 10.0), this vul
vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. Rated critical severity (CVSS 10.
There exists a vulnerability in source code transformer (exception sanitization logic) of vm2 for versions up to 3.9.15,
vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. Rated critical severity (CVSS 10.
This affects the package vm2 before 3.9.4 via a Prototype Pollution attack vector, which can lead to execution of arbitr
Full sandbox escape with arbitrary code execution allows remote attackers to break out of vm2's Node.js sandbox environm
Sandbox escape in vm2 for Node.js allows remote unauthenticated attackers to execute arbitrary commands on the host syst
Sandbox escape in vm2 (patriksimek/vm2) versions prior to 3.11.3 enables remote code execution on the host Node.js proce
Sandbox escape in vm2 Node.js sandbox before 3.10.2 via Promise.prototype.then/catch callback sanitization bypass. PoC a
vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. Rated critical severity (CVSS 9.8
The package vm2 before 3.9.10 are vulnerable to Arbitrary Code Execution due to the usage of prototype lookup for the We
EUVD-2026-81586
GHSA-63m2-qqch-jxv2
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB