CVE-2026-73653

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

State
Published
Severity
9.4 Critical
Published
Aug 13, 2026
Updated
Aug 13, 2026
Reserved
Aug 13, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.19.4 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:LGitHub_M

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

Affected Products

ProductVersions
vitestvitest-dev
  • < 3.2.7Affected
  • >= 4.0.0, < 4.1.10Affected
  • >= 5.0.0-beta.1, < 5.0.0-beta.6Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.