{"id":"CVE-2026-47429","state":"PUBLISHED","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.","publishedAt":"2026-07-14T19:28:08.688Z","updatedAt":"2026-07-21T15:02:17.187Z","severity":{"score":9.8,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["vitest-dev vitest"],"affected":[{"vendor":"vitest-dev","product":"vitest","versions":[{"version":"< 3.2.5","status":"affected"},{"version":">= 4.0.0, < 4.1.0","status":"affected"}]}],"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"],"weaknesses":["CWE-22"],"ingestedAt":"2026-10-29T20:12:07.131Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/47xxx/CVE-2026-47429.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-47429","state":"PUBLISHED","datePublished":"2026-07-14T19:28:08.688Z","dateUpdated":"2026-07-21T15:02:17.187Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-05-19T19:37:43.527Z"},"containers":{"cna":{"title":"Vitest: Arbitrary file can be read and executed when Vitest UI server is listening","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"vitest-dev","product":"vitest","versions":[{"version":"< 3.2.5","status":"affected"},{"version":">= 4.0.0, < 4.1.0","status":"affected"}]}],"references":[{"url":"https://github.com/vitest-dev/vitest/security/advisories/GHSA-5xrq-8626-4rwp","name":"https://github.com/vitest-dev/vitest/security/advisories/GHSA-5xrq-8626-4rwp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vitest-dev/vitest/pull/10445","name":"https://github.com/vitest-dev/vitest/pull/10445","tags":["x_refsource_MISC"]},{"url":"https://github.com/vitest-dev/vitest/pull/9350","name":"https://github.com/vitest-dev/vitest/pull/9350","tags":["x_refsource_MISC"]},{"url":"https://github.com/vitest-dev/vitest/commit/20e00ef7808de6d330c5e2fda530f686e08f1c8d","name":"https://github.com/vitest-dev/vitest/commit/20e00ef7808de6d330c5e2fda530f686e08f1c8d","tags":["x_refsource_MISC"]},{"url":"https://github.com/vitest-dev/vitest/commit/af88b1f5d82844a4761ea9a977156c98e2b14ca8","name":"https://github.com/vitest-dev/vitest/commit/af88b1f5d82844a4761ea9a977156c98e2b14ca8","tags":["x_refsource_MISC"]},{"url":"https://github.com/vitest-dev/vitest/releases/tag/v3.2.5","name":"https://github.com/vitest-dev/vitest/releases/tag/v3.2.5","tags":["x_refsource_MISC"]},{"url":"https://github.com/vitest-dev/vitest/releases/tag/v4.1.0","name":"https://github.com/vitest-dev/vitest/releases/tag/v4.1.0","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","lang":"en","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-07-14T19:28:08.688Z"},"source":{"advisory":"GHSA-5xrq-8626-4rwp","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/vitest-dev/vitest/security/advisories/GHSA-5xrq-8626-4rwp","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-07-21T15:02:06.439415Z","id":"CVE-2026-47429","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-21T15:02:17.187Z"}}]}}}