cve.bz

CVE-2026-100721 patriksimek vm2: Incorrect Authorization

9.5 criticalEPSS 0.6%Fix available

Critical (9.5) in patriksimek vm2. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in vm2 3.12.2.

On this page
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.

Severity

CVSS 4.0

9.5 critical
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

CVSS 3.1

9.0 critical
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
EPSS
0.6% (unchanged from 0.6% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 49th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2026-09-28. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-863 Incorrect Authorization
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • vm2 (npm): fixed in 3.12.2

Ask an AI about this CVE

Show the promptExplain CVE-2026-100721 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-100721?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-100721?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-100721 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
patriksimek vm2before 3.12.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-5h3f-q97h-ccvcnpmvm2<3.12.23.12.2

Red Hat

Red Hat rates this Critical.

Red Hat's statement

This vulnerability is rated Critical because an unauthenticated remote attacker can escape sandbox isolation to execute arbitrary code in the host process context, leading to full compromise of confidentiality, integrity, and availability. Exploitation requires specific architectural preconditions where an application embeds NodeVM configured with host-context execution and a custom external module resolver. Red Hat Developer Hub does not expose this specific sandbox implementation in its configuration so it is not affected.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2.2ansible-automation-platform/bootc-automation-portal-rhel9:1792641102Fixed 2026-10-22RHSA-2026:88200
Red Hat Developer Hub 1rhdh/red-hat-developer-hub-backstage-plugin-lightspeed-backendNot affected
Red Hat Developer Hub 1rhdh/red-hat-developer-hub-backstage-plugin-orchestrator-backendNot affected
Red Hat Developer Hub 1rhdh/rhdh-hub-rhel9Not affected
Self-service automation portal 2ansible-automation-platform/automation-portalNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-100721.

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

  • murrez/CVE-2026-100721 0 stars, Python, created
    CVE-2026-100721 PoC: vm2 <3.12.2 NodeVM external allowlist bypass → sandbox escape / host RCE. Local Node lab (evil-left-pad), remote sandb…

References

Check your stackJSON