Skip to main content

vm2 CVE-2026-92936

| EUVDEUVD-2026-81586 MEDIUM
Error Message Information Leak (CWE-209)
6.9
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit malicious JS to vm2 sandbox
  2. Delivery
    Call eval with malformed source
  3. Exploit
    Host transformer throws SyntaxError
  4. Execution
    Read error.stack via bridge forwarding
  5. Impact
    Disclose 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

vm2 3.11.0 <3.11.7

Affected Packages

npm vm2 fix: 3.11.7

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

Vendor (VulnCheck) PRIMARY 6.9 MEDIUM
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
vuln.today AI 5.8 MEDIUM

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).

3.1 AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N
Red Hat 5.8 MEDIUM

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Sep 17, 2026 - 15:17 EUVD

DescriptionCVE.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

EPSS Score
0.4%
Top 65% exploitable
Prevalence
Medium
popular but deprecated Node.js sandbox library, common in code-execution services
Threat Intel
1
1 sources
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Vm2

View all
CVE-2023-37466 CRITICAL POC
10.0 Jul 14

vm2 is an advanced vm/sandbox for Node.js. Rated critical severity (CVSS 10.0), this vulnerability is remotely exploitab

CVE-2023-32314 CRITICAL POC
10.0 May 15

vm2 is a sandbox that can run untrusted code with Node's built-in modules. Rated critical severity (CVSS 10.0), this vul

CVE-2023-30547 CRITICAL POC
10.0 Apr 17

vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. Rated critical severity (CVSS 10.

CVE-2023-29199 CRITICAL POC
10.0 Apr 14

There exists a vulnerability in source code transformer (exception sanitization logic) of vm2 for versions up to 3.9.15,

CVE-2022-36067 CRITICAL POC
10.0 Sep 06

vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. Rated critical severity (CVSS 10.

CVE-2021-23449 CRITICAL POC
10.0 Oct 18

This affects the package vm2 before 3.9.4 via a Prototype Pollution attack vector, which can lead to execution of arbitr

CVE-2026-26956 CRITICAL POC
9.8 May 04

Full sandbox escape with arbitrary code execution allows remote attackers to break out of vm2's Node.js sandbox environm

CVE-2026-24120 CRITICAL POC
9.8 May 04

Sandbox escape in vm2 for Node.js allows remote unauthenticated attackers to execute arbitrary commands on the host syst

CVE-2026-45411 CRITICAL POC
9.8 May 13

Sandbox escape in vm2 (patriksimek/vm2) versions prior to 3.11.3 enables remote code execution on the host Node.js proce

CVE-2026-22709 CRITICAL POC
9.8 Jan 26

Sandbox escape in vm2 Node.js sandbox before 3.10.2 via Promise.prototype.then/catch callback sanitization bypass. PoC a

CVE-2023-29017 CRITICAL POC
9.8 Apr 06

vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. Rated critical severity (CVSS 9.8

CVE-2022-25893 CRITICAL POC
9.8 Dec 21

The package vm2 before 3.9.10 are vulnerable to Arbitrary Code Execution due to the usage of prototype lookup for the We

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy