CVE-2026-73653: Vitest - Unrestricted File Upload
- Cve: CVE-2026-73653
- Name: Vitest - Unrestricted File Upload
- 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.
- Impact: Attackers can read, create, overwrite, or delete arbitrary files accessible to the Vitest process, potentially leading to data loss or compromise.
- Remediation: Update to versions 3.2.7, 4.1.10, or 5.0.0-beta.6 or later.
- Vulnerability type: unrestricted_file_upload
- Vulnerability impact: file_system_read, file_system_write
- Requirements: Attacker needs access to Browser Mode API
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.4
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
- Epss score: 0.0079
- Epss percentile: 0.57205
- Assignee: [email protected]
- Published at: 2026-08-13T19:17:38Z
- Age in days: 103
- Modified at: 2026-09-09T21:02:22Z
- Patch available: yes
- References total: 10
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-73653
- Nvd status: deferred
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirement type, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory |
References
Same in every row:
- Source: nvd
- Tags:
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| vitest.dev:vitest | >= 5.0.0-beta.1, < 5.0.0-beta.6; >= 4.0.0, < 4.1.10; < 3.2.7 | no | cna_alias_text | /v1/products/vitest.dev/vitest |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| vitest-dev/vitest | commit, package, pull, releases, security_advisory | yes | /v1/repositories/vitest-dev/vitest |
Index
- Repositories: 5
- Repositories high signal: 4
- Packages: 1
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts