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.
Published: 2026-08-13
Score: 9.4 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

Thu, 13 Aug 2026 19:45:00 +0000

Type Values Removed Values Added
First Time appeared Vitest.dev
Vitest.dev vitest
Vendors & Products Vitest.dev
Vitest.dev vitest

Thu, 13 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 13 Aug 2026 18:30:00 +0000

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'}


Subscriptions

Vitest.dev Vitest
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-13T18:42:42.750Z

Reserved: 2026-08-13T14:04:09.604Z

Link: CVE-2026-73653

cve-icon Vulnrichment

Updated: 2026-08-13T18:42:40.043Z

cve-icon NVD

Status : Received

Published: 2026-08-13T19:17:38.920

Modified: 2026-08-13T19:17:38.920

Link: CVE-2026-73653

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T19:45:17Z

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