Path traversal in vitest - CVE-2025-24963

 

Path traversal in vitest - CVE-2025-24963

Published: February 4, 2025 / Updated: April 24, 2026


Vulnerability identifier: #VU127489
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-2025-24963
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 path traversal in the __screenshot-error handler on the browser mode HTTP server when handling requests with a user-supplied file parameter. A remote attacker can send a specially crafted request to disclose sensitive information.

Only instances with browser.api.host enabled and exposed on the network are vulnerable.


Affected software

vitest

How to mitigate CVE-2025-24963

Install security update from vendor's website.

vitest - addressed in versions 2.1.9, 3.0.4

External References

Related Security Bulletins