CVE-2025-31486vitejs vite
Media 5.3 Sin autenticación
Seguir: esta CVE · vitejs · vitejs vite Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 47
- CVSS 3.1
- 5.3
- EPSS
- —
- Requiere autenticación
- No
- Publicada
- 3 abr 2025
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- SSVC (CISA)
- Explotación: prueba de concepto · Automatizable: no · Impacto técnico: parcial
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
Qué pasa
Vite is a frontend tooling framework for javascript. The contents of arbitrary files can be returned to the browser. By adding ?.svg with ?.wasm?init or with sec-fetch-dest: script header, the server.fs.deny restriction was able to bypass. This bypass is only possible if the file is smaller than build.assetsInlineLimit (default: 4kB) and when using Vite 6.0+. Only apps explicitly exposing the Vite dev server to the network (using --host or server.host config option) are affected. This vulnerability is fixed in 4.5.12, 5.4.17, 6.0.14, 6.1.4, and 6.2.5.
Qué hacer
- Aplica la actualización de seguridad del fabricante para vite.
- 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 | vite |
≥ 6.2.0 < 6.2.5 |
6.2.5 |
npm install vite@6.2.5 |
| npm | vite |
≥ 6.1.0 < 6.1.4 |
6.1.4 |
npm install vite@6.1.4 |
| npm | vite |
≥ 6.0.0 < 6.0.14 |
6.0.14 |
npm install vite@6.0.14 |
| npm | vite |
≥ 5.0.0 < 5.4.17 |
5.4.17 |
npm install vite@5.4.17 |
| npm | vite |
< 4.5.12 |
4.5.12 |
npm install vite@4.5.12 |
Según OSV / GitHub Advisories (GHSA-xcj6-pq6g-qj4x). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados
- vitejs · vite
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.