CVE-2025-24963
MEDIUM EXPLOITED NUCLEIVitest Browser Mode - Local File Read
Title source: nucleiExploitation Summary
CVE-2025-24963 has been observed exploited in the wild (reported by VulnCheck KEV). EIP tracks 2 public exploits from researchers including hiteshpatra, 0xdeviner. A Nuclei detection template is also available.
AI-analyzed exploit summary This repository contains a functional exploit for CVE-2025-24963, demonstrating a local file read vulnerability in Vitest's browser mode due to improper input validation in the `__screenshot-error` handler. The exploit uses a crafted HTTP request to read arbitrary files when the server is exposed via `browser.api.host: true`.
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.
Exploits (2)
This repository contains a functional exploit for CVE-2025-24963, demonstrating a local file read vulnerability in Vitest's browser mode due to improper input validation in the `__screenshot-error` handler. The exploit uses a crafted HTTP request to read arbitrary files when the server is exposed via `browser.api.host: true`.
This repository contains a working proof-of-concept for CVE-2025-24963, a local file read vulnerability in Vitest's browser mode. The exploit leverages improper input validation in the `__screenshot-error` handler to read arbitrary files when the server is exposed to the network.
Nuclei Templates (1)
References (4)
Scores
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N