{"id":"CVE-2026-47429","revision":"50da4bd6eb504d23a11497adc3297975","records":[{"revision":"50da4bd6eb504d23a11497adc3297975","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-47429","aliases":[],"title":"Vitest: Arbitrary file can be read and executed when Vitest UI server is listening","description":"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.","state":0,"publishedAt":"2026-07-14T19:28:08.688+00:00","modifiedAt":"2026-07-21T15:02:17.187+00:00","affected":[{"ecosystem":"Vendor product","name":"vitest","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"vitest-dev\",\n                    \"product\": \"vitest\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 3.2.5\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 4.0.0, < 4.1.0\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"severity":"CRITICAL"}],"references":["https://github.com/vitest-dev/vitest/security/advisories/GHSA-5xrq-8626-4rwp","https://github.com/vitest-dev/vitest/pull/10445","https://github.com/vitest-dev/vitest/pull/9350","https://github.com/vitest-dev/vitest/commit/20e00ef7808de6d330c5e2fda530f686e08f1c8d","https://github.com/vitest-dev/vitest/commit/af88b1f5d82844a4761ea9a977156c98e2b14ca8","https://github.com/vitest-dev/vitest/releases/tag/v3.2.5","https://github.com/vitest-dev/vitest/releases/tag/v4.1.0"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-47429","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-47429","identifiers":["CVE-2026-47429"]},"retained":false,"historicalAffected":[]}],"coverage":[]}