Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. vm2
  4. ›
  5. CVE-2026-43998

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

May 7, 2026

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.

References

  • github.com/advisories/GHSA-cp6g-6699-wx9c
  • github.com/patriksimek/vm2
  • github.com/patriksimek/vm2/releases/tag/v3.11.0
  • github.com/patriksimek/vm2/security/advisories/GHSA-cp6g-6699-wx9c
  • nvd.nist.gov/vuln/detail/CVE-2026-43998

Code Behaviors & Features

Detect and mitigate CVE-2026-43998 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 3.10.5 before 3.11.0, version 3.10.5

Fixed versions

  • 3.11.0

Solution

Upgrade to version 3.11.0 or above.

Impact 8.5 HIGH

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-59: Improper Link Resolution Before File Access ('Link Following')

Source file

npm/vm2/CVE-2026-43998.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 00:18:29 +0000.