llamaCVEVulnerability Intelligence
/
vitest

CVE-2025-24963

Browser mode serves arbitrary files in vitest

Parche disponible
Descargar PNG JSON
CVSS 3.1
5.9
Media
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/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ónPoC públicaSSVC: poc · no figura en CISA KEV
Exploits públicos22 fuentes
Parche2 versionesPrimer parche a -12 d de la divulgación
Exposición652 dDesde la divulgación, 4 feb 2025, 2:36 p. m.
Detección636 dDesde la divulgación hasta su ingreso al índice
Decisión SSVCSeguir de cerca
Monitorear y programar la remediación
Existe PoC pública, no automatizable e impacto técnico total. Hay versiones corregidas disponibles.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada +1
Modificada
Explotación
Remediación
Parche 3.0.4
Parche 2.1.9
Monitoreo
Detectada
Verificada
23 ene 25
3 feb 25
4 feb 25
12 feb 25
3 nov 26
13 nov 26
19 nov 26
23 ene 25
9 jul 25
22 dic 25
6 jun 26
19 nov 26
FechaFaseEventoDetalle
Remediación Parche 3.0.4 @vitest/browser · -12 d desde divulgación
Remediación Parche 2.1.9 @vitest/browser · -1 d desde divulgación
Divulgación Publicada CVE-2025-24963 divulgada · CVSS 5.9 (CNA)
Divulgación Evaluación SSVC CISA-ADP · explotación PoC pública
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen

Vitest is a testing framework powered by Vite. The `__screenshot-error` handler on the browser mode HTTP server that responds any file on the file system. Especially if the server is exposed on the network by `browser.api.host: true`, an attacker can send a request to that handler from remote to get the content of arbitrary files.This `__screenshot-error` handler on the browser mode HTTP server responds any file on the file system. This code was added by commit `2d62051`. Users explicitly exposing the browser mode server to the network by `browser.api.host: true` may get any files exposed. This issue has been addressed in versions 2.1.9 and 3.0.4. Users are advised to upgrade. There are no known workarounds for this vulnerability.

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:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:N
AltoBajoNinguno
DisponibilidadA:N
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida Última
vitest · @vitest/browser≥ 2.0.4 < 2.1.9
vitest · @vitest/browser≥ 3.0.0 < 3.0.4
2.0.4
2.1.9
3.0.0
3.0.4
5.1.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
npm@vitest/browser
Corregida 2.1.9, 3.0.4 -1 d · -12 d 5.1.0 no afectada
Versiones corregidas2.1.93.0.4
Explotación

Arsenal público

Exploit-DB
—
0
Metasploit
—
0
Nuclei
http/cves/2025/CVE-2025-24963.yaml
1
PoC en GitHub
hiteshpatra/CVE-2025-24963
1
Ver los 1 repositorios de GitHub
hiteshpatra/CVE-2025-24963

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.

Referencias
Fabricantehttps://github.com/vitest-dev/vitest/security/advisories/GHSA-8gvc-j273-4wm5
Fabricantehttps://vitest.dev/guide/browser/config.html#browser-api
Exploithttps://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-24963.yaml
Exploithttps://github.com/hiteshpatra/CVE-2025-24963
Otrahttps://github.com/vitest-dev/vitest/commit/2d62051f13b4b0939b2f7e94e88006d830dc4d1f
Otrahttps://github.com/vitest-dev/vitest/blob/f17918a79969d27a415f70431e08a9445b051e45/packages/browser/src/node/plugin.ts#L88-L130

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