5.9
Medium
CVE-2025-24963 Vitest is a testing framework powered by Vite
Description
Vitest is a testing framework powered by Vite. The `__screenshot-error` handler on the browser mode HTTP server that responds any file on the file system. Especially if the server is exposed on the network by `browser.api.host: true`, an attacker can send a request to that handler from remote to get the content of arbitrary files.This `__screenshot-error` handler on the browser mode HTTP server responds any file on the file system. This code was added by commit `2d62051`. Users explicitly exposing the browser mode server to the network by `browser.api.host: true` may get any files exposed. This issue has been addressed in versions 2.1.9 and 3.0.4. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Affected products and versions
Other CVEs of vitest
The 10 CVEs of vitest →
CVE-2026-112950
Vitest is a Vite-native testing framework for JavaScript and TypeScript projects
5.9
Medium
CVE-2026-112949
Vitest is a Vite-native testing framework for JavaScript and TypeScript projects
4.7
Medium
CVE-2026-112948
Vitest is a testing framework powered by Vite
6.5
Medium
CVE-2026-84373
Vitest is a testing framework powered by Vite
5.9
Medium