Information disclosure in Vitejs Vite-Plus
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.
Vulnerability class: Information Disclosure
Published .
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N.
EPSS exploit prediction
No EPSS score from FIRST.org yet. New CVEs usually get one within a few days; no score means no signal yet, not low risk. How EPSS works.
Affected products
- Vitejs Vite-Plus — versions >= 1.0.0-rc.0, < 1.3.0
- @Vitest Browser — versions >= 5.0.0-beta.6, < 5.0.5
- @Vitest Ui — versions >= 5.0.0-beta.6, < 5.0.5
- Vitest-Dev Vitest — versions >= 5.0.0-beta.6, < 5.0.5
Weakness classification (CWE)
References
Frequently asked questions
- What is CVE-2026-112948?
- CVE-2026-112948 is a medium-severity vulnerability in Vitejs Vite-Plus, classified under Information Disclosure. CVSS score: 6.5/10. Published 2026-10-20.
- How severe is CVE-2026-112948?
- Medium severity. CVSS v3 base score is 6.5 out of 10.