CVE-2026-84373
Last modified
CVE-2026-84373 is a medium-severity vulnerability rated 5.9/10 on the CVSS scale. 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. EPSS estimates a 0.38% chance of exploitation in the next 30 days.
Description
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| vitest-dev | vitest | >= 2.1.0, < 4.1.11; >= 5.0.0-beta.1, < 5.0.0-rc.2 |
| @vitest | mocker | >= 2.1.0, < 4.1.11; >= 5.0.0-beta.1, < 5.0.0-rc.2 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-84373?
How severe is CVE-2026-84373?
How do I fix CVE-2026-84373?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-84367joi is a schema description language and data validator for …3.7
- CVE-2026-84368joi is a schema description language and data validator for …3.7
- CVE-2026-84369SVGO, short for SVG Optimizer, is a Node.js library and comm…6.1
- CVE-2026-84370SVGO, short for SVG Optimizer, is a Node.js library and comm…8.2
- CVE-2026-84371ApostropheCMS is an open-source Node.js content management s…5.4
- CVE-2026-84372Predis is a flexible and feature-complete Redis and Valkey c…9.8
- CVE-2026-84374Laravel Excel provides supercharged Excel exports and import…7.5
- CVE-2026-84375js-yaml is a JavaScript YAML parser and dumper. From 3.0.0 u…7.5
- CVE-2026-84376Astro is a web framework for content-driven websites. Prior …6.3
- CVE-2026-84377LiteLLM is a proxy server (AI Gateway) to call LLM APIs in O…6.5
- CVE-2026-84378HTTPX2 is a next generation HTTP client for Python. From 2.5…5.9
- CVE-2026-84379HTTPX2 is a next generation HTTP client for Python. Prior to…5.3
Are you affected by CVE-2026-84373?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
