Live threats

All CVEs / Vitejs

CVE-2025-46565Vitejs Vite

Medium 6.0 No auth needed

Priority
51
CVSS 4.0
6.0
EPSS
—
Auth required
No
Published
May 1, 2025
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

Vite is a frontend tooling framework for javascript. Prior to versions 6.3.4, 6.2.7, 6.1.6, 5.4.19, and 4.5.14, the contents of files in the project root that are denied by a file matching pattern can be returned to the browser. Only apps explicitly exposing the Vite dev server to the network (using --host or server.host config option) are affected. Only files that are under project root and are denied by a file matching pattern can be bypassed. `server.fs.deny` can contain patterns matching against files (by default it includes .env, .env.*, *.{crt,pem} as such patterns). These patterns were able to bypass for files under `root` by using a combination of slash and dot (/.). This issue has been patched in versions 6.3.4, 6.2.7, 6.1.6, 5.4.19, and 4.5.14.

Original NVD text.

What to do

  1. Apply the vendor's security update for Vite.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm vite ≥ 6.3.0 < 6.3.4 6.3.4 npm install vite@6.3.4
npm vite ≥ 6.2.0 < 6.2.7 6.2.7 npm install vite@6.2.7
npm vite ≥ 6.0.0 < 6.1.6 6.1.6 npm install vite@6.1.6
npm vite ≥ 5.0.0 < 5.4.19 5.4.19 npm install vite@5.4.19
npm vite < 4.5.14 4.5.14 npm install vite@4.5.14

Per OSV / GitHub Advisories (GHSA-859w-5945-r5v3). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
vitejsvite< 4.5.14
vitejsvite≥ 5.0.0 < 5.4.19
vitejsvite≥ 6.0.0 < 6.1.6
vitejsvite≥ 6.2.0 < 6.2.7
vitejsvite≥ 6.3.0 < 6.3.4

Official sources

References

Links published by the sources. Open them with care.