CVEMETERBack to radar
OFFICIAL RECORD · JavaScript packages

CVE-2026-84373

PUBLISHEDOfficial status check: verifiedCVSS 3.1: 5.9 · medium

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_M
CVSS: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

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T17:59:58.648ZCISA KEV
cvssverified2026-11-19T12:59:16.510ZCVE Program
epssverified2026-11-19T16:04:55.369ZFIRST EPSS
patchesverified2026-11-19T12:52:29.323ZOSV
affectedverified2026-11-19T12:59:16.510ZCVE Program
lifecycleverified2026-11-19T12:59:16.510ZCVE 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 JSON
OSV · 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 JSON

Correction 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 typeDistribution / releasePackageChannelVersion or source noteSource
ecosystem-boundarynpm / packagevitestNot a distribution channel4.1.11Official record
ecosystem-boundarynpm / packagevitestNot a distribution channel5.0.0-rc.2Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history