CVE Watchtower

CVE-2026-47429Vitest.dev Vitest Path Traversal

NVDCVSS scored by security-advisories@github.com

Vulnerability Summary

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.
Severity Level
CRITICAL(9.8)
Published Date
Jul 14, 2026
Last Modified
Oct 24, 2026
Exploitation Status
Public exploit available
EPSS Score (30-Day)
1.03%Probability
Root Weakness (CWE)
The software uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory.
CVSS v3.1 Base Metrics — Score 9.8 (CRITICAL)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

Affected & Patched Versions

Affected Versions
  • Vitest.dev Vitest < 3.2.5
  • Vitest.dev Vitest >= 4.0.0 and < 4.1.0
Patched Versions
  • Vitest.dev Vitest 3.2.5
  • Vitest.dev Vitest 4.1.0

What to do

Prioritize this fix. Exploit code is public, so attacks can follow quickly.

  1. Check whether you run Vitest.dev Vitest and which version.
  2. Update to a patched version listed above, then confirm the new version.
  3. Review logs and exposed services for signs of earlier compromise.

Timeline

  • Jul 14, 2026Published
  • Oct 24, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new Vitest.dev Vitest CVEsYou are reading CVE-2026-47429. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Nov 19, 2026 06:16 UTC