CVE-2026-100721
vm2 before 3.12.2 Authorization Bypass via Custom Resolver
Also known as GHSA-5h3f-q97h-ccvc
Mitigation
- Upgrade vm2 to 3.12.2 or later.
Who should check
- Projects that depend on npm package vm2 (< 3.12.2)
- Anyone running patriksimek vm2 < 3.12.2
Vulnerability facts
- Affected
- vm2 < 3.12.2
- Fixed in
- 3.12.2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 9.5 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:HOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: None
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- Confidentiality impact on other systems: High
- Integrity impact on other systems: High
- Availability impact on other systems: High
- EPSS
- 0.74% chance of exploitation in 30 days (percentile 51, 2026-11-26)
- CWE
- CWE-863
- Modified
Description
vm2 before 3.12.2 contains an authorization bypass in the NodeVM external-module resolver. When an embedder configures `require.external` with a custom resolver (and `context: 'host'`), `LegacyResolver.customResolve` in lib/resolver-compat.js records the resolved module directory in `this.externals` as `new RegExp('^' + escapeRegExp(resolvedPath))`, without requiring a path separator or end-of-string boundary. Untrusted guest code can therefore require the allowlisted module (e.g. `foo`) and then require the absolute path of a non-allowlisted sibling whose path merely shares the resolved prefix (e.g. `.../node_modules/foo2/index.js`); the sibling passes `isPathAllowedForModule` and is loaded through `hostRequire`, so its top-level code runs in the host process before the exports are wrapped with `vm.readonly`, resulting in a sandbox escape and arbitrary code execution in the host context.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm vm2 | < 3.12.2 | 3.12.2 | osv |
| patriksimek vm2 | < 3.12.2 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-100721. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-100721.md Affected: vm2 < 3.12.2 Fixed in: 3.12.2 Steps: 1. Search this machine and project for vm2 (npm), patriksimek vm2: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- https://github.com/patriksimek/vm2/commit/6ac3916da84e060c403e407b6b6318fcc66b0e72
- https://github.com/patriksimek/vm2/commit/ab4ee7d803e8c80155e9eb3672226bddbca4aa9c
- https://github.com/patriksimek/vm2/commit/91034466bfb7f56b95fd48083ec6ca36d058f164
- https://github.com/patriksimek/vm2/commit/fb4977f6211da6cadffdf1f3a2017a826a21c51f
FAQ
Is CVE-2026-100721 being exploited?
There is no confirmed exploitation: CVE-2026-100721 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.74% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-100721?
Critical: CVSS 9.5 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-100721?
vm2 < 3.12.2.
Is there a fix for CVE-2026-100721?
Yes. Fixed in 3.12.2. Upgrade vm2 to 3.12.2 or later.
How do I check if I'm affected by CVE-2026-100721?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.