CVE-2026-47429Vitest.dev Vitest
Medium 5.9 No auth needed
Follow: this CVE · Vitest.dev · Vitest.dev Vitest We alert you by email or Slack (account required).
- 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.
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 |
≥ 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)
| Vendor | Product | Versions |
|---|---|---|
| vitest.dev | vitest | < 3.2.5 |
| vitest.dev | vitest | ≥ 4.0.0 < 4.1.0 |
Official advisories
- Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update · Red Hat · RHSA-2026:39058 · Jul 16, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch
- github.com Exploit Issue Tracking Patch
- github.com Exploit Issue Tracking Patch
- github.com Release Notes
- github.com Release Notes
- github.com Exploit Mitigation Vendor Advisory