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.
History

Wed, 31 Dec 2025 14:45:00 +0000

Type Values Removed Values Added
First Time appeared Vitest.dev
Vitest.dev vitest
CPEs cpe:2.3:a:vitest.dev:vitest:*:*:*:*:*:node.js:*:*
Vendors & Products Vitest.dev
Vitest.dev vitest

Tue, 15 Jul 2025 13:45:00 +0000

Type Values Removed Values Added
Metrics epss

{'score': 0.05494}

epss

{'score': 0.06351}


Wed, 12 Feb 2025 21:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 04 Feb 2025 19:45:00 +0000

Type Values Removed Values Added
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.
Title Browser mode serves arbitrary files in vitest
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2025-02-12T20:51:28.011Z

Reserved: 2025-01-29T15:18:03.209Z

Link: CVE-2025-24963

cve-icon Vulnrichment

Updated: 2025-02-12T20:42:34.073Z

cve-icon NVD

Status : Analyzed

Published: 2025-02-04T20:15:50.330

Modified: 2025-12-31T14:44:35.500

Link: CVE-2025-24963

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.