CVE-2025-31125
Vite information disclosure via server.fs.deny bypass
A remote attacker can read files the dev server should block and get their contents returned to the browser.
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
Fuente: CNA
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NCiclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | CVE-2025-31125 divulgada · CVSS 5.3 (CNA) | |
| Remediación | Parche 4.5.11 | vite · 0 d desde divulgación | |
| Remediación | Parche 5.4.16 | vite · 0 d desde divulgación | |
| Remediación | Parche 6.0.13 | vite · 0 d desde divulgación | |
| Remediación | Parche 6.1.3 | vite · 0 d desde divulgación | |
| Remediación | Parche 6.2.4 | vite · 0 d desde divulgación | |
| Explotación | CISA KEV | Agregada al catálogo de vulnerabilidades explotadas | |
| Divulgación | Evaluación SSVC | CISA-ADP · explotación activa | |
| Divulgación | Modificada | Última actualización del registro | |
| Remediación | Plazo KEV | Fecha límite de remediación para agencias federales (EE. UU.) | |
| Explotación | Umbral EPSS | La probabilidad de explotación supera el 10 % | |
| Monitoreo | Detectada | Ingresó al índice | |
| Explotación | Exploit en GitHub | alinaclark672377250/Vitejs-exploit | |
| Monitoreo | Fuente: Nuclei templates | Registro visto por primera vez en Nuclei templates | |
| Monitoreo | Fuente: PoC-in-GitHub | Registro visto por primera vez en PoC-in-GitHub | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Vite, a frontend tooling framework, has a flaw that lets an attacker read the contents of files that the server.fs.deny setting should block, which are returned to the browser. It can be reached remotely without logging in, though it needs a user action and a non-default setup where the dev server is exposed to the network with --host or the server.host option, and it is being exploited in attacks.
Affects Vite dev servers exposed to the network with --host or server.host, in versions before 6.2.4, 6.1.3, 6.0.13, 5.4.16 or 4.5.11. Fixed in those releases.
Descripción original del registro (GitHub_M)
Vite is a frontend tooling framework for javascript. Vite exposes content of non-allowed files using ?inline&import or ?raw?import. 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 6.2.4, 6.1.3, 6.0.13, 5.4.16, and 4.5.11.
Condiciones y alcance
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
npmvite |
Corregida | 4.5.11, 5.4.16, 6.0.13, 6.1.3, 6.2.4 | 0 d · 0 d · 0 d · 0 d · 0 d | 8.3.8 no afectada |
4.5.115.4.166.0.136.1.36.2.4Arsenal público
Ver los 5 repositorios de GitHub (1 con exploit confirmado)
Los repositorios públicos incluyen exploits, escáneres, laboratorios y reglas de detección. No ejecute código de terceros sin revisarlo en un entorno aislado.
https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-31125https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-31125.yamlhttps://github.com/0xgh057r3c0n/CVE-2025-31125https://github.com/MuhammadWaseem29/Vitejs-exploithttps://github.com/alinaclark672377250/Vitejs-exploithttps://github.com/harshgupptaa/Path-Transversal-CVE-2025-31125-https://github.com/sunhuiHi666/CVE-2025-31125https://github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
