5.9

CVE-2026-84373: vitest-dev vitest Path Traversal

CVSS: 5.9v3.1MediumDeferred
AliasesCGA-22f6-p29j-gww5CGA-3h7q-r78w-f9gpCGA-5r9f-xvpp-g3r4
Published 01-09-2026Last modified 02-09-2026

Vulnerability summary

CVE-2026-84373 is a medium (CVSS 5.9) Path Traversal vulnerability in vitest-dev vitest. EPSS estimates a 0.53% chance of exploitation in the next 30 days, higher than 43.5% of scored vulnerabilities.

Overall risk
24/100
0100
Low · default modelHow is this calculated?
CVSS score
5.9/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.53%
0%100%
Low · +0.15 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 01-09-2026
    PublishedVulnerability first disclosed.
  2. 02-09-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

0.53%

Chance of exploitation in the next 30 days

Percentile

44%

Versus all other CVEs

30-day change

+0.15 pp

From 0.38% on 20-09-2026

20-09-202620-10-2026
EPSS score
0.53%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Chainguard33 products
  • commercial-gitlab-rails-ee-19.1< 19.1.7-r3
  • commercial-gitlab-rails-ee-19.2< 19.2.7-r1
  • commercial-gitlab-rails-ee-19.3< 19.3.3-r1
  • commercial-gitlab-rails-ee-19.4< 19.4.1-r1
  • commercial-gitlab-rails-ee-fips-19.1All versions (No fix recorded)
Wolfi4 products
  • langfuse-3-compat< 3.225.7-r6
  • langfuse-3-worker< 3.225.7-r6
  • vitess-24< 24.0.3-r7
  • vitess-24-compat< 24.0.3-r7
@vitest2 products
  • mocker≥ 2.1.0, < 4.1.11 | ≥ 5.0.0-beta.1, < 5.0.0-rc.2
  • mocker≥ 2.1.0, < 4.1.11 | ≥ 5.0.0-beta.1, < 5.0.0-rc.2
Npm1 product
  • vitest≥ 2.1.0, < 4.1.11 | ≥ 5.0.0-beta.1, < 5.0.0-rc.2
Vitest-dev1 product
  • vitest≥ 2.1.0, < 4.1.11 | ≥ 5.0.0-beta.1, < 5.0.0-rc.2

5 vendors · 41 products

References

11 links
Show all 11 references