6.5

CVE-2026-112948: Vitest: Servers misapply `server.fs.deny`, serving `.env`, private keys, `.git`, and the API token file

Awaiting analysis
AliasesGHSA-p458-7748-mcp3
Published 20-10-2026Last modified 20-10-2026

Vulnerability summary

CVE-2026-112948 is a medium (CVSS 6.5) vulnerability in vitejs vite-plus. EPSS estimates a 0.40% chance of exploitation in the next 30 days, higher than 36.3% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources

CIRCL last checked 05-12-2026

Source freshness unavailable

How is this decided?
CVSS score
6.5/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.40%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 20-10-2026
    PublishedVulnerability first disclosed.
  2. 20-10-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.40%

Chance of exploitation in the next 30 days

Percentile

36%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.40% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

@vitest4 products
  • browser≥ 5.0.0-beta.6, < 5.0.5
  • ui≥ 5.0.0-beta.6, < 5.0.5
  • browser≥ 5.0.0-beta.6, < 5.0.5
  • ui≥ 5.0.0-beta.6, < 5.0.5
Npm1 product
  • vite-plus≥ 1.0.0-rc.0, < 1.3.0
Vitejs1 product
Vitest-dev1 product
  • vitest≥ 5.0.0-beta.6, < 5.0.5

4 vendors · 7 products

References

6 links