CVE-2026-112948: vitejs vite-plus
Vulnerability summary
CVE-2026-112948 is a medium (CVSS 6.5) vulnerability in vitejs vite-plus.
Timeline
- 20-10-2026PublishedVulnerability first disclosed.
- 20-10-2026Last 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
2 scores · 2 sources · 1 version- NVDNIST6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
EPSS trend
No EPSS score has been published for this record yet.
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-200Exposure of Sensitive Information to an Unauthorized ActorThe product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.
- CWE-552Files or Directories Accessible to External PartiesThe product makes files or directories accessible to unauthorized actors, even though they should not be.
Affected systems
3 vendors · 4 products
References
4 links- github.com/vitest-dev/vitest/security/advisories/GHSA-p458-7748-mcp3X Refsource CONFIRM
- github.com/vitest-dev/vitest/pull/11578X Refsource MISC
- github.com/vitest-dev/vitest/releases/tag/v5.0.5X Refsource MISC