CVE-2025-46565

MEDIUMCVSS 5.3/10EPSS 1.08%

Last modified

CVE-2025-46565 is a medium-severity vulnerability rated 5.3/10 on the CVSS scale. 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. EPSS estimates a 1.08% chance of exploitation in the next 30 days.

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.

Metrics

Weakness Enumeration

Affected Software

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

References

Timeline

Published
Last Modified
Status
Analyzed

Frequently Asked Questions

What is CVE-2025-46565?
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.
How severe is CVE-2025-46565?
CVE-2025-46565 has a CVSS score of 5.3/10 (MEDIUM severity). The EPSS model estimates a 1.08% probability of exploitation in the next 30 days.
How do I fix CVE-2025-46565?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

How Strix Helps

Related CVEs from 2025

Are you affected by CVE-2025-46565?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST