CVE-2026-92948
published critical CVSS 4.0 · 9.4vm2 3.9.6 through 3.11.5 Sandbox Escape via node:test
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| patriksimek | — | vm23.9.6 to < 3.11.7 (affected · semver) · 3.11.7 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 9.4 / 10
- Severity
- critical
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 9.9 | critical | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| patriksimek | vm2 | 3.9.6 to < 3.11.7 (affected · semver)3.11.7 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-693 Protection Mechanism Failure
References
2- GitHub Security Advisory (GHSA-qhwx-74w5-xhxq) https://github.com/patriksimek/vm2/security/advisories/GHSA-qhwx-74w5-xhxq
- VulnCheck Advisory: vm2 3.9.6 through 3.11.5 Sandbox Escape via node:test https://www.vulncheck.com/advisories/vm2-3.9.6-through-3.11.5-sandbox-escape-via-node-test
Provider assertions
2VulnCheck · cna
vm2 3.9.6 through 3.11.5 Sandbox Escape via node:test
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 2507395e94dc6500a1a14a1fc6d200ef5dd4cc3462f52db6523110680f72aea3
- Ingested
- 23 Sep 2026, 09:40:21 UTC
- Source record
- Official CVE record