{"api_version":"1","generated_at":"2026-10-20T22:34:57+00:00","cve":"CVE-2026-112948","urls":{"html":"https://cve.report/CVE-2026-112948","api":"https://cve.report/api/cve/CVE-2026-112948.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-112948","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-112948"},"summary":{"title":"Vitest: Servers misapply `server.fs.deny`, serving `.env`, private keys, `.git`, and the API token file","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.","state":"PUBLISHED","assigner":"GitHub_M","published_at":"2026-10-20 16:17:05","updated_at":"2026-10-20 19:56:45"},"problem_types":["CWE-200","CWE-552","CWE-200 CWE-200: Exposure of Sensitive Information to an Unauthorized Actor","CWE-552 CWE-552: Files or Directories Accessible to External Parties"],"metrics":[{"version":"3.1","source":"security-advisories@github.com","type":"Secondary","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","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","baseScore":6.5,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE"}},{"version":"3.1","source":"CNA","type":"DECLARED","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","data":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.5,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","version":"3.1"}}],"references":[{"url":"https://github.com/vitest-dev/vitest/commit/28dc1edfb6ba5a181fe208576989063795aeadb3","name":"https://github.com/vitest-dev/vitest/commit/28dc1edfb6ba5a181fe208576989063795aeadb3","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/vitest-dev/vitest/pull/11578","name":"https://github.com/vitest-dev/vitest/pull/11578","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/vitest-dev/vitest/releases/tag/v5.0.5","name":"https://github.com/vitest-dev/vitest/releases/tag/v5.0.5","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/vitest-dev/vitest/security/advisories/GHSA-p458-7748-mcp3","name":"https://github.com/vitest-dev/vitest/security/advisories/GHSA-p458-7748-mcp3","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-112948","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-112948","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"vitest-dev","product":"vitest","version":"affected >= 5.0.0-beta.6, < 5.0.5","platforms":[]},{"source":"CNA","vendor":"@vitest","product":"browser","version":"affected >= 5.0.0-beta.6, < 5.0.5","platforms":[]},{"source":"CNA","vendor":"@vitest","product":"ui","version":"affected >= 5.0.0-beta.6, < 5.0.5","platforms":[]},{"source":"CNA","vendor":"vitejs","product":"vite-plus","version":"affected >= 1.0.0-rc.0, < 1.3.0","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"metrics":[{"other":{"content":{"id":"CVE-2026-112948","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","timestamp":"2026-10-20T16:16:51.150771Z","version":"2.0.3"},"type":"ssvc"}}],"providerMetadata":{"dateUpdated":"2026-10-20T16:16:59.623Z","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP"},"title":"CISA ADP Vulnrichment"}],"cna":{"affected":[{"product":"vitest","vendor":"vitest-dev","versions":[{"status":"affected","version":">= 5.0.0-beta.6, < 5.0.5"}]},{"product":"browser","vendor":"@vitest","versions":[{"status":"affected","version":">= 5.0.0-beta.6, < 5.0.5"}]},{"product":"ui","vendor":"@vitest","versions":[{"status":"affected","version":">= 5.0.0-beta.6, < 5.0.5"}]},{"product":"vite-plus","vendor":"vitejs","versions":[{"status":"affected","version":">= 1.0.0-rc.0, < 1.3.0"}]}],"descriptions":[{"lang":"en","value":"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."}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.5,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-200","description":"CWE-200: Exposure of Sensitive Information to an Unauthorized Actor","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-552","description":"CWE-552: Files or Directories Accessible to External Parties","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-10-20T15:15:01.927Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","shortName":"GitHub_M"},"references":[{"name":"https://github.com/vitest-dev/vitest/security/advisories/GHSA-p458-7748-mcp3","tags":["x_refsource_CONFIRM"],"url":"https://github.com/vitest-dev/vitest/security/advisories/GHSA-p458-7748-mcp3"},{"name":"https://github.com/vitest-dev/vitest/pull/11578","tags":["x_refsource_MISC"],"url":"https://github.com/vitest-dev/vitest/pull/11578"},{"name":"https://github.com/vitest-dev/vitest/commit/28dc1edfb6ba5a181fe208576989063795aeadb3","tags":["x_refsource_MISC"],"url":"https://github.com/vitest-dev/vitest/commit/28dc1edfb6ba5a181fe208576989063795aeadb3"},{"name":"https://github.com/vitest-dev/vitest/releases/tag/v5.0.5","tags":["x_refsource_MISC"],"url":"https://github.com/vitest-dev/vitest/releases/tag/v5.0.5"}],"source":{"advisory":"GHSA-p458-7748-mcp3","discovery":"UNKNOWN"},"title":"Vitest: Servers misapply `server.fs.deny`, serving `.env`, private keys, `.git`, and the API token file"}},"cveMetadata":{"assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","assignerShortName":"GitHub_M","cveId":"CVE-2026-112948","datePublished":"2026-10-20T15:15:01.927Z","dateReserved":"2026-10-19T21:30:47.245Z","dateUpdated":"2026-10-20T16:16:59.623Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-10-20 16:17:05","lastModifiedDate":"2026-10-20 19:56:45","problem_types":["CWE-200","CWE-552","CWE-200 CWE-200: Exposure of Sensitive Information to an Unauthorized Actor","CWE-552 CWE-552: Files or Directories Accessible to External Parties"],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","baseScore":6.5,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE"},"exploitabilityScore":2.8,"impactScore":3.6}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-10-20T16:16:51.150771Z","id":"CVE-2026-112948","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"112948","Ordinal":"1","Title":"Vitest: Servers misapply `server.fs.deny`, serving `.env`, priva","CVE":"CVE-2026-112948","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"112948","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"Vitest: Servers misapply `server.fs.deny`, serving `.env`, priva"}]}}}