Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-112948

published medium CVSS 3.1 · 6.5

Vitest: Servers misapply `server.fs.deny`, serving `.env`, private keys, `.git`, and the API token file

Published
20 Oct 2026, 15:15:01 UTC
Updated
20 Oct 2026, 16:16:59 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
vitest-dev — vitest>= 5.0.0-beta.6, < 5.0.5 Affected Not stated GitHub_M
@vitest — browser>= 5.0.0-beta.6, < 5.0.5 Affected Not stated GitHub_M
@vitest — ui>= 5.0.0-beta.6, < 5.0.5 Affected Not stated GitHub_M
vitejs — vite-plus>= 1.0.0-rc.0, < 1.3.0 Affected Not stated GitHub_M

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.

en · GitHub_M · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
6.5 / 10
Severity
medium
Provider
GitHub_M · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
vitest-dev vitest >= 5.0.0-beta.6, < 5.0.5 (affected) GitHub_M · cna
@vitest browser >= 5.0.0-beta.6, < 5.0.5 (affected) GitHub_M · cna
@vitest ui >= 5.0.0-beta.6, < 5.0.5 (affected) GitHub_M · cna
vitejs vite-plus >= 1.0.0-rc.0, < 1.3.0 (affected) GitHub_M · cna

Weaknesses

2
  • CWE-200 CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (GitHub_M · cna)
  • CWE-552 CWE-552: Files or Directories Accessible to External Parties (GitHub_M · cna)

References

4

Provider assertions

2

GitHub_M · cna

Vitest: Servers misapply `server.fs.deny`, serving `.env`, private keys, `.git`, and the API token file

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
a742dd4ea30c40006379c3a3df078fb3edfa4ff8ee49f549e3c789df992183ca
Ingested
20 Oct 2026, 16:36:14 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected