CVE-2026-84373
Vitest: Path Traversal / Arbitrary File Read via @vitest/mocker Redirect Mock
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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.527% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 5.9 · published by GitHub_MCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Assessment source · checked 2026-11-19T12:59:16.510Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:59:58.648Z | CISA KEV |
| cvss | verified | 2026-11-19T12:59:16.510Z | CVE Program |
| epss | verified | 2026-11-19T16:04:55.369Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:29.323Z | OSV |
| affected | verified | 2026-11-19T12:59:16.510Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:59:16.510Z | CVE Program |
Affected versions and configuration
vitest-dev vitest; default status: unknown: >= 2.1.0, < 4.1.11 [affected; scheme: unspecified]; >= 5.0.0-beta.1, < 5.0.0-rc.2 [affected; scheme: unspecified] @vitest mocker; default status: unknown: >= 2.1.0, < 4.1.11 [affected; scheme: unspecified]; >= 5.0.0-beta.1, < 5.0.0-rc.2 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "vitest-dev",
"product": "vitest",
"versions": [
{
"status": "affected",
"version": ">= 2.1.0, < 4.1.11"
},
{
"status": "affected",
"version": ">= 5.0.0-beta.1, < 5.0.0-rc.2"
}
]
},
{
"vendor": "@vitest",
"product": "mocker",
"versions": [
{
"status": "affected",
"version": ">= 2.1.0, < 4.1.11"
},
{
"status": "affected",
"version": ">= 5.0.0-beta.1, < 5.0.0-rc.2"
}
]
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2026-84373",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2026-09-02T13:20:05.845961Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-09-02T13:22:16.806Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-82fw-gwwq-j7x9",
"aliases": [
"CVE-2026-84373"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "2.1.0"
},
{
"fixed": "4.1.11"
}
]
}
],
"package": {
"name": "vitest",
"purl": "pkg:npm/vitest",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-82fw-gwwq-j7x9/GHSA-82fw-gwwq-j7x9.json"
}
},
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "5.0.0-beta.1"
},
{
"fixed": "5.0.0-rc.2"
}
]
}
],
"package": {
"name": "vitest",
"purl": "pkg:npm/vitest",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-82fw-gwwq-j7x9/GHSA-82fw-gwwq-j7x9.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/vitest-dev/vitest/security/advisories/GHSA-82fw-gwwq-j7x9",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-84373",
"type": "ADVISORY"
},
{
"url": "https://github.com/vitest-dev/vitest/pull/10972",
"type": "WEB"
},
{
"url": "https://github.com/vitest-dev/vitest/pull/10974",
"type": "WEB"
},
{
"url": "https://github.com/vitest-dev/vitest/commit/51edf2b072902aec6d30c90ebaafd8f121c6f9d8",
"type": "WEB"
},
{
"url": "https://github.com/vitest-dev/vitest/commit/8ff9b9a9efca7c6cfd5243569440de8d7a33aec4",
"type": "WEB"
},
{
"url": "https://github.com/vitest-dev/vitest/commit/fe5a11d3ceac5ec10d6d7d21a46d4caca132c48f",
"type": "WEB"
},
{
"url": "https://github.com/vitest-dev/vitest",
"type": "PACKAGE"
},
{
"url": "https://github.com/vitest-dev/vitest/releases/tag/v4.1.11",
"type": "WEB"
},
{
"url": "https://github.com/vitest-dev/vitest/releases/tag/v5.0.0-rc.2",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-22"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2026-09-01T22:17:19Z",
"github_reviewed_at": "2026-09-08T20:46:45Z"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | npm / package | vitest | Not a distribution channel | 4.1.11 | Official record |
| ecosystem-boundary | npm / package | vitest | Not a distribution channel | 5.0.0-rc.2 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:29.323ZArchived source JSON
Source publication: 2026-09-08T20:46:45.000Z
Source modification: 2026-09-08T21:00:07.248ZDocument fingerprint
8e2a78812a343f3a856262818c69ac6b6af8f2a671c28eb29cfee8f432352595 - CVE ProgramConsulted: 2026-11-19T12:59:16.510ZArchived source JSON
Source publication: 2026-09-01T21:26:26.110Z
Source modification: 2026-09-02T13:22:16.806ZDocument fingerprint
aa7324ce8afa0d38a485e76f0e00b7e00effa98e120a016b76d9ace28cec81d3 - CISA KEVConsulted: 2026-11-19T17:59:58.648ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:55.369ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
a7405b33de9d393c372baf362c397518d22432ff8c9df98522c1b46d1034d9cf
Official status history
- UNKNOWN → PUBLISHED · · evidence