CVE-2026-84373vitest-dev vitest
Media 5.9 Sin autenticación
Seguir: esta CVE · vitest-dev · vitest-dev vitest Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 50
- CVSS 3.1
- 5.9
- EPSS
- —
- Requiere autenticación
- No
- Publicada
- 1 sep 2026
- Actualizada
- 9 sep 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-22
- SSVC (CISA)
- Explotación: ninguna · Automatizable: no · Impacto técnico: parcial
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Qué pasa
Vitest is a testing framework powered by Vite. From 2.1.0 until 4.1.11 and 5.0.0-rc.2, the public mockerPlugin and standalone interceptorPlugin exports in packages/mocker/src/node/interceptorPlugin.ts register the vitest:interceptor:register handler on Vite's unauthenticated HMR WebSocket without validating redirect targets against the file-serving allowlist. The implementation processes event.redirect without enforcing server.fs.allow and server.fs.deny through isFileLoadingAllowed. A remote client that can reach an exposed development server can submit an opaque URL scheme preserving .. segments, causing join(server.config.root, redirectUrl.pathname) to resolve outside the project root. The plugin's load hook then returns readFile(mock.redirect, 'utf-8') as module source, disclosing local files readable by the dev-server process. Vitest browser mode uses a token-authenticated RPC and is not remotely unauthenticated by default, although the same boundary check was missing on that path. This issue is fixed in versions 4.1.11 and 5.0.0-rc.2.
Qué hacer
- Aplica la actualización de seguridad del fabricante para vitest.
- 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 | @vitest/mocker |
≥ 2.1.0 < 4.1.11 |
4.1.11 |
npm install @vitest/mocker@4.1.11 |
| npm | @vitest/mocker |
≥ 5.0.0-beta.1 < 5.0.0-rc.2 |
5.0.0-rc.2 |
npm install @vitest/mocker@5.0.0-rc.2 |
| npm | vitest |
≥ 2.1.0 < 4.1.11 |
4.1.11 |
npm install vitest@4.1.11 |
| npm | vitest |
≥ 5.0.0-beta.1 < 5.0.0-rc.2 |
5.0.0-rc.2 |
npm install vitest@5.0.0-rc.2 |
Según OSV / GitHub Advisories (GHSA-82fw-gwwq-j7x9). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados
- vitest-dev · vitest
- @vitest · mocker
Según el CNA que publicó la CVE. NVD todavía no cargó los CPE con versiones.
Boletines oficiales
- Security update for golang-github-prometheus-prometheus · SUSE · SUSE-SU-2026:5448-1 · 25 nov 2026 Crítica
- Security update for Multi-Linux Manager Client Tools and Salt Bundle · SUSE · SUSE-SU-2026:5446-1 · 25 nov 2026 Crítica
Avisos de fabricantes, CERT y distribuciones que nombran esta CVE. Títulos sin modificar.
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.