llamaCVEVulnerability Intelligence
/
Advisory · GitHub · npm · launch-editor

GHSA-587H-7WMJ-H5PM

launch-editor: `fs.existsSync()` existence check can be bypassed on Windows

Parche disponible
Descargar PNG JSON
CVSS
—
high
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche7 versionesPrimer parche a -14 d de la divulgación
Exposición30 dDesde la divulgación, 20 oct 2026, 2:48 p. m.
Detección27 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada +1
Explotación
Remediación
Parche 2.14.2 +5
Parche 1.1.0
Monitoreo
Detectada
6 oct 26
7 oct 26
20 oct 26
17 nov 26
19 nov 26
6 oct 26
17 oct 26
28 oct 26
8 nov 26
19 nov 26
FechaFaseEventoDetalle
Remediación Parche 2.14.2 launch-editor · -14 d desde divulgación
Remediación Parche 6.4.4 vite · -14 d desde divulgación
Remediación Parche 7.3.7 vite · -14 d desde divulgación
Remediación Parche 8.1.6 vite · -14 d desde divulgación
Remediación Parche 8.2.4 vite · -14 d desde divulgación
Remediación Parche 8.3.3 vite · -14 d desde divulgación
Remediación Parche 1.1.0 vite-plus · -13 d desde divulgación
Divulgación Publicada GHSA-587H-7WMJ-H5PM divulgada
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen
Descripción del advisory
Texto original · GitHub · en inglés
Summary

`launch-editor` checked `fs.existsSync(fileName)` before passing a supplied path to an editor command. On Windows, an attacker can bypass this check with a crafted path ending in `\\..:line:column`. This removes the requirement that the attacker be able to place a file with a malicious filename.

Combined with the `%` escaping issue described in GHSA-698v-4r3x-3vcv https://github.com/vitejs/launch-editor/security/advisories/GHSA-698v-4r3x-3vcv, this bypass can lead to OS command injection when an attacker controls the file argument.

Impact

Only apps that runs on Windows is affected.

Details

The earlier advisory assumed that `fs.existsSync()` required an attacker-controlled filename to exist. This advisory covers a bypass of that requirement.

A crafted value ending in `\\..:1:1` is interpreted differently by `launch-editor-middleware`, `launch-editor`, and Windows:

  1. `launch-editor-middleware` calls `path.resolve()` while the final path component is `..:1:1`, so it is not treated as a parent-directory component.
  2. `launch-editor` treats `:1:1` as a line-and-column suffix and removes it, leaving a path ending in `\\..`.
  3. On Windows, `fs.existsSync()` accepts the resulting path as the existing parent directory even though the attacker-controlled preceding component does not exist.
  4. Because the existence check passes, the crafted filename reaches the Windows shell command.
Versiones

Rangos afectados

Afectada Corregida Última
vite-plus< 1.1.0
launch-editor< 2.14.2
vite< 6.4.4
vite≥ 7.0.0 < 7.3.7
vite≥ 8.0.0 < 8.1.6
vite≥ 8.2.0 < 8.2.4
vite≥ 8.3.0 < 8.3.3
1.1.0
2.14.2
6.4.4
7.0.0
7.3.7
8.0.0
8.1.6
8.2.0
8.2.4
8.3.0
8.3.3
8.3.8
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
npmlaunch-editor
Corregida 2.14.2 -14 d 2.14.2 no afectada
npmvite
Corregida 6.4.4, 7.3.7, 8.1.6, 8.2.4, 8.3.3 -14 d · -14 d · -14 d · -14 d · -14 d 8.3.8 no afectada
npmvite-plus
Corregida 1.1.0 -13 d 1.6.0 no afectada
Versiones corregidas1.1.02.14.26.4.47.3.78.1.68.2.48.3.3
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-112942
Otrahttps://github.com/vitejs/launch-editor/security/advisories/GHSA-587h-7wmj-h5pm
Otrahttps://github.com/vitejs/launch-editor/commit/f13cd835d4b8e860b1d4d080ad8a490cc2463679
Otrahttps://github.com/vitejs/launch-editor
Otrahttps://github.com/vitejs/launch-editor/releases/tag/v2.14.2

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.