S4E just found a high top 10 tcp port service scan
medium·Product Based Web Vulnerabilities·Updated Feb 11, 2025

CVE-2025-24963 Scanner

CVE-2025-24963 Scanner - Arbitrary File Read vulnerability in Vitest Browser Mode

Est. Time~10 seconds
Scan TypeSingle Scan
Targetsdomain, subdomain, ipv4
CostFree
0
Times Used
by S4E users
0
Assets Scanned
domains & IPs
0
Vulnerabilities Found
confirmed findings
References
CVECVE-2025-24963
7.5
CVSSmedium
Exploitable remotely over the internet · no authentication required.

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.

Attack Vector
Network
Privileges Req.
None
User Interaction
None
Affected
vitestby vitest-dev
>= 2.0.4, < 2.1.9
Updated Aug 19, 2026View on NVD →
Detail

Vitest Browser Mode is a feature of the Vitest testing framework, designed for executing tests in a browser environment. It allows developers to run automated tests on their frontend applications and components. The framework is commonly used in web development for unit and integration testing. It integrates with Vite, a modern build tool, to provide a fast and efficient testing experience. Developers use Vitest for ensuring code quality and stability in JavaScript and TypeScript projects. The browser mode can be exposed to a network, allowing remote access for distributed testing.

The Arbitrary File Read vulnerability in Vitest Browser Mode allows unauthorized access to system files. The flaw resides in the `__screenshot-error` handler, which exposes arbitrary files when the browser mode HTTP server is accessible over the network. If the server is configured with `browser.api.host- true`, attackers can send specially crafted requests to retrieve sensitive files. The vulnerability occurs due to improper access control on file requests. Exploiting this issue could lead to information disclosure, including system credentials and configuration files. The affected versions are those before 2.1.9 and 3.0.4.

The vulnerability is caused by the improper handling of file retrieval requests in the `__screenshot-error` handler. Attackers can send a request with a file path parameter to gain access to arbitrary system files. Since the affected endpoint does not properly restrict file access, it allows reading files from the file system. If the server is publicly exposed, remote attackers can exploit this to retrieve sensitive information. The vulnerability was introduced in commit `2d62051`, which added this insecure functionality. The issue has been fixed in versions 2.1.9 and 3.0.4.

Exploiting this vulnerability can lead to serious security risks. Attackers can retrieve system files containing credentials, API keys, or other sensitive information. Unauthorized access to configuration files can expose details about the application’s internal structure. If attackers gain access to private application data, it can lead to further exploits and privilege escalation. In some cases, the exposure of critical system files may enable remote code execution when combined with other vulnerabilities. Organizations running affected versions should upgrade immediately to mitigate the risk.

REFERENCES

Solution Advice
  • Upgrade to Vitest versions 2.1.9 or 3.0.4 to patch the vulnerability.
  • Restrict network exposure of the Vitest browser mode server by disabling `browser.api.host- true`.
  • Implement strict access controls to prevent unauthorized file access.
  • Use a web application firewall (WAF) to filter and block malicious requests.
  • Monitor server logs for suspicious file access attempts and unauthorized requests.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

11,000+ scanners. Free to start. No credit card required.

CVE-2025-24963 Scanner - Arbitrary File Read vulnerability in Vitest Browser Mode S4E