CVE Catalog

CVE-2026-73653

CriticalCVSS 9.4
Published: Translated: NVD NIST

Summary

Vitest Browser Mode before versions 3.2.7, 4.1.10, and 5.0.0-beta.6 does not enforce the allowWrite permission gate or confine paths to the project root for commands such as upload, takeScreenshot, screenshotMatcher, stopChunkTrace, deleteTracing, and annotateTraces. 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.

Risk Assessment

An attacker could gain access to sensitive data (file read) or compromise system integrity (file modification/deletion), potentially leading to privilege escalation or service disruption.

Recommendation

Update Vitest to version 3.2.7, 4.1.10, or 5.0.0-beta.6 (or later) and ensure the Browser Mode API is not accessible to untrusted clients.

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS