GHSA-cp6g-6699-wx9c: vm2 has a NodeVM require.root bypass via symlink traversal that allows sandbox escape
highvulnerability
security
Summary
vm2's NodeVM sandbox has a critical flaw where path validation uses `path.resolve()` (which doesn't follow symlinks, or follow shortcuts to other folders) but actual module loading uses Node's native `require()` (which does). An attacker can exploit this by creating symlinks inside the allowed root directory that point to restricted code outside it, bypassing sandbox restrictions and executing arbitrary code on the host system.
Vulnerability Details
EPSS (30-day exploit probability)
EPSS: 0.0%
Patch Available
Yes
Disclosure Date
May 7, 2026
Classification
Attack SophisticationModerate
Affected Packages
vm2@= 3.10.5 (fixed: 3.11.0)
Monthly digest — independent AI security research
Original source: https://github.com/advisories/GHSA-cp6g-6699-wx9c
First tracked: May 7, 2026 at 02:00 AM
Classified by LLM (prompt v3) · confidence: 95%