CVE-2026-73653

Vitest: Browser Mode provider commands bypass the file-access permission gate

Published Aug 13, 2026 CVSS 3.1 · 9.4 Critical EPSS < 1% KEV · Not listed
Description
Vitest is a testing framework powered by Vite. Prior to versions 3.2.7, 4.1.10, and 5.0.0-beta.6, Browser Mode provider commands including upload, takeScreenshot, screenshotMatcher, stopChunkTrace, deleteTracing, and annotateTraces accept browser-supplied file paths without enforcing the allowWrite permission gate or confining paths to the project root. A client that can reach the Browser Mode API can read arbitrary local files, create or overwrite image and trace files, or delete files accessible to the Vitest process even when allowWrite is false. This issue is fixed in versions 3.2.7, 4.1.10, and 5.0.0-beta.6.

Analysis

AI-generated

Technical impact

Vitest releases prior to 3.2.7, 4.1.10, and 5.0.0‑beta.6 allow Browser Mode provider commands such as upload, takeScreenshot, screenshotMatcher, stopChunkTrace, deleteTracing, and annotateTraces to accept arbitrary browser‐supplied file paths. This bypasses the allowWrite permission gate and does not constrain paths to the project root, giving a client that can reach the Browser Mode API the ability to read any local files, create or overwrite images and trace files, or delete files accessible to the Vitest process even when allowWrite is false. The effect is potential data exfiltration, tampering, and sabotage of test artifacts, representing a significant confidentiality, integrity, and availability impact.

Affected Systems

All Vitest installations from the vitest-dev vendor running a version older than 3.2.7, 4.1.10, or 5.0.0‑beta.6 are vulnerable. The issue is present in the vitest framework, a JavaScript testing library built on Vite, affecting environments that expose its Browser Mode API to untrusted clients.

Risk and Exploitability

With a CVSS score of 9.4 the vulnerability is classified as critical. No EPSS value is available, but the lack of any mitigations and the high severity indicate a strong risk that attackers can exploit it. The attack vector is inferred to be remote; any system component able to call the Browser Mode API can trigger the file‑access functions, thus overriding permission controls. The vulnerability is not listed in the CISA KEV catalog, yet the potential for arbitrary file manipulation renders it highly exploitable in practice.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Vitest to a fixed release (v3.2.7 or newer, v4.1.10 or newer, or v5.0.0‑beta.6 or newer, depending on your version branch).
  • Restrict access to the Browser Mode API to trusted networks or authenticated clients only, ensuring that only authorized parties can send commands.
  • Verify that the allowWrite configuration remains disabled or that custom extensions enforce write permissions on a per‑file basis.

Generated by OpenCVE AI on August 13, 2026 at 19:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-p63j-vcc4-9vmv @vitest/browser: Browser Mode provider commands bypass the file-access permission gate
History
Type Values Removed Values Added
First Time appeared Vitest.dev
Vitest.dev vitest
Vendors & Products Vitest.dev
Vitest.dev vitest
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Vitest is a testing framework powered by Vite. Prior to versions 3.2.7, 4.1.10, and 5.0.0-beta.6, Browser Mode provider commands including upload, takeScreenshot, screenshotMatcher, stopChunkTrace, deleteTracing, and annotateTraces accept browser-supplied file paths without enforcing the allowWrite permission gate or confining paths to the project root. A client that can reach the Browser Mode API can read arbitrary local files, create or overwrite image and trace files, or delete files accessible to the Vitest process even when allowWrite is false. This issue is fixed in versions 3.2.7, 4.1.10, and 5.0.0-beta.6.
Title Vitest: Browser Mode provider commands bypass the file-access permission gate
Weaknesses CWE-22
CWE-552
CWE-862
References
Metrics cvssV3_1

{'score': 9.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-552

    Files or Directories Accessible to External Parties

  • CWE-862

    Missing Authorization

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 13, 2026, 6:42 PM
Reserved
Aug 13, 2026, 2:04 PM
Status
Deferred
Published
Aug 13, 2026, 7:17 PM
Modified
Sep 9, 2026, 9:02 PM