Skip to content

CVE-2026-43998 vm2: NodeVM require.root bypass via symlink traversal allows sandbox escape

HighCVSS 8.5 EPSS 0.72%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total
Technology
Red Hat

Description

vm2 is an open source vm/sandbox for Node.js. In 3.10.5, NodeVM's require.root path restriction can be bypassed using filesystem symlinks, allowing sandboxed code to load modules from outside the allowed root directory in host context. Because path validation uses path.resolve() (which does not dereference symlinks) but module loading uses Node's native require() (which does), an attacker can load arbitrary host-realm modules and achieve remote code execution. This vulnerability is fixed in 3.11.0.

Upgrade path

6 packages: 2 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
redhat/ansible-automation-platform/automation-portal:1785854226(Red Hat ansible_portal 2.1) All versions No fix listed No fix yet
npm vm2(npm) = 3.10.5; >= 3.10.5, < 3.11.0 3.11.0 Fixed
redhat ansible portal < 1785854226 1785854226 Fixed
patriksimek vm2 = 3.10.5 No fix listed Versions listed
redhat rhdh = 1 No fix listed Versions listed
vm2 project vm2 = 3.10.5 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
patriksimek vm2 = 3.10.5 No fix listed
redhat ansible portal < 1785854226 1785854226
redhat rhdh = 1 No fix listed
npm vm2(npm) = 3.10.5 No fix listed
redhat/ansible-automation-platform/automation-portal:1785854226(Red Hat:ansible_portal:2.1) All versions No fix listed
vm2 project vm2 = 3.10.5 No fix listed
npm vm2(npm) >= 3.10.5, < 3.11.0 3.11.0

References