CVE-2026-112948: Vitest: Servers misapply `server.fs.deny`, serving `.env`, private keys, `.git`, and the API token file
vitest-dev · vitest
Affected: vitest-dev · Exploitation: unlikely (under 1%)
Not in CyberSIXT coverage yet: no article names this CVE. This page shows the public record.
Higher than 34% of scored CVEs
DescriptionCVE.org
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.
Affected products4
From the CVE record. A product or version that is not listed is unknown, not unaffected.
- 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
On the Atlas
Every published CVE is on the CyberSIXT Atlas, grouped by weakness, vendor and month.
- Exploitation
- Unlikely (under 1%). EPSS under 1%, or no score yet.
- CISA KEV
- Not listed
- Public check
- No public nuclei template
- Vendor
- vitest-dev
- Published
- October 2026
CoverageNo articles yet
No CyberSIXT article names CVE-2026-112948 yet, so there is no coverage timeline, action brief or change log for it. Everything on this page comes from the public CVE record, CISA KEV, EPSS and the nuclei template index. Search the archive or see the CVEs in the news.
References
- NVD entrynvd.nist.gov
- CVE recordcve.org
- Weakness CWE-200cwe.mitre.org
- github.com/vitest-dev/vitest/security/advisories/GHSA-p458-7748-github.com
- github.com/vitest-dev/vitest/pull/11578github.com
- github.com/vitest-dev/vitest/commit/28dc1edfb6ba5a181fe208576989github.com
- github.com/vitest-dev/vitest/releases/tag/v5.0.5github.com