CVE-2026-112948Vitest Dev Vitest information disclosure
CVSS score
6.5
Medium
CVSS 3.1 from github.com
Exploit probability (EPSS)
0.40%
0.40% chance of exploitation in the next 30 days, higher than 35.0% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official 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.
Source: NVD · CNA: security-advisories@github.com
How to fix it, step by step
Check whether you're affected
Find every system running vitest-dev Vitest, @vitest Browser, @vitest Ui, vitejs Vite-plus and compare its version with the affected versions.
Update to a fixed version
- Update Vitest, Browser, Ui to 5.0.5 or later.
- Update Vite-plus to 1.3.0 or later.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Affected products
| Affected products | Versions |
|---|---|
| vitest-dev Vitest | >= 5.0.0-beta.6, < 5.0.5 |
| @vitest Browser | >= 5.0.0-beta.6, < 5.0.5 |
| @vitest Ui | >= 5.0.0-beta.6, < 5.0.5 |
| vitejs Vite-plus | >= 1.0.0-rc.0, < 1.3.0 |
Weakness
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-112948 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.4% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-112948?
CVE-2026-112948 has a CVSS 3.1 base score of 6.5 (medium).
Which versions are affected?
Vitest Dev Vitest (>= 5.0.0-beta.6, < 5.0.5), Vitest Browser (>= 5.0.0-beta.6, < 5.0.5), Vitest Ui (>= 5.0.0-beta.6, < 5.0.5), Vitejs Vite-plus (>= 1.0.0-rc.0, < 1.3.0)
Is there a patch for CVE-2026-112948?
The official record links to vendor advisories or patches; see “What to do” above.
References
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.