{"schemaVersion":3,"id":"CVE-2026-112948","aliases":[],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2026-10-20T15:15:01.927Z","modified":"2026-10-20T16:16:59.623Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":null,"percentile":null,"severity":"unknown","asOf":null,"change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[],"last30":[]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor","description":"The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/200.html"},{"id":"CWE-552","name":"Files or Directories Accessible to External Parties","description":"The product makes files or directories accessible to unauthorized actors, even though they should not be.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/552.html"}],"affected":[{"vendor":"vitejs","product":"vite-plus","name":"vite-plus","label":"vite-plus","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.0.0-rc.0, < 1.3.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.0.0-rc.0, < 1.3.0","eol":null,"hubHref":"/vendor/vitejs/vite-plus"},{"vendor":"vitest-dev","product":"vitest","name":"vitest","label":"vitest","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 5.0.0-beta.6, < 5.0.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 5.0.0-beta.6, < 5.0.5","eol":null,"hubHref":"/vendor/vitest-dev/vitest"},{"vendor":"@vitest","product":"browser","name":"browser","label":"browser","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 5.0.0-beta.6, < 5.0.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 5.0.0-beta.6, < 5.0.5","eol":null,"hubHref":"/vendor/vitest/browser"},{"vendor":"@vitest","product":"ui","name":"ui","label":"ui","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 5.0.0-beta.6, < 5.0.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 5.0.0-beta.6, < 5.0.5","eol":null,"hubHref":"/vendor/vitest/ui"}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/vitest-dev/vitest/security/advisories/GHSA-p458-7748-mcp3","label":"github.com/vitest-dev/vitest/security/advisories/GHSA-p458-7748-mcp3","hostname":"github.com","tags":["X Refsource CONFIRM"]},{"url":"https://github.com/vitest-dev/vitest/pull/11578","label":"github.com/vitest-dev/vitest/pull/11578","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/vitest-dev/vitest/commit/28dc1edfb6ba5a181fe208576989063795aeadb3","label":"github.com/vitest-dev/vitest/commit/28dc1edfb6ba5a181fe208576989063795aeadb3","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/vitest-dev/vitest/releases/tag/v5.0.5","label":"github.com/vitest-dev/vitest/releases/tag/v5.0.5","hostname":"github.com","tags":["X Refsource MISC"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-10-20T15:15:01.927Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-20T16:16:59.623Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":26,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T12:22:00.281Z","stale":false,"partial":false}}