CVE-2026-73653
Critical · 9.4CVSS
9.4
EPSS
0.8%
Published
Aug 13, 2026
CISA due date
—
Cloudanix analysis
A testing tool can be tricked into reading or changing any file on the computer running the tests, even when that capability should be turned off.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Application
- Class
- Path Traversal
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Browser Mode provider commands accept unsanitized file paths from the client, bypassing the allowWrite gate and project-root confinement to enable arbitrary local file read, write, overwrite, or deletion within the privileges of the Vitest process.
Why it matters to the business
Test environments running affected Vitest versions can suffer unauthorized access to source code, secrets, or build artifacts, allowing data exfiltration or tampering that disrupts CI pipelines and exposes intellectual property.
How an attack unfolds
An attacker reachable to the Browser Mode API issues provider commands such as upload or takeScreenshot while supplying crafted paths containing traversal sequences; the missing permission and root checks cause the Vitest process to read, create, overwrite, or delete files outside the intended workspace.
How to fix it
Upgrade Vitest to 3.2.7, 4.1.10, or 5.0.0-beta.6 or later; restrict Browser Mode API exposure to trusted networks only; enforce allowWrite only for trusted users.
How to confirm the fix worked
Confirm the installed Vitest version meets or exceeds the fixed releases; attempt a provider command with a traversal path while allowWrite is false and verify the operation is rejected; review process permissions and network exposure of the test runner.
Typical attack path
- Locate an exposed Vitest Browser Mode endpoint
- Issue a provider command (upload, takeScreenshot, etc.) containing path traversal payloads
- Read arbitrary files or write/overwrite files on the host
- Delete trace or configuration files to impair testing or cover tracks
How to detect it
Inspect Vitest and Node process logs for provider commands containing path traversal sequences; correlate with file-system audit logs showing reads or writes outside the project directory; look for creation or deletion of unexpected image or trace files.
- vitest.*upload.*\.\./
- takeScreenshot.*\.\./
- screenshotMatcher.*\.\./
- stopChunkTrace.*\.\./
- deleteTracing.*\.\./
- annotateTraces.*\.\./
What your security team should do
- Immediately upgrade all Vitest installations to the fixed versions
- Disable or firewall Browser Mode endpoints in CI and developer environments
- Audit test-runner service accounts for least-privilege file access
- Add runtime monitoring for unexpected file operations originating from Vitest processes
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-61725 sevenz-rust2 is a Rust-native 7z compressor and `decompress`or. CWE-22
- CVE-2026-62965 SABnzbd is an open source automated Usenet download tool. CWE-22
- CVE-2026-119342 Stirling-PDF is a locally hosted web application that facilitates various operations on… CWE-22
- CVE-2026-119328 Immich is a high-performance self-hosted photo and video management solution. CWE-22
- CVE-2026-116249 In server mode pgAdmin 4 resolves a server's password file, SSL certificate, key, CRL and… CWE-22
- CVE-2026-116240 In server mode pgAdmin 4 validates a path into the user's storage directory with… CWE-22
- CVE-2026-62331 praktor is a multi-agent Claude Code orchestrator with Telegram input and output, Docker… CWE-22
- CVE-2026-115604 Subscriber Arbitrary File Deletion in SureDash <= 1.12.3 versions. CWE-22