# CVE-2026-84373: Vitest: Path Traversal / Arbitrary File Read via @vitest/mocker Redirect Mock

- Priority: **Routine**
- Reason: Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-09-01 · Modified: 2026-09-02
- Aliases: CGA-22f6-p29j-gww5, CGA-3h7q-r78w-f9gp, CGA-5r9f-xvpp-g3r4, CGA-9crp-8mxv-hhfq, CGA-9rr7-67f8-524g, CGA-c9pj-7522-xpf6, CGA-f8pj-r88v-fvhm, CGA-g999-x99f-8wj2, CGA-h734-7jg6-6vv7, CGA-mgcm-vmw7-9hf5, GHSA-82fw-gwwq-j7x9, CGA-2gcf-m8qr-jf2r, CGA-2hwv-5825-p9vm, CGA-2qfp-3v72-gfq3, CGA-3q43-85mr-rpw2, CGA-3x3x-jpw6-45j9, CGA-3xg6-6x83-jj9w, CGA-42v4-9745-3xrf, CGA-45qf-27xf-w867, CGA-4943-hwpm-r49p, CGA-4ggr-xv4w-x352, CGA-4j5q-jfm8-wg88, CGA-4ph9-3hhg-9523, CGA-5289-6r3h-wg4m, CGA-532c-rw4f-2j7r, CGA-54cm-vwm5-8q8f, CGA-5678-6p8h-8q3m, CGA-57gg-52qx-68cj, CGA-58v3-x4m3-h3fj, CGA-59q2-vm72-rgw7, CGA-5mxc-wqx8-8gvg, CGA-5r67-237g-mpm9, CGA-5xj9-8xr2-p7pf, CGA-6424-qmcj-gv2q, CGA-64j5-vhrw-rpm7, CGA-67hh-wvmv-vr9v, CGA-692q-p235-p638, CGA-6ff7-j3p7-jr32, CGA-6mv4-8wh3-8v47, CGA-6vj6-wfxg-pf39, CGA-6x4f-jrvv-7rx5, CGA-72wj-974m-cvw2, CGA-7497-mgfh-rrpp, CGA-76hh-hpp2-589g, CGA-76hm-6542-p5w3, CGA-778q-6g4x-r4wm, CGA-79gv-38r6-224r, CGA-7gp9-pqjh-9j78, CGA-7wwr-qg33-frm8, CGA-86rw-w8hr-gqx6, CGA-8727-4h9r-w86q, CGA-8hjj-p625-2m37, CGA-8j2p-94p5-grmc, CGA-8j3h-f2rj-v3xf, CGA-8r9c-7hq5-6q98, CGA-8rrf-w9c3-f6h8, CGA-8vq8-77p8-246f, CGA-8wh3-9x6v-cxvc, CGA-8x6m-c344-274q, CGA-94g6-56qp-gmmg, CGA-9fhv-566p-w7cp, CGA-9gpx-f99q-w7j4, CGA-9m4g-84jr-2x7v, CGA-c2wj-vv67-8w36, CGA-c5vf-j9h7-hhj5, CGA-c63p-x9r2-v4f4, CGA-c652-89vv-g5wx, CGA-cqhg-77q5-2rj2, CGA-cqr9-r587-36v2, CGA-f45v-9fwc-72hf, CGA-f8gg-w458-q52v, CGA-f8vh-rfqv-m8rj, CGA-fmx8-p3g6-vxw3, CGA-fpmq-v2h3-7x4r, CGA-frgv-fjhv-67r7, CGA-fvc8-crrh-jx9m, CGA-g625-qv3w-2x89, CGA-g6m4-q82h-c88m, CGA-g738-g9w3-hfmh, CGA-ghgr-cq65-7xvp, CGA-gm23-pf73-4w5m, CGA-gqvg-27fq-9vqw, CGA-grpj-crhp-mfp4, CGA-gwhh-fqwm-rfrg, CGA-gwwv-vm84-xwj5, CGA-h7cq-fp32-mgq5, CGA-h87q-j39v-5c65, CGA-h935-v8qg-wg6j, CGA-hc3c-x669-mhjg, CGA-hcj5-xwrj-9j98, CGA-hgjp-jwjm-jxh4, CGA-hw4v-v93w-3f7h, CGA-hw87-m5p6-rv56, CGA-hwx2-29vp-7jjc, CGA-j294-8q5x-v5vr, CGA-j42v-p89m-hw67, CGA-jhpf-7w2c-mg4c, CGA-jpqm-xmmc-r8gc, CGA-m49g-xx6m-77j7, CGA-m8g4-3rww-4vhg, CGA-mf4v-mfq8-wh5x, CGA-mv75-gp3r-xqg9, CGA-mvg2-9h25-5c2p, CGA-mx4c-qprw-q4c3, CGA-p2q4-5cq3-2543, CGA-p3cm-6836-c8wv, CGA-p445-xc5r-qcpj, CGA-p4xj-gr75-32g8, CGA-p93j-x9pv-3mrw, CGA-pg46-99q6-gr78, CGA-pg55-2vhr-cj39, CGA-ph66-q56r-g9pj, CGA-pj98-q5vw-6ffq, CGA-pq6c-hhrr-c97h, CGA-pqgp-vfww-c2h4, CGA-pv7w-cmp7-r7q4, CGA-pw38-4pjw-h8j5, CGA-pw62-759w-f8jm, CGA-pxfp-vpr3-mh8r, CGA-q82h-w89h-qq64, CGA-q8gh-rgpq-g9hr, CGA-q9mq-hxc6-5xx7, CGA-qv84-936f-gqq4, CGA-rcq4-c6v5-pf46, CGA-rh4r-r9hh-fr52, CGA-rqm3-h8q7-64m5, CGA-rr5h-qvxc-h47m, CGA-rvp2-94v7-8f4w, CGA-rwg3-24fr-rhjf, CGA-v3xx-97v7-5g74, CGA-v4hm-xfmc-qrgm, CGA-v72w-98hf-4fx5, CGA-vpcw-gww6-4cc2, CGA-vpjq-x6fp-p9mg, CGA-w3vm-j3w6-pv7g, CGA-w5jr-f7mm-x7vv, CGA-w5rx-m93x-fhr5, CGA-w7qx-8hgf-jhfr, CGA-wgc6-5724-f2jx, CGA-wppv-vhwv-6c9v, CGA-wvvv-7rhj-5r24, CGA-x54q-v9w4-f88g, CGA-x64x-w6xj-j2j9, CGA-x675-f3hx-5vhv, CGA-x6p6-vxfw-4hjq, CGA-x746-28x4-96rw, CGA-xmpg-phc5-52j7, CGA-xqgc-cf2q-w253, CGA-xv7x-qq7f-9j9m
- Record: https://cvemate.com/vulnerability/CVE-2026-84373 · JSON: https://cvemate.com/vulnerability/CVE-2026-84373/json

## Description

```text
Vitest is a testing framework powered by Vite. From 2.1.0 until 4.1.11 and 5.0.0-rc.2, the public mockerPlugin and standalone interceptorPlugin exports in packages/mocker/src/node/interceptorPlugin.ts register the vitest:interceptor:register handler on Vite's unauthenticated HMR WebSocket without validating redirect targets against the file-serving allowlist. The implementation processes event.redirect without enforcing server.fs.allow and server.fs.deny through isFileLoadingAllowed. A remote client that can reach an exposed development server can submit an opaque URL scheme preserving .. segments, causing join(server.config.root, redirectUrl.pathname) to resolve outside the project root. The plugin's load hook then returns readFile(mock.redirect, 'utf-8') as module source, disclosing local files readable by the dev-server process. Vitest browser mode uses a token-authenticated RPC and is not remotely unauthenticated by default, although the same boundary check was missing on that path. This issue is fixed in versions 4.1.11 and 5.0.0-rc.2.
```

## Signals

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

## Affected (first 20 of 41)

- chainguard commercial-gitlab-rails-ee-19.1 (Chainguard): \< 19.1.7-r3
- chainguard commercial-gitlab-rails-ee-19.2 (Chainguard): \< 19.2.7-r1
- chainguard commercial-gitlab-rails-ee-19.3 (Chainguard): \< 19.3.3-r1
- chainguard commercial-gitlab-rails-ee-19.4 (Chainguard): \< 19.4.1-r1
- chainguard commercial-gitlab-rails-ee-fips-19.1 (Chainguard): All versions (No fix recorded) \| \< 19.1.9-r0
- chainguard commercial-gitlab-rails-ee-fips-19.2 (Chainguard): \< 19.2.7-r1
- chainguard commercial-gitlab-rails-ee-fips-19.3 (Chainguard): \< 19.3.3-r1
- chainguard commercial-gitlab-rails-ee-fips-19.4 (Chainguard): \< 19.4.1-r1
- chainguard gitlab-rails-ce-18.10 (Chainguard): All versions (No fix recorded)
- 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): All versions (No fix recorded) \| \< 19.0.10-r0
- chainguard gitlab-rails-ce-19.1 (Chainguard): \< 19.1.8-r2
- chainguard gitlab-rails-ce-19.2 (Chainguard): \< 19.2.6-r2
- chainguard gitlab-rails-ce-19.3 (Chainguard): \< 19.3.2-r2
- chainguard gitlab-rails-ce-fips-18.10 (Chainguard): \< 18.10.8-r8
- 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

## References

- <https://github.com/vitest-dev/vitest/security/advisories/GHSA-82fw-gwwq-j7x9>
- <https://github.com/vitest-dev/vitest/pull/10972>
- <https://github.com/vitest-dev/vitest/pull/10974>
- <https://github.com/vitest-dev/vitest/commit/51edf2b072902aec6d30c90ebaafd8f121c6f9d8>
- <https://github.com/vitest-dev/vitest/commit/8ff9b9a9efca7c6cfd5243569440de8d7a33aec4>
- <https://github.com/vitest-dev/vitest/commit/fe5a11d3ceac5ec10d6d7d21a46d4caca132c48f>
- <https://github.com/vitest-dev/vitest/releases/tag/v4.1.11>
- <https://github.com/vitest-dev/vitest/releases/tag/v5.0.0-rc.2>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/84xxx/CVE-2026-84373.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-84373>
- <https://github.com/vitest-dev/vitest>

---

Data as of 2026-12-05T13:17:49.854Z. 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
