{"id":"EUVD-2026-69705","enisaUuid":"9c17e2b9-35fd-3627-aa90-febccc245f7b","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\u0027s 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\u0027s load hook then returns readFile(mock.redirect, \u0027utf-8\u0027) 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.","datePublished":"Sep 1, 2026, 9:26:26 PM","dateUpdated":"Sep 2, 2026, 1:22:16 PM","baseScore":5.9,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","references":"https://github.com/vitest-dev/vitest/security/advisories/GHSA-82fw-gwwq-j7x9\nhttps://github.com/vitest-dev/vitest/pull/10972\nhttps://github.com/vitest-dev/vitest/pull/10974\nhttps://github.com/vitest-dev/vitest/commit/51edf2b072902aec6d30c90ebaafd8f121c6f9d8\nhttps://github.com/vitest-dev/vitest/commit/8ff9b9a9efca7c6cfd5243569440de8d7a33aec4\nhttps://github.com/vitest-dev/vitest/commit/fe5a11d3ceac5ec10d6d7d21a46d4caca132c48f\nhttps://github.com/vitest-dev/vitest/releases/tag/v4.1.11\nhttps://github.com/vitest-dev/vitest/releases/tag/v5.0.0-rc.2\n","aliases":"CVE-2026-84373\nGHSA-82fw-gwwq-j7x9\n","assigner":"GitHub_M","epss":0.53,"enisaIdProduct":[{"id":"0a295405-cdff-3287-a341-3b0044498606","product":{"name":"mocker","vendor":{"name":"@vitest"}},"product_version":"2.1.0, \u003c 4.1.11"},{"id":"1edf65b0-83c7-34b6-8dc0-8d3a52a140fd","product":{"name":"vitest","vendor":{"name":"vitest-dev"}},"product_version":"5.0.0-beta.1, \u003c 5.0.0-rc.2"},{"id":"26776424-ff90-348a-b42f-f1a81fda7e8c","product":{"name":"mocker","vendor":{"name":"@vitest"}},"product_version":"5.0.0-beta.1, \u003c 5.0.0-rc.2"},{"id":"f4877a83-67f5-3aa2-a8d3-09a86a0d907b","product":{"name":"vitest","vendor":{"name":"vitest-dev"}},"product_version":"2.1.0, \u003c 4.1.11"}],"enisaIdVendor":[{"id":"8e6763a7-5958-3ab0-bb57-2076be06dcc1","vendor":{"name":"vitest-dev"}},{"id":"b3198e40-d8d7-3c3e-ae68-5457738e2ef1","vendor":{"name":"@vitest"}}],"enisaIdVulnerability":[{"id":"445488f2-cfe6-3b0e-878d-732c1900fc48","vulnerability":{"id":"GHSA-82fw-gwwq-j7x9","description":"Vitest: Path Traversal / Arbitrary File Read via @vitest/mocker Redirect Mock","datePublished":"Sep 8, 2026, 8:46:45 PM","dateUpdated":"Sep 8, 2026, 8:46:45 PM","baseScore":0.0,"references":"https://github.com/vitest-dev/vitest/security/advisories/GHSA-82fw-gwwq-j7x9\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-84373\nhttps://github.com/vitest-dev/vitest/pull/10972\nhttps://github.com/vitest-dev/vitest/pull/10974\nhttps://github.com/vitest-dev/vitest/commit/51edf2b072902aec6d30c90ebaafd8f121c6f9d8\nhttps://github.com/vitest-dev/vitest/commit/8ff9b9a9efca7c6cfd5243569440de8d7a33aec4\nhttps://github.com/vitest-dev/vitest/commit/fe5a11d3ceac5ec10d6d7d21a46d4caca132c48f\nhttps://github.com/vitest-dev/vitest\nhttps://github.com/vitest-dev/vitest/releases/tag/v4.1.11\nhttps://github.com/vitest-dev/vitest/releases/tag/v5.0.0-rc.2\n","enisa_id":"EUVD-2026-69705\n","aliases":"CVE-2026-84373\nGHSA-82fw-gwwq-j7x9\n","epss":0.0,"dataProcessed":"Nov 15, 2026, 2:54:50 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}},{"id":"bf696629-b87b-32fc-ab6f-6cc01a44715d","vulnerability":{"id":"CVE-2026-84373","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\u0027s 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\u0027s load hook then returns readFile(mock.redirect, \u0027utf-8\u0027) 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.","datePublished":"Sep 1, 2026, 9:26:26 PM","dateUpdated":"Sep 2, 2026, 1:22:16 PM","status":"PUBLISHED","baseScore":5.9,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","references":"https://github.com/vitest-dev/vitest/security/advisories/GHSA-82fw-gwwq-j7x9\nhttps://github.com/vitest-dev/vitest/pull/10972\nhttps://github.com/vitest-dev/vitest/pull/10974\nhttps://github.com/vitest-dev/vitest/commit/51edf2b072902aec6d30c90ebaafd8f121c6f9d8\nhttps://github.com/vitest-dev/vitest/commit/8ff9b9a9efca7c6cfd5243569440de8d7a33aec4\nhttps://github.com/vitest-dev/vitest/commit/fe5a11d3ceac5ec10d6d7d21a46d4caca132c48f\nhttps://github.com/vitest-dev/vitest/releases/tag/v4.1.11\nhttps://github.com/vitest-dev/vitest/releases/tag/v5.0.0-rc.2\n","enisa_id":"EUVD-2026-69705\n","assigner":"GitHub_M","epss":0.53,"dataProcessed":"Nov 17, 2026, 7:18:25 AM","vulnerabilityProduct":[{"id":"2a6a3167-21a8-32c6-85da-7c9d9f92b7c4","product":{"name":"mocker","vendor":{"name":"@vitest"}},"product_version":"5.0.0-beta.1, \u003c 5.0.0-rc.2"},{"id":"b068f184-81dc-32f6-bb11-8a5358d257ff","product":{"name":"vitest","vendor":{"name":"vitest-dev"}},"product_version":"5.0.0-beta.1, \u003c 5.0.0-rc.2"},{"id":"b2b2b9ff-16f0-3a82-a261-09823fd519bc","product":{"name":"vitest","vendor":{"name":"vitest-dev"}},"product_version":"2.1.0, \u003c 4.1.11"},{"id":"bd332453-979d-3bf3-acce-84c65ea3c990","product":{"name":"mocker","vendor":{"name":"@vitest"}},"product_version":"2.1.0, \u003c 4.1.11"}],"vulnerabilityVendor":[{"id":"c05b2e04-b2d1-3879-a19d-2258b85a60cf","vendor":{"name":"@vitest"}},{"id":"f23f124d-a8d2-30dc-8966-2b775b6f35b3","vendor":{"name":"vitest-dev"}}]}}],"enisaIdAdvisory":[]}