Path traversal in vitest - CVE-2026-73653

 

Path traversal in vitest - CVE-2026-73653

Published: July 9, 2026 / Updated: August 16, 2026


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

Vulnerability details

The vulnerability allows a remote attacker to read, create, overwrite, or delete arbitrary files accessible to the Vitest process.

The vulnerability exists due to path traversal in Browser Mode provider commands when handling client-supplied file paths through the Browser Mode API. A remote attacker can send crafted command inputs with absolute paths or traversal sequences to read, create, overwrite, or delete arbitrary files accessible to the Vitest process.

This is most relevant when the Browser Mode API is reachable from another machine or origin, or when untrusted test code is relied upon to be contained by the file-access restriction.


Affected software

vitest

How to mitigate CVE-2026-73653

Install security update from vendor's website.

vitest - addressed in versions 3.2.7, 4.1.10, 5.0.0.1

External References

Related Security Bulletins