# CVE-2026-47429: Vitest: Arbitrary file can be read and executed when Vitest UI server is listening

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 3.2.5, 4.1.0 (CNA); fix release not confirmed
- Status: published
- Published: 2026-07-14 · Modified: 2026-07-21
- Aliases: CGA-jwg2-2h8j-9f8j, CGA-xcv4-wxmm-qmpr, GHSA-5xrq-8626-4rwp, 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-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-xrqh-x7w8-j64m
- Record: https://cvemate.com/vulnerability/CVE-2026-47429 · JSON: https://cvemate.com/vulnerability/CVE-2026-47429/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.028%, percentile 64.773%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected (first 20 of 24)

- chainguard commercial-gitlab-rails-ee-fips-19.1 (Chainguard): All versions (No fix recorded) \| \< 19.1.9-r0
- chainguard gitlab-rails-ce-18.10 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.11 (Chainguard): \< 18.11.6-r7
- chainguard gitlab-rails-ce-18.7 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.9 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.0 (Chainguard): \< 19.0.3-r3
- chainguard gitlab-rails-ce-19.1 (Chainguard): \< 19.1.2-r2
- chainguard gitlab-rails-ce-fips-18.10 (Chainguard): \< 18.10.8-r8
- chainguard gitlab-rails-ce-fips-18.11 (Chainguard): \< 18.11.6-r3
- chainguard gitlab-rails-ce-fips-18.7 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.9 (Chainguard): \< 18.9.8-r8
- chainguard gitlab-rails-ce-fips-19.0 (Chainguard): \< 19.0.3-r4
- chainguard gitlab-rails-ce-fips-19.1 (Chainguard): \< 19.1.1-r3
- chainguard gitlab-rails-ce-fips-19.2 (Chainguard): \< 19.2.1-r1
- chainguard langfuse-2-worker (Chainguard): \< 2.95.12-r25
- chainguard langfuse-fips-2-worker (Chainguard): \< 2.95.12-r27
- chainguard vitess-22 (Chainguard): All versions (No fix recorded)
- chainguard vitess-23 (Chainguard): \< 23.0.4-r8

## 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>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/47xxx/CVE-2026-47429.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-47429>
- <https://github.com/vitest-dev/vitest>
- <https://github.com/vitest-dev/vitest/blob/eb1abf08573032a532015b999ad3501c5e89e3bb/packages/browser/src/node/commands/fs.ts#L10-L11>
- <https://github.com/vitest-dev/vitest/blob/eb1abf08573032a532015b999ad3501c5e89e3bb/packages/browser/src/node/plugin.ts#L194-L196>
- <https://github.com/vitest-dev/vitest/blob/eb1abf08573032a532015b999ad3501c5e89e3bb/packages/browser/src/node/rpc.ts#L115-L121>
- <https://github.com/vitest-dev/vitest/blob/eb1abf08573032a532015b999ad3501c5e89e3bb/packages/ui/node/index.ts#L77>
- <https://github.com/vitest-dev/vitest/blob/eb1abf08573032a532015b999ad3501c5e89e3bb/packages/vitest/src/api/setup.ts#L103-L105>
- <https://github.com/vitest-dev/vitest/blob/eb1abf08573032a532015b999ad3501c5e89e3bb/packages/vitest/src/api/setup.ts#L119-L121>

---

Data as of 2026-12-05T13:42:25.598Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
