CVE-2026-92948patriksimek vm2
Escape de sandbox en vm2 por bypass de lista de permitidos de NodeVM
Crítica 9.4
Seguir: esta CVE · patriksimek · patriksimek vm2 Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 56
- CVSS 4.0
- 9.4
- EPSS
- —
- Requiere autenticación
- Sí
- Publicada
- 17 sep 2026
- Actualizada
- 18 sep 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-693
- SSVC (CISA)
- Explotación: prueba de concepto · Automatizable: no · Impacto técnico: total
- Vector
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/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
Qué pasa
vm2 versiones 3.9.6 a 3.11.6 permiten escapar del sandbox en Node.js 24+ cuando se habilita explícitamente el módulo integrado node:test. Un atacante autenticado puede ejecutar código JavaScript arbitrario sin restricciones en el proceso Node.js del host mediante la manipulación de argumentos de ejecución en node:test.run().
Ver el texto original de NVD (en inglés)
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.
Qué hacer
Hay parche · versiones corregidas: 3.11.7
Actualiza vm2 a versión 3.11.7 o superior.
- Aplica la actualización de seguridad del fabricante para vm2.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| npm | vm2 |
≥ 3.9.6 < 3.11.7 |
3.11.7 |
npm install vm2@3.11.7 |
Según OSV / GitHub Advisories (GHSA-qhwx-74w5-xhxq). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados
- patriksimek · vm2
Según el CNA que publicó la CVE. NVD todavía no cargó los CPE con versiones.
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.