External risk intelligence

Vitest Browser Mode Local File Access Vulnerability

CVE advisorySeverity: CRITICAL (CVSS 9.4)

CVE-2026-73653

Vitest is a developer-focused testing framework typically used in local development or CI/CD environments. Browser Mode is intended for internal test execution and debugging, not for deployment as a public-facing service. Exposure is generally limited to the developer's machine or isolated build pipelines.

Path Traversal

Halo Surface Signal: 1 out of 5 — much less likely to be public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

This advisory addresses a critical vulnerability in Vitest, a testing framework. The issue allows unauthenticated access to sensitive local files and the creation or deletion of files within the Vitest process, even when write permissions are restricted. This could have significant implications for the integrity and confidentiality of data handled by the testing environment.

  • Affects Vitest testing framework file handling.
  • Matters for protecting local files and process integrity.
  • Confirm relevance and exposure of testing environments.

Attack Path

How an attacker could exploit the issue

An attacker could exploit this vulnerability by interacting with Vitest's Browser Mode API. This API normally handles browser-based testing commands, but it fails to properly check file path permissions. An attacker who can reach this API could trick Vitest into reading, writing, or deleting files on the system where Vitest is running, regardless of whether write access is supposed to be enabled.

  • Entry condition: Unauthenticated network access to Browser Mode API.
  • Trigger point: Specifying arbitrary file paths in API commands.
  • Resulting risk: Arbitrary file read, write, or delete.

Live Threat

Current exploitation, exposure, and threat context

When supported by the advisory, the Browser Mode API in Vitest could allow an attacker to read arbitrary local files, create or overwrite image and trace files, or delete files accessible to the Vitest process. This could occur when the API is reachable and file path restrictions are not enforced.

  • Arbitrary local files and project files.
  • Via reachable Browser Mode API.
  • Potential unauthorized data access or modification.

Operational Fix

Recommended remediation, mitigation, and detection steps

The primary responsibility for addressing this vulnerability lies with development or platform teams that manage the Vitest testing framework. The immediate practical step is to identify all instances of Vitest within the environment, determine their accessibility, and assess their criticality to business operations before planning any remediation.

  • Application or platform teams own the issue.
  • Verify Vitest instances and their exposure.
  • Plan remediation based on identified risk.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is Vitest and its Browser Mode?

Vitest is a popular testing framework built on Vite, used by developers to write and run tests for JavaScript and TypeScript applications. Its Browser Mode specifically provides a suite of tools for running these tests directly in web browsers, facilitating easier debugging and visual verification of components within local development machines or CI/CD pipelines.

How does CVE-2026-73653 create a security risk?

This vulnerability is rooted in improper input validation and missing authorization, identified as CWE-22, CWE-552, and CWE-862. Essentially, the Browser Mode API fails to check if a user has permission to access specific file paths. Because of this, an attacker can bypass intended security gates to read, create, or delete arbitrary files on the system where the Vitest process is executing.

What triggers this file access vulnerability?

The flaw is triggered when an attacker sends malicious commands to the Vitest Browser Mode API. By providing arbitrary file paths to commands like upload or takeScreenshot, the attacker can manipulate the file system. It is important to note that setting the allowWrite permission to false does not prevent this; the vulnerability exists independently of that configuration.

Is my Vitest installation at risk?

Halo Surface Signal indicates that exploitation is very unlikely for most users, as Vitest and its Browser Mode are typically intended for internal use within development or CI/CD environments. You should primarily care if your instance of Vitest's Browser Mode is configured in a way that makes it reachable from an untrusted network, rather than remaining isolated to a local machine or secure build pipeline.

What should I do to address CVE-2026-73653?

The immediate priority is to update your project to a patched version: 3.2.7, 4.1.10, or 5.0.0-beta.6. Development and platform teams should audit their environments to identify all active instances of Vitest. If you cannot update immediately, ensure that access to the Browser Mode API is restricted to trusted, local connections only.

References