Live threats

All CVEs / vitest-dev

CVE-2026-73653vitest-dev vitest

Critical 9.4 No auth needed

Priority
71
CVSS 3.1
9.4
EPSS
—
Auth required
No
Published
Aug 13, 2026
Updated
Sep 9, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22, CWE-552, CWE-862
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.

Original NVD text.

What to do

  1. Apply the vendor's security update for vitest.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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

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.