CVE-2026-73653vitest-dev vitest
Critical 9.4 No auth needed
Follow: this CVE · vitest-dev · vitest-dev vitest We alert you by email or Slack (account required).
- Priority
- 71
- CVSS 3.1
- 9.4
- EPSS
- —
- Auth required
- No
- Published
- Aug 13, 2026
- Updated
- Sep 9, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
What happens
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.
What to do
- Apply the vendor's security update for vitest.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | @vitest/browser |
≥ 4.0.0 < 4.1.10 |
4.1.10 |
npm install @vitest/browser@4.1.10 |
| npm | @vitest/browser |
< 3.2.7 |
3.2.7 |
npm install @vitest/browser@3.2.7 |
| npm | @vitest/browser |
≥ 5.0.0-beta.1 < 5.0.0-beta.6 |
5.0.0-beta.6 |
npm install @vitest/browser@5.0.0-beta.6 |
Per OSV / GitHub Advisories (GHSA-p63j-vcc4-9vmv). Check the version in your lockfile before upgrading.
Affected products
- vitest-dev · vitest
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.