5.9

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

CVSS: 5.9v3.1MediumAwaiting analysis
Published 20-10-2026Last modified 20-10-2026

Vulnerability summary

CVE-2026-112950 is a medium (CVSS 5.9) Path Traversal vulnerability in vitest-dev vitest.

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

Timeline

  1. 20-10-2026
    PublishedVulnerability first disclosed.

Description

Vitest is a Vite-native testing framework for JavaScript and TypeScript projects. From 4.1.11 until 4.1.12 and 5.0.3, isFileLoadingAllowed and the filesystem read interpret backslashes differently on Windows in packages/mocker/src/node/interceptorPlugin.ts. When a client can reach the Vite dev server on Windows and register a redirect mock containing backslash traversal, POSIX joining preserves a Windows backslash traversal that the later filesystem read interprets as a path separator, so the client can read a file outside server.fs.allow that the Vitest process can access. This issue is fixed in versions 4.1.12 and 5.0.3.

CVSS metrics

2 scores · 2 sources · 1 version

EPSS trend

No EPSS score has been published for this record yet.

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

@vitest1 product
  • mocker≥ 4.1.11, < 4.1.12 | ≥ 5.0.0-rc.2, < 5.0.3
Vitest-dev1 product
  • vitest≥ 4.1.11, < 4.1.12 | ≥ 5.0.0-rc.2, < 5.0.3

2 vendors · 2 products

References

5 links