SecurityContext

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

IdName
CWE-22Improper Limitation of a Pathname to a Restricted Directory

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://github.com/vitest-dev/vitest/commit/33f96a145ef09ca6a43b4e555eb273e64a87be23
https://github.com/vitest-dev/vitest/commit/5c18dd267ff7f47f24cab2f615a16b37d90feb7f
https://github.com/vitest-dev/vitest/commit/b795e36b34969bec50b47a9f29d26f799a6a04fb
https://github.com/vitest-dev/vitest/pull/10674
https://github.com/vitest-dev/vitest/pull/10679
https://github.com/vitest-dev/vitest/pull/10680
https://github.com/vitest-dev/vitest/releases/tag/v3.2.7
https://github.com/vitest-dev/vitest/releases/tag/v4.1.10
https://github.com/vitest-dev/vitest/releases/tag/v5.0.0-beta.6
https://github.com/vitest-dev/vitest/security/advisories/GHSA-p63j-vcc4-9vmv

Products

ProductAffectedPlatform boundSourcesUrl
vitest.dev:vitest>= 5.0.0-beta.1, < 5.0.0-beta.6; >= 4.0.0, < 4.1.10; < 3.2.7nocna_alias_text/v1/products/vitest.dev/vitest

Projects

RepositoryLink kindsIndexedUrl
vitest-dev/vitestcommit, package, pull, releases, security_advisoryyes/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