Live threats

All CVEs / Vitest.dev

CVE-2026-47429Vitest.dev Vitest

Medium 5.9 No auth needed

Priority
50
CVSS 3.1
5.9
EPSS
—
Auth required
No
Published
Jul 14, 2026
Updated
Oct 24, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

Vitest is a testing framework powered by Vite. Prior to 3.2.5 and 4.1.0, the Vitest UI/API server on Windows used isFileServingAllowed incorrectly for /__vitest_attachment__, allowing \\?\\..\\ path traversal to read files outside the project; exposed API write and rerun features such as saveTestFile and rerun could also allow arbitrary script execution. This issue is fixed in versions 3.2.5 and 4.1.0.

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 ≥ 4.0.0 < 4.1.0 4.1.0 npm install vitest@4.1.0
npm vitest < 3.2.6 3.2.6 npm install vitest@3.2.6

Per OSV / GitHub Advisories (GHSA-5xrq-8626-4rwp). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
vitest.devvitest< 3.2.5
vitest.devvitest≥ 4.0.0 < 4.1.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.