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.
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:HAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh
Affected & Patched Versions
- Vitest.dev Vitest < 3.2.5
- Vitest.dev Vitest >= 4.0.0 and < 4.1.0
- 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.
- Check whether you run Vitest.dev Vitest and which version.
- Update to a patched version listed above, then confirm the new version.
- 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 alertsRelated Coverage
External References
- Patchhttps://github.com/vitest-dev/vitest/commit/20e00ef7808de6d330c5e2fda530f686e08f1c8d
- Patchhttps://github.com/vitest-dev/vitest/commit/af88b1f5d82844a4761ea9a977156c98e2b14ca8
- Exploithttps://github.com/vitest-dev/vitest/pull/10445
- Exploithttps://github.com/vitest-dev/vitest/pull/9350
- Referencehttps://github.com/vitest-dev/vitest/releases/tag/v3.2.5
- Referencehttps://github.com/vitest-dev/vitest/releases/tag/v4.1.0
- Exploithttps://github.com/vitest-dev/vitest/security/advisories/GHSA-5xrq-8626-4rwp
- Exploithttps://github.com/vitest-dev/vitest/security/advisories/GHSA-5xrq-8626-4rwp
Data last checked: Nov 19, 2026 06:16 UTC