Skip to main content
VulnerabilityPublished

CVE-2026-112948: vitest · Information Exposure

Affects vitestSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 6.5 Medium : upgrade to 5.0.5 when convenient.

Data as of 4 Dec 2026, 18:36 UTC

CVSS 3.1 base score
6.5Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.4% chance of exploitation in 30 days – higher than 36% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 5.0.5, 1.3.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/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. Weaponized: 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 5 Dec 2026.

What to do

Upgrade vitest and browser and ui and @vitest/ui and @vitest/browser to 5.0.5; vite-plus to 1.3.0.

Affected software

ProductAffectedFixed in
vitest-devvitestAffected
  • >=5.0.0-beta.6 <5.0.5
Fixed in
  • 5.0.5
@vitestbrowserAffected
  • >=5.0.0-beta.6 <5.0.5
Fixed in
  • 5.0.5
@vitestuiAffected
  • >=5.0.0-beta.6 <5.0.5
Fixed in
  • 5.0.5
vitejsvite-plusAffected
  • >=1.0.0-rc.0 <1.3.0
Fixed in
  • 1.3.0
npm@vitest/uipkg:npm/%40vitest/uiOther threatsAffected
  • >=5.0.0-beta.6 <5.0.5
Fixed in
  • 5.0.5
npm@vitest/browserpkg:npm/%40vitest/browserOther threatsAffected
  • >=5.0.0-beta.6 <5.0.5
Fixed in
  • 5.0.5

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 5.0.5 or later, where this vulnerability is fixed. No other specific mitigations are indicated by the vendor advisory. Patch status is confirmed fixed in 5.0.5.

Description

Vitest is a testing framework powered by Vite. From 5.0.0-beta.6 until 5.0.5, Vitest dev servers can misapply server.fs.deny because project servers replace Vite's defaults and the root server adds .vitest-secret-token after Vite compiles its matcher. An attacker who can reach an affected UI, Browser Mode, or API server can read denied project files or the fallback API token at node_modules/.vitest/.vitest-secret-token, and Browser Mode with test.projects can expose JavaScript-compatible .env values through a malicious website. This issue is fixed in version 5.0.5.

References

Community reviews

Loading reviews…