CVE-2025-46565

Vite's server.fs.deny bypassed with /. for files under project root

MEDIUM
5.3
CVSS Score
Published: May 1, 2025 at 05:20 PM UTC
Updated: June 17, 2026 at 09:26 AM UTC
1 product affected across 1 vendorVite

Using vite by vitejs?

Get instant alerts when new vulnerabilities affect vite - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.3
Exploit prediction
EPSS 1%
SSVC
PoC

Description

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 4.5.14v < 5.4.19v < 6.1.6v < 6.2.7v < 6.3.45.0.0 ≤ v < 5.4.196.0.0 ≤ v < 6.1.66.2.0 ≤ v < 6.2.76.3.0 ≤ v < 6.3.4
Affected range stops below 4.5.14, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.4.19, so it looks safe — our inference, not a vendor statement
Affected range stops below 6.1.6, so it looks safe — our inference, not a vendor statement
Affected range stops below 6.2.7, so it looks safe — our inference, not a vendor statement
Affected range stops below 6.3.4, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

SSVC — Action Prioritization

SSVCPoCNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
LOW
Integrity
NONE
Availability
NONE
Vector?

Quick Info

StatusANALYZED
CWE
CWE-22

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card