High severity · published Feb 4, 2025
CVE-2025-24963
Vitest is a testing framework powered by Vite
7.5
CVSS
2.4%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)2.4% · higher than 84% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
VI
Vitest · Vitest.dev
before 2.1.9; 3.0.0 before 3.0.4 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-24963
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-24963
Product
https://github.com/vitest-dev/vitest/blob/f17918a79969d27a415f70431e08a9445b051e45/packages/browser/src/node/plugin.ts#L88-L130
Patch
https://github.com/vitest-dev/vitest/commit/2d62051f13b4b0939b2f7e94e88006d830dc4d1f
Vendor Advisory
https://github.com/vitest-dev/vitest/security/advisories/GHSA-8gvc-j273-4wm5
Product
https://vitest.dev/guide/browser/config.html#browser-api
More from Vitest
9.8
CVE-2026-53633
Vitest: Exposed Browser Mode API Can Proxy CDP and Overwrite Config Files, Leading to RCE
9.6
CVE-2026-47428
Vitest browser mode serves unsanitized otelCarrier query parameter as inline script
9.4
CVE-2026-73653
Vitest: Browser Mode provider commands bypass the file-access permission gate
8.8
CVE-2025-24964
Vitest is a testing framework powered by Vite
6.5
CVE-2026-112948
Vitest: Servers misapply `server.fs.deny`, serving `.env`, private keys, `.git`, and the API token file
