{"id":"CVE-2026-47429","aliases":["GHSA-5xrq-8626-4rwp"],"url":"https://o3.security/vulnerability/CVE-2026-47429","summary":"Vitest: Arbitrary file can be read and executed when Vitest UI server is listening","details":"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.","published":"2026-07-14T19:28:08.688Z","modified":"2026-08-12T03:51:38.011082394Z","cvss":{"score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"epss":{"score":0.00922,"percentile":0.57604,"asOf":"2026-08-20"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"vitest","fixedVersion":"4.1.0"},{"ecosystem":"npm","name":"vitest","fixedVersion":"3.2.6"}],"fix":{"url":"https://github.com/vitest-dev/vitest/commit/20e00ef7808de6d330c5e2fda530f686e08f1c8d","label":"vitest-dev/vitest@20e00ef"},"references":[{"type":"WEB","url":"https://github.com/vitest-dev/vitest/releases/tag/v3.2.5"},{"type":"WEB","url":"https://github.com/vitest-dev/vitest/releases/tag/v4.1.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/47xxx/CVE-2026-47429.json"},{"type":"ADVISORY","url":"https://github.com/vitest-dev/vitest/security/advisories/GHSA-5xrq-8626-4rwp"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47429"},{"type":"FIX","url":"https://github.com/vitest-dev/vitest/commit/20e00ef7808de6d330c5e2fda530f686e08f1c8d"},{"type":"FIX","url":"https://github.com/vitest-dev/vitest/commit/af88b1f5d82844a4761ea9a977156c98e2b14ca8"},{"type":"FIX","url":"https://github.com/vitest-dev/vitest/pull/10445"},{"type":"FIX","url":"https://github.com/vitest-dev/vitest/pull/9350"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:38.011082394Z"}}