CyberRota Analysis
AI-GeneratedThe Vitest testing framework is vulnerable due to insufficient permission checks in its Browser Mode provider commands, allowing attackers to read arbitrary local files, create or overwrite files, or delete files accessible to the Vitest process. This critical flaw poses significant risks for any client that can access the Browser Mode API, potentially leading to data exposure or loss. Organizations using affected versions should prioritize upgrading to versions 3.2.7, 4.1.10, or 5.0.0-beta.6 to mitigate these risks.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD 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.