CVE-2026-102829steveukx git-js
Ejecución de código arbitrario mediante variable de entorno VISUAL en git-js
Crítica 9.2 Sin autenticación
Seguir: esta CVE · steveukx · steveukx git-js Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 70
- CVSS 4.0
- 9.2
- EPSS
- —
- Requiere autenticación
- No
- Publicada
- 29 sep 2026
- Actualizada
- 30 sep 2026
- Categoría
- Aplicación · Multiplataforma
- SSVC (CISA)
- Explotación: prueba de concepto · Automatizable: no · Impacto técnico: total
- Vector
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/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
La librería simple-git (git-js) anterior a la versión 2.0.1 de argv-parser omite la variable de entorno VISUAL en la validación de seguridad, permitiendo que un atacante ejecute un editor arbitrario durante operaciones de Git como enmiendas de commits o rebase interactivo. El editor se ejecuta con los privilegios del proceso Node.js.
Ver el texto original de NVD (en inglés)
simple-git, an interface for running git commands in any node.js application, enables applications to execute Git operations from JavaScript. Prior to 2.0.1 of the argv-parser package, parseEnv omits VISUAL from GitEnvKeys, so prepareEnv drops the value before vulnerabilityCheck can classify it as allowUnsafeEditor. A consuming application that forwards attacker-influenced environment values can therefore allow Git to invoke an attacker-selected editor during operations such as commit amendment or interactive rebase when no higher-priority editor setting overrides VISUAL and Git's terminal prerequisites are met. The executable runs with the privileges of the Node.js process. This issue is fixed in argv-parser 2.0.1.
Qué hacer
Hay parche · versiones corregidas: 2.0.1
Actualiza @simple-git/argv-parser a la versión 2.0.1 o superior.
- Aplica la actualización de seguridad del fabricante para git-js.
- Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| npm | @simple-git/argv-parser |
< 2.0.1 |
2.0.1 |
npm install @simple-git/argv-parser@2.0.1 |
Según OSV / GitHub Advisories (GHSA-v5rq-49vh-5v5c). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados
- steveukx · git-js
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.