cve.bz

CVE-2026-92948 patriksimek vm2: Protection Mechanism Failure

9.4 criticalEPSS 0.7%Fix available

Critical (9.4) in patriksimek vm2. EPSS 0.7% estimated probability of exploitation activity in the next 30 days. Fixed in vm2 3.11.7.

On this page
vm2 versions >= 3.9.6 and <= 3.11.6 are affected by a NodeVM builtin allowlist bypass that permits a sandbox escape on Node.js 24 and newer when the embedder explicitly allows the node:test builtin (e.g. require: { builtin: ['node:test'] }). On Node.js 24+, module.builtinModules exposes the scheme-only key node:test, which is not covered by vm2's family-based DANGEROUS_BUILTINS protection, so it is stored in the generic host-passthrough loader. Because requireImpl() in lib/setup-node-sandbox.js strips a single 'node:' prefix before the builtin lookup, sandbox code calling require('node:node:test') resolves to the stored node:test key and receives a readonly proxy to the host module. Calls to node:test.run() are forwarded to the host implementation, which spawns a separate Node process for process-isolated test execution and passes through attacker-controlled execArgv values; supplying --eval=<JavaScript> therefore executes arbitrary JavaScript in an unrestricted host Node process outside the NodeVM sandbox. Fixed in vm2 3.11.7.

Severity

CVSS 4.0

9.4 critical
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

CVSS 3.1

9.9 critical
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
EPSS
0.7% (unchanged from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 52nd 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-18. 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-693 Protection Mechanism Failure
OWASP Top 10
A06:2025 Insecure Design
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.11.7

Ask an AI about this CVE

Show the promptExplain CVE-2026-92948 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-92948?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-92948?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-92948 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 vm2from 3.9.6 before 3.11.7

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-qhwx-74w5-xhxqnpmvm2>=3.9.6 <3.11.73.11.7

Red Hat

Red Hat rates this Important.

Red Hat's statement

An important-impact sandbox escape affects the vm2 JavaScript sandbox library as shipped in Red Hat Ansible Automation Platform 2.1 and 2.2 (automation-portal and bootc-automation-portal-rhel9 containers) and Red Hat Developer Hub 1.9 and 1.10 (rhdh-hub-rhel9 and the orchestrator and lightspeed backend plugin containers). In vm2 versions 3.9.6 through 3.11.6, built-in module names are not properly validated, so the sandbox fails to block access to sensitive host functions. On Node.js 24 and later, when an embedder explicitly allows the node:test built-in in the NodeVM configuration, sandboxed code can obtain a proxy to the host node:test module by requesting it with a doubled 'node:' prefix and then call its run() function with attacker-controlled execArgv options such as --eval; the host implementation spawns a separate unrestricted Node.js process, resulting in arbitrary code execution on the host outside the sandbox with the full permissions of the embedding user. Exploitation requires the attacker to already be able to run code inside the sandbox, requires the embedder to have explicitly allowlisted the node:test built-in, and is only reachable on Node.js 24 or newer. Because of these preconditions, Red Hat rates the impact of this flaw as important even though the CVSS 3.1 base score (9.9) maps to critical severity, matching the upstream severity rating. Fixes for the affected product streams are being pursued through the responsible Red Hat product teams under delegated resolution.

Red Hat's mitigation

This flaw is only reachable when the NodeVM sandbox configuration explicitly allows the node:test built-in and the application runs on Node.js 24 or later. As a workaround, remove node:test from the allowed builtins in the vm2 sandbox configuration (for example, drop it from the require.builtin allowlist), or run the embedding application on a Node.js version where the scheme-only node:test entry is not exposed (the exploit path is not present on Node.js 22). If test functionality must be exposed to sandboxed code, provide a sandbox-local wrapper using vm2's mock or override options that does not expose run(), process isolation, execArgv, or other host process controls. Otherwise, update to a build containing the fix: upstream vm2 is fixed in version 3.11.7, and updates for the affected Red Hat Ansible Automation Platform and Red Hat Developer Hub streams are available through the respective product releases.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2.1ansible-automation-platform/automation-portal:1791295379Fixed 2026-10-12RHSA-2026:80603
Red Hat Ansible Automation Platform 2.2ansible-automation-platform/automation-portal:1791293780Fixed 2026-10-12RHSA-2026:80644
Red Hat Ansible Automation Platform 2.2ansible-automation-platform/bootc-automation-portal-rhel9:1791865660Fixed 2026-10-13RHSA-2026:82151
Red Hat Developer Hub 1.10rhdh/red-hat-developer-hub-backstage-plugin-lightspeed-backend:1791242697Fixed 2026-10-06RHSA-2026:76788
Red Hat Developer Hub 1.10rhdh/red-hat-developer-hub-backstage-plugin-orchestrator-backend:1791251282Fixed 2026-10-06RHSA-2026:76788
Red Hat Developer Hub 1.10rhdh/rhdh-hub-rhel9:1791311495Fixed 2026-10-08RHSA-2026:79088
Red Hat Developer Hub 1.9rhdh/rhdh-hub-rhel9:1793117813Fixed 2026-10-28RHSA-2026:91651

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-92948.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-693 (17).

References

Check your stackJSON