Skip to main content
VulnerabilityPublished

CVE-2026-112950: vitest · Path Traversal

Affects vitestSource CVE Database V5

0

Not known to be exploited · CVSS 5.9 Medium : upgrade to 5.0.3 or 4.1.12 when convenient.

Data as of 26 Oct 2026, 14:05 UTC

CVSS 3.1 base score
5.9Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.4% chance of exploitation in 30 days – higher than 39% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 5.0.3, 4.1.12
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 20 Oct 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Upgrade vitest and mocker and vitest-dev/vitest to 5.0.3 or 4.1.12.

Affected software

ProductAffectedFixed in
vitest-devvitestAffected
  • >=5.0.0-rc.2 <5.0.3
Fixed in
  • 5.0.3
vitest-devvitestAffected
  • >=4.1.11 <4.1.12
Fixed in
  • 4.1.12
@vitestmockerAffected
  • >=5.0.0-rc.2 <5.0.3
Fixed in
  • 5.0.3
@vitestmockerAffected
  • >=4.1.11 <4.1.12
Fixed in
  • 4.1.12
npmvitest-dev/vitestpkg:npm/vitest-dev/vitestOther threatsAffected
  • >=4.1.11 <4.1.12
  • >=5.0.0-rc.2 <5.0.3
Fixed in
  • 4.1.12
  • 5.0.3

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade Vitest to version 4.1.12 or later, or 5.0.3 or later, where this path traversal vulnerability is fixed. No other mitigation is indicated by the vendor advisory. Patch status is confirmed fixed in these versions.

Description

CVE-2026-112950 is a path traversal vulnerability in the Vitest testing framework for JavaScript and TypeScript. It affects versions from 4.1.11 up to but not including 4.1.12, and from 5.0.0-rc.2 up to but not including 5.0.3. On Windows, the issue arises because backslash characters in paths are interpreted inconsistently, allowing a client connected to the Vite dev server to read files outside the intended allowed directory. This vulnerability is fixed in versions 4.1.12 and 5.0.3.

References

Community reviews

Loading reviews…