Description
vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.0, vm2's CallSite wrapper class (intended as a safe wrapper for V8's native CallSite) blocks getThis() and getFunction() to prevent host object leakage, but allows getFileName() to return unsanitized host absolute paths. Any sandboxed code can extract the full directory structure, library paths, and framework versions of the host server. This vulnerability is fixed in 3.11.0.
Affected products
vm2_project: vm2
References1
- github.com/patriksimek/vm2/security/advisories/GHSA-v27g-jcqj-v… ExploitVendor Advisory
Metrics
- CVSS 3.1
-
5.8
MEDIUM
Score source: CNA
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N - EPSS — exploit probability
- 0% percentile: 15 · as of 14 November 2026
- CWE
- CWE-209
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.