Vulnerability Intelligence Report
Vitest: Servers misapply `server.fs.deny`, serving `.env`, private keys, `.git`, and the API token file
CVE-2026-112948
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.
Information Disclosure
No Active Exploit Signals
CVSS Base Score
6.5
MEDIUM
Exploitability:2.9
Impact Score:3.6
Executive Threat Verdict
Evaluating...
Evaluating Threat Landscape...
Assessing known weaponization, exploitation telemetry, and federal advisories.
Attack Surface
—
Authentication
—
Weaponization
—
SSVC Action
—
Weaknesses (CWE)
CWE-200 ↗CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
CWE-552 ↗CWE-552: Files or Directories Accessible to External Parties
Affected Products & Versions
| Vendor | Product | Affected Versions |
|---|---|---|
| vitest-dev | vitest | >= 5.0.0-beta.6, < 5.0.5 (affected) |
| @vitest | browser | >= 5.0.0-beta.6, < 5.0.5 (affected) |
| @vitest | ui | >= 5.0.0-beta.6, < 5.0.5 (affected) |
| vitejs | vite-plus | >= 1.0.0-rc.0, < 1.3.0 (affected) |
References & Technical Advisories
No reference links found.
Threat Intelligence Signals
GitHub Advisory
Vulnerability Class
Information Disclosure
Identity & Timeline
| Status | PUBLISHED |
| Assigning Authority | GitHub, Inc. · Vendor · USA |
| Reserved | 2026-10-19T21:30:47 |
| Published | 2026-10-20T15:15:01 |
| Last Updated | 2026-10-20T16:16:59 |
Community Chatter & Buzz