Red Hat VEX
RHVEX-CVE-2026-84373
vitest: Vitest: Arbitrary File Read via Path Traversal in HMR WebSocket
Details
A flaw was found in Vitest, a testing framework. A remote attacker, able to reach an exposed development server, could exploit an issue in the mockerPlugin and interceptorPlugin exports. These plugins register a handler on Vite's unauthenticated HMR WebSocket without properly validating redirect targets. By submitting a specially crafted URL with path traversal segments, an attacker could read arbitrary local files accessible by the development server process, leading to information disclosure.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:10 | rh-podman-desktop | All versions, no fix (fix deferred) |
References
- https://access.redhat.com/security/cve/CVE-2026-84373
- https://bugzilla.redhat.com/show_bug.cgi?id=2527102
- https://www.cve.org/CVERecord?id=CVE-2026-84373
- https://nvd.nist.gov/vuln/detail/CVE-2026-84373
- 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/pull/10972
- https://github.com/vitest-dev/vitest/pull/10974
- 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/vitest-dev/vitest/security/advisories/GHSA-82fw-gwwq-j7x9