SB2026081991 - Path traversal in vitest



SB2026081991 - Path traversal in vitest

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

Security Bulletin ID SB2026081991
CSH Severity
Medium
Patch available
YES
Number of vulnerabilities 1
Exploitation vector Remote access
Highest impact Information disclosure

Breakdown by Severity

Medium 100%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 1 vulnerability.


1) Path traversal (CVE-ID: CVE-2026-84373)

CWE-ID: CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

CVSSv4: 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]


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.


Remediation

Install update from vendor's website.