Vulnerability
CVE-2026-47429
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.
47 advisories report this vulnerability, across 5 ecosystems.
Advisories
- CGA-24p6-58m2-629r
- CGA-2w5j-65v2-x54j
- CGA-3h52-32vj-7273
- CGA-3qmv-mcf4-7wfw
- CGA-3w74-6qfw-672f
- CGA-4q5f-r63h-r43w
- CGA-557m-c3mg-c735
- CGA-5j8x-cxf9-95c3
- CGA-5xcp-p22m-m8r7
- CGA-5xcr-qx5f-3gwr
- CGA-6ppc-5vwv-4gcp
- CGA-6r65-xh8q-f9f9
- CGA-7549-75jw-8f8p
- CGA-7953-75vr-429w
- CGA-934c-6pmm-m3cf
- CGA-9c56-63g8-4c93
- CGA-9mw7-p4p7-w9c2
- CGA-9w6j-p567-w9fg
- CGA-cv9f-fx7g-99wp
- CGA-f72m-56m7-w998
- CGA-fhxg-c9vj-8qg2
- CGA-fw9v-vh8p-w4jj
- CGA-g3rp-hx68-ppqm
- CGA-ghjq-4999-6x4g
- CGA-ghxr-pp3h-vqgw
- CGA-hwr3-f7x5-9fxh
- CGA-j2wq-v3xq-rh3h
- CGA-jh83-gg7x-jxh9
- CGA-jwg2-2h8j-9f8j
- CGA-m6mx-3655-xvx9
- CGA-mx76-f7xw-jmm7
- CGA-mxfg-w8hw-wrxh
- CGA-pfxp-7v79-99mv
- CGA-pmh2-9x2q-gj3p
- CGA-qqmm-rfh3-4v48
- CGA-r95h-4q62-w99r
- CGA-rfjq-65hp-4j6v
- CGA-v2hx-8mcj-wjr4
- CGA-v6hh-9pcr-p4c4
- CGA-vcc7-87g3-4cvw
- CGA-vj8r-85jj-333c
- CGA-w3m4-469v-xffp
- CGA-xcv4-wxmm-qmpr
- CGA-xrqh-x7w8-j64m
-
GHSA-5xrq-8626-4rwp
When Vitest UI server is listening, arbitrary file can be read and executed
-
RHSA-2026:39058
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
-
SUSEVEX-CVE-2026-47429
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…
References
- https://github.com/vitest-dev/vitest/commit/20e00ef7808de6d330c5e2fda530f686e08f1c8d
- https://github.com/vitest-dev/vitest/commit/af88b1f5d82844a4761ea9a977156c98e2b14ca8
- https://github.com/vitest-dev/vitest/pull/10445
- https://github.com/vitest-dev/vitest/pull/9350
- https://github.com/vitest-dev/vitest/releases/tag/v3.2.5
- https://github.com/vitest-dev/vitest/releases/tag/v4.1.0
- https://github.com/vitest-dev/vitest/security/advisories/GHSA-5xrq-8626-4rwp