# CVE-2026-112948: Vitest: Servers misapply \`server.fs.deny\`, serving \`.env\`, private keys, \`.git\`, and the API token file

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-10-20 · Modified: 2026-10-20
- Aliases: GHSA-p458-7748-mcp3
- Record: https://cvemate.com/vulnerability/CVE-2026-112948 · JSON: https://cvemate.com/vulnerability/CVE-2026-112948/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
- EPSS: 0.4%, percentile 36.392%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- Npm vite-plus (Npm): ≥ 1.0.0-rc.0, \< 1.3.0
- @vitest browser (Npm): ≥ 5.0.0-beta.6, \< 5.0.5
- @vitest ui (Npm): ≥ 5.0.0-beta.6, \< 5.0.5
- vitejs vite-plus: ≥ 1.0.0-rc.0, \< 1.3.0
- 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

## References

- <https://github.com/vitest-dev/vitest/security/advisories/GHSA-p458-7748-mcp3>
- <https://github.com/vitest-dev/vitest/pull/11578>
- <https://github.com/vitest-dev/vitest/commit/28dc1edfb6ba5a181fe208576989063795aeadb3>
- <https://github.com/vitest-dev/vitest/releases/tag/v5.0.5>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-112948>
- <https://github.com/vitest-dev/vitest>

---

Data as of 2026-12-05T13:32:13.904Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
