Cyber Resilience

CVE-2025-24963

Medium

Published: 04 February 2025

Published
04 February 2025
Modified
31 December 2025
KEV Added
Patch
CVSS Score v3.1 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS Score 0.2364 96.1th percentile
Risk Priority 26 60% EPSS · 20% KEV · 20% CVSS

Summary

CVE-2025-24963 is a medium-severity Path Traversal (CWE-22) vulnerability in Vitest.Dev Vitest. Its CVSS base score is 5.9 (Medium).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked in the top 3.9% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified are NIST 800-53 SI-10 (Information Input Validation) and SI-2 (Flaw Remediation).

Deeper analysis

Vitest, a testing framework powered by Vite, contains a path traversal vulnerability (CWE-22) in the browser mode HTTP server. The `__screenshot-error` handler, introduced in commit 2d62051, responds with the contents of arbitrary files on the filesystem when the server is explicitly exposed via the `browser.api.host: true` configuration option.

An unauthenticated remote attacker can send crafted requests to this handler over the network to read sensitive files. The attack requires no user interaction or privileges and carries a CVSS 3.1 score of 5.9, reflecting high attack complexity but full confidentiality impact.

The official GitHub advisory GHSA-8gvc-j273-4wm5 states that the flaw has been resolved in Vitest 2.1.9 and 3.0.4, and that no workarounds exist. The associated EPSS score has remained flat at 0.2364 with no material rise since disclosure.

EU & UK References

Vulnerability details

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…

more

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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise TechniquesAI

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1005 Data from Local System Collection
Adversaries may search local system sources, such as file systems, configuration files, local databases, virtual machine files, or process memory, to find files of interest and sensitive data prior to Exfiltration.
Why these techniques?

Path traversal in exposed browser mode HTTP server enables remote exploitation of public-facing application (T1190) to read arbitrary local files (T1005).

Confidence: HIGH · MITRE ATT&CK Enterprise v19.0

CVEs Like This One

CVE-2025-24964Same product: Vitest.Dev Vitest
CVE-2025-12824Shared CWE-22
CVE-2026-25965Shared CWE-22
CVE-2025-30567Shared CWE-22
CVE-2025-27098Shared CWE-22
CVE-2024-55457Shared CWE-22
CVE-2026-35485Shared CWE-22
CVE-2024-54909Shared CWE-22
CVE-2026-3405Shared CWE-22
CVE-2025-41368Shared CWE-22

Affected Assets

vitest.dev
vitest
≤ 2.1.9 · 3.0.0 — 3.0.4

Mitigating Controls

Mitigating Controls (NIST 800-53 r5) AI

prevent

Directly mitigates the path traversal vulnerability by requiring timely patching to Vitest versions 2.1.9 or 3.0.4 as specified in the advisory.

prevent

Prevents exploitation of the path traversal in the __screenshot-error handler by enforcing validation of file path inputs to block arbitrary file access.

prevent

Limits exposure of the vulnerable browser mode HTTP server by restricting unnecessary network exposure features like browser.api.host: true to essential functionality only.

References