CVE-2025-24963
JavaScript vulnerability analysis and mitigation

Overview

Vitest, a testing framework powered by Vite, contains a vulnerability in versions prior to 2.1.9 and 3.0.4 where the __screenshot-error handler on the browser mode HTTP server responds with any file on the file system. When the server is exposed on the network using browser.api.host: true, an attacker can send a request to that handler remotely to access arbitrary files. This vulnerability was discovered on February 4, 2025 (GitHub Advisory).

Technical details

The vulnerability exists in the __screenshot-error handler implementation which lacks proper path validation. The handler accepts a file parameter through URL search params and uses it directly to read and serve files from the filesystem. The code was introduced by commit 2d62051. The vulnerability has been assigned a CVSS v3.1 score of 5.9 (Medium) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N, indicating network accessibility with high attack complexity and potential for high confidentiality impact (GitHub Advisory).

Impact

When the browser mode server is exposed to the network through browser.api.host: true configuration, an attacker can exploit this vulnerability to read arbitrary files from the system where Vitest is running. This could lead to exposure of sensitive information such as configuration files, source code, or other system files (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in versions 2.1.9 and 3.0.4. Users are advised to upgrade to these or later versions. There are no known workarounds for this vulnerability (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-55182CRITICAL10
  • JavaScriptJavaScript
  • react
NoYesDec 03, 2025
CVE-2025-66401CRITICAL9.8
  • JavaScriptJavaScript
  • mcp-watch
NoNoDec 01, 2025
CVE-2025-66412HIGH8.5
  • JavaScriptJavaScript
  • @angular/compiler
NoYesDec 01, 2025
CVE-2025-66415MEDIUM6.9
  • JavaScriptJavaScript
  • @fastify/reply-from
NoYesDec 01, 2025
CVE-2025-66405MEDIUM6.9
  • JavaScriptJavaScript
  • @portkey-ai/gateway
NoYesDec 01, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management