llamaCVEVulnerability Intelligence
/
Vite

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.

CISA KEV · explotación activaCrítica · en CISA KEVExplotación activaParche disponibleinformation disclosure
Descargar PNG JSON
CVSS 3.1
5.3
Media
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N Fuente: CNA
7.5NVD · CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
ExplotaciónActivaEn CISA KEV desde 22 ene 2026
Exploits públicos62 fuentes · 1 confirmado en GitHub
Parche5 versionesPrimer parche el mismo día de la divulgación
Exposición597 dDesde la divulgación, 31 mar 2025, 12:06 p. m.
EPSS ≥ 10 %22 oct 2026Fecha en que la probabilidad de explotación superó el umbral
Decisión SSVCAtender
Priorizar en el próximo ciclo de cambios
Explotación activa, no automatizable e impacto técnico total. Plazo KEV: 12 feb 2026.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Evaluación SSVC +1
Explotación
CISA KEV
Umbral EPSS
Exploit en GitHub
Remediación
Parche 4.5.11 +4
Plazo KEV
Monitoreo
Detectada
Fuente: Nuclei templates +2
31 mar 25
22 ene 26
23 ene 26
12 feb 26
22 oct 26
18 nov 26
19 nov 26
31 mar 25
28 ago 25
24 ene 26
23 jun 26
19 nov 26
FechaFaseEventoDetalle
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
Resumen
Resumen generado por IA · CC-BY 4.0 · 12 nov 2026

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.

¿Qué significa?The server.fs.deny setting is meant to block access to certain files, but it can be bypassed using the ?import query with inline or raw. The contents of arbitrary files can then be returned to the browser, either raw or base64 encoded.
¿Quién está afectado?Affected versions are 6.2.0-6.2.3, 6.1.0-6.1.2, 6.0.0-6.0.12, 5.0.0-5.4.15, and 4.5.10 and earlier. Only apps that explicitly expose the Vite dev server to the network, using --host or the server.host config option, are affected. The installed version can be checked with `npx vite --version` or in package.json, and the host setting in the Vite config or the dev command flags.
¿Qué hacer?Upgrade to the fixed release for the version line in use: 6.2.4, 6.1.3, 6.0.13, 5.4.16, or 4.5.11. The advisory limits the affected setup to dev servers exposed with --host or server.host.
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.

Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Vite dev server is explicitly exposed to the network via --host or the server.host config option“Only apps explicitly exposing the Vite dev server to the network (using --host or server.host config option ) are affected.”
02
Vite versions 6.2.0-6.2.3, 6.1.0-6.1.2, 6.0.0-6.0.12, 5.0.0-5.4.15, or 4.5.10 and earlier“>=6.2.0, <=6.2.3 >=6.1.0, <=6.1.2 >=6.0.0, <=6.0.12 >=5.0.0, <=5.4.15 <=4.5.10”
¿Quién debe revisar?Teams running the Vite dev server (npm vite 4.5.10 and earlier, 5.x, 6.x before the patched releases) exposed to the network with --host or server.host.
Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:H
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:R
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:N
AltoBajoNinguno
DisponibilidadA:N
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida Última
vite< 4.5.11
vite≥ 5.0.0 < 5.4.16
vite≥ 6.0.0 < 6.0.13
vite≥ 6.1.0 < 6.1.3
vite≥ 6.2.0 < 6.2.4
4.5.11
5.0.0
5.4.16
6.0.0
6.0.13
6.1.0
6.1.3
6.2.0
6.2.4
8.3.8
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde 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
Versiones corregidas4.5.115.4.166.0.136.1.36.2.4
Explotación

Arsenal público

Exploit-DB
—
0
Metasploit
—
0
Nuclei
http/cves/2025/CVE-2025-31125.yaml
1
PoC en GitHub
0xgh057r3c0n/CVE-2025-31125 · MuhammadWaseem29/Vitejs-exploit · alinaclark672377250/Vitejs-exploit · harshgupptaa/Path-Transversal-CVE-2025-31125- · sunhuiHi666/CVE-2025-31125
5
Ver los 5 repositorios de GitHub (1 con exploit confirmado)
0xgh057r3c0n/CVE-2025-31125
MuhammadWaseem29/Vitejs-exploit
alinaclark672377250/Vitejs-exploitexploit
harshgupptaa/Path-Transversal-CVE-2025-31125-
sunhuiHi666/CVE-2025-31125

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.

Acción requerida por CISAApply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Referencias
Fabricantehttps://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8
CISA KEVhttps://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-31125
Exploithttps://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-31125.yaml
Exploithttps://github.com/0xgh057r3c0n/CVE-2025-31125
Exploithttps://github.com/MuhammadWaseem29/Vitejs-exploit
Exploithttps://github.com/alinaclark672377250/Vitejs-exploit
Exploithttps://github.com/harshgupptaa/Path-Transversal-CVE-2025-31125-
Exploithttps://github.com/sunhuiHi666/CVE-2025-31125
Otrahttps://github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949

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