CVE-2025-46565
May 01, 2025
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.
Affected Packages
https://github.com/vitejs/vite.git (GITHUB):
Affected version(s) >=v6.2.0 <v6.2.7Fix Suggestion:
Update to version v6.2.7https://github.com/vitejs/vite.git (GITHUB):
Affected version(s) >=v5.0.0 <v5.4.19Fix Suggestion:
Update to version v5.4.19https://github.com/vitejs/vite.git (GITHUB):
Affected version(s) >=v6.3.0 <v6.3.4Fix Suggestion:
Update to version v6.3.4https://github.com/vitejs/vite.git (GITHUB):
Affected version(s) >=v6.0.0 <v6.1.6Fix Suggestion:
Update to version v6.1.6https://github.com/vitejs/vite.git (GITHUB):
Affected version(s) >=v1.0.0-rc.5 <v4.5.14Fix Suggestion:
Update to version v4.5.14vite (NPM):
Affected version(s) >=5.0.0 <5.4.19Fix Suggestion:
Update to version 5.4.19vite (NPM):
Affected version(s) >=6.0.0 <6.1.6Fix Suggestion:
Update to version 6.1.6vite (NPM):
Affected version(s) >=0.1.0 <4.5.14Fix Suggestion:
Update to version 4.5.14vite (NPM):
Affected version(s) >=6.3.0 <6.3.4Fix Suggestion:
Update to version 6.3.4vite (NPM):
Affected version(s) >=6.2.0 <6.2.7Fix Suggestion:
Update to version 6.2.7Related ResourcesĀ (4)
Do you need more information?
Contact UsCVSS v4
Base Score:
6
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
PRESENT
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
LOW
Integrity
NONE
Availability
NONE
Weakness Type (CWE)
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
EPSS
Base Score:
0.60