CVE-2026-112948: vitest · Information Exposure
Affects vitestSource CVE Database V5
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
- 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:NExploitation evidence
Disclosed: evidence found.
CVE published 20 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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
| Product | Affected | Fixed in |
|---|---|---|
| vitest-devvitest | Affected
| Fixed in
|
| @vitestbrowser | Affected
| Fixed in
|
| @vitestui | Affected
| Fixed in
|
| vitejsvite-plus | Affected
| Fixed in
|
npm@vitest/uipkg:npm/%40vitest/uiOther threats | Affected
| Fixed in
|
npm@vitest/browserpkg:npm/%40vitest/browserOther threats | Affected
| Fixed in
|
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
- github.com/vitest-dev/vitest/security/advisories/GHSA-p458-7748-mcp3 (opens in a new tab)
- github.com/vitest-dev/vitest/pull/11578 (opens in a new tab)
- github.com/vitest-dev/vitest/commit/28dc1edfb6ba5a181fe208576989063795aeadb3 (opens in a new tab)
- github.com/vitest-dev/vitest/releases/tag/v5.0.5 (opens in a new tab)