Skip to main content
← All vulnerabilities
CVE-2026-73653GHSA-P63J-VCC4-9VMV

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.2.7, 4.1.10, 5.0.0-beta.6
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • vitest-dev vitest

    fixed in 3.2.7; From 4.0.0 · fixed in 4.1.10; From 5.0.0-beta.1 · fixed in 5.0.0-beta.6

  • @vitest/browsernpm

    From 4.0.0 · fixed in 4.1.10

  • @vitest/browsernpm

    fixed in 3.2.7

  • @vitest/browsernpm

    From 5.0.0-beta.1 · fixed in 5.0.0-beta.6

References 10

GitHub · vitest-dev/vitest