{"cve":"CVE-2026-112948","nvd":{"published":"2026-10-20T16:17:05.517","modified":"2026-10-20T19:56:45.543","status":"Awaiting Analysis","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","score":6.5},"cwes":["CWE-200","CWE-552"],"references":["https://github.com/vitest-dev/vitest/commit/28dc1edfb6ba5a181fe208576989063795aeadb3","https://github.com/vitest-dev/vitest/pull/11578","https://github.com/vitest-dev/vitest/releases/tag/v5.0.5","https://github.com/vitest-dev/vitest/security/advisories/GHSA-p458-7748-mcp3"],"products":[],"source":"nvd","synced_at":"2026-10-21T03:56:58.798400159+00:00"},"epss":{"cve":"CVE-2026-112948","score":0.004,"percentile":0.3402,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-p458-7748-mcp3","url":"https://osv.dev/vulnerability/GHSA-p458-7748-mcp3","summary":"Vitest: Servers misapply `server.fs.deny`, serving `.env`, private keys, `.git`, and the API token file","modified":"2026-10-21T20:01:39.862679779Z","packages":[{"ecosystem":"npm","name":"@vitest/ui","purl":"pkg:npm/%40vitest/ui","ranges":[">=5.0.0-beta.6 <5.0.5"],"fixed":["5.0.5"]},{"ecosystem":"npm","name":"@vitest/browser","purl":"pkg:npm/%40vitest/browser","ranges":[">=5.0.0-beta.6 <5.0.5"],"fixed":["5.0.5"]},{"ecosystem":"npm","name":"vite-plus","purl":"pkg:npm/vite-plus","ranges":[">=1.0.0-rc.0 <1.3.0"],"fixed":["1.3.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}