{"id":"CVE-2026-43998","published":"2026-05-13T17:19:44Z","modified":"2026-09-07T12:04:49Z","title":"vm2: NodeVM require.root bypass via symlink traversal allows sandbox escape","vendor":"patriksimek","product":"vm2","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00851,"percentile":0.55649,"provenance":"source"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"references":[{"url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-cp6g-6699-wx9c","tags":["x_refsource_CONFIRM"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-43998","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2477206","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-43998.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:50850","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":17.1,"factors":[{"name":"EPSS percentile","points":11.13},{"name":"CVSS severity","points":5.95}]},"vendorSlug":"patriksimek","affectedVersions":[{"vendor":"patriksimek","product":"vm2","versions":["3.10.5"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-05-14T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"vm2","vulnerableRanges":[">=3.10.5, <3.11.0"],"patched":["3.11.0"],"from":["GHSA-cp6g-6699-wx9c"],"provenance":"source"}],"summary":{"text":"A flaw in the NodeVM module of the vm2 Node.js sandbox library lets the path restriction on require.root be bypassed through filesystem symlinks, because path validation does not follow symlinks while Node's native require() does. An attacker who can run code inside a NodeVM sandbox can, by exploiting this symlink mismatch, load host-realm modules from outside the permitted root and achieve remote code execution, with the attack complexity being high and low privileges required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:50:13Z"},"euvd":{"id":"EUVD-2026-30068","exploited":false,"provenance":"source"}}