Path traversal in vitest - CVE-2026-84373

 

Path traversal in vitest - CVE-2026-84373

Published: August 19, 2026 / Updated: September 2, 2026


Vulnerability identifier: #VU144336
CSH Severity: Medium
CVSS v4: 8.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-84373
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available

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.


Affected software

vitest

How to mitigate CVE-2026-84373

Install security update from vendor's website.

vitest - update to 4.1.11

External References

Related Security Bulletins