CVE-2026-100721 json
vm2 before 3.12.2 Authorization Bypass via Custom Resolver
published 2026-09-27 43 d ago modified 2026-10-05 34 d ago also EUVD-2026-87858 , GHSA-5h3f-q97h-ccvc
- cvss
- 9.0
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 48%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm vm2 3.12.2
- patriksimek vm2 3.12.2
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-100721 updated cvss 9.0
vm2: vm2 before 3.12.2 Authorization Bypass via Custom Resolver
-
Red Hat Ansible Automation Platform 2.2 ansible-automation-platform/bootc-automation-portal-rhel9 1792641102fixed: vendor fix RHSA-2026:88200
-
Red Hat Developer Hub 1 rhdh/rhdh-hub-rhel9, rhdh/red-hat-developer-hub-backstage-plugin-lightspeed-backend, rhdh/red-hat-developer-hub-backstage-plugin-orchestrator-backend Red Hat Self-service automation portal 2 ansible-automation-platform/automation-portalnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 41 d ago
Exploit prediction
0.59% chance of exploitation in the next 30 days, higher than 48% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 9.5 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H |
| CNA | 3.1 | 9.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
| GitHub | 3.1 | 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| CNA | 4.0 | 9.5 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | vm2 | <3.12.2 |
3.12.2 |
Affected products
- patriksimek vm2
Classification
- Weakness
-
- CWE-863 Incorrect Authorization
References
-
github.com
/patriksimek/vm2/commit/6ac3916da84e060c403e407b6b6318fcc66b0e72
patch, web
-
github.com
/patriksimek/vm2/commit/ab4ee7d803e8c80155e9eb3672226bddbca4aa9c
patch, web
-
github.com
/patriksimek/vm2/commit/91034466bfb7f56b95fd48083ec6ca36d058f164
patch, web
-
github.com
/patriksimek/vm2/commit/fb4977f6211da6cadffdf1f3a2017a826a21c51f
web
-
github.com
/patriksimek/vm2/security/advisories/GHSA-5h3f-q97h-ccvc
vendor-advisory, web
-
vulncheck.com
/advisories/vm2-before-3.12.2-authorization-bypass-via-custom-resolver
third-party-advisory, web
-
nvd.nist.gov
/vuln/detail/CVE-2026-100721
advisory
-
github.com
/patriksimek/vm2
package
-
github.com
/patriksimek/vm2/releases/tag/v3.12.2
web
Sources
- CVE List CVE-2026-100721
- GitHub Advisory GHSA-5h3f-q97h-ccvc
- NVD CVE-2026-100721
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.