CVE-2026-92936
MEDIUM 6.9CVSS 4.0vm2 leaks absolute host filesystem paths to sandbox code via error stack formatting
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.
- Published
- 17 Sep 2026
- Last modified
- 5 Oct 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Deferred
- Weakness
- CWE-209CWE-497
- Also known as
- GHSA-x6m4-chr9-cg97
- Sources
- NVDJSONOSV GHSA-x6m4-chr9-cg97JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | MEDIUM 6.9 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 3.1 | MEDIUM 5.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | vm2 | >= 3.11.0, < 3.11.7 | 3.11.7 |
References
- https://github.com/patriksimek/vm2/security/advisories/GHSA-x6m4-chr9-cg97 · WEB
- https://www.vulncheck.com/advisories/vm2-3.11.0-before-3.11.7-information-disclosure-via-error-stack · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-92936 · ADVISORY
- https://github.com/patriksimek/vm2/commit/5d5ba5343af571c688a3a81cefad2de25b94180a · WEB
- https://github.com/patriksimek/vm2 · PACKAGE
- https://github.com/patriksimek/vm2/releases/tag/v3.11.7 · WEB
History
- 25 Nov 2026 21:21 UTC · NVD: first stored (published 17 Sep 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 5 Oct 2026)