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.…
Historical advisory saved 28 Oct 2026 00:00:34 UTC. The publisher may have updated it since then. Latest advisory.
euvd · EUVD-2026-87858
Publishedvm2 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.
Additional publisher context
EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON.
Original publisher date fields
datePublished: Sep 27, 2026, 1:28:28 AM
dateUpdated: Sep 28, 2026, 4:51:10 PM
1 related source bulletins · separate from aliases
RHSA-2026:88200: Red Hat Security Advisory: Ansible automation portal Red Hat Enterprise Linux Images
CVE-2026-9496 · CVE-2026-19553 · CVE-2026-85393 · CVE-2026-87776 · CVE-2026-89011 · CVE-2026-100721
- Source published
- Sep 27, 2026, 1:28:28 AM (timezone not stated)
- Source modified
- Sep 28, 2026, 4:51:10 PM (timezone not stated)
- Saved here
- 28 Oct 2026 00:00:34 UTC
- Source terms
- ENISA EUVD · source terms and attribution apply
Original source record · Cite this exact observation · Complete original publisher JSON
Source: euvd · ENISA EUVD · source terms and attribution apply. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.
EUVD CVSS 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