Path traversal in vitest - CVE-2026-84373
Published: August 19, 2026 / Updated: September 2, 2026
Vulnerability details
The vulnerability allows a remote attacker to disclose sensitive information.
The vulnerability exists due to improper input validation in @vitest/mocker interceptorPlugin load hook when handling redirect mock registration and loading mocked modules through the dev server WebSocket. A remote attacker can register a redirect mock with a crafted target path to disclose sensitive information.
This issue affects development-server deployments and is remotely exploitable without authentication only through the public mockerPlugin or standalone interceptorPlugin exposed over a reachable unauthenticated HMR WebSocket.