Vite Frontend Framework Vulnerability in JavaScript Applications
CVE-2025-46565
Summary
A vulnerability in the Vite frontend framework allows unauthorized access to certain files in the project root directory. This issue can be exploited if the Vite development server is intentionally exposed to the network using the '--host' or 'server.host' configuration options. Files that are normally restricted by matching patterns, such as sensitive configuration files (.env, .env.*, *.{crt,pem}), can be accessed due to a misconfiguration in pattern matching that stems from using a combination of slashes and dots. This vulnerability has been addressed and patched in subsequent releases, ensuring better safeguarding against unauthorized file access.
Affected Version(s)
vite >= 6.3.0, < 6.3.4 < 6.3.0, 6.3.4
vite >= 6.2.0, < 6.2.7 < 6.2.0, 6.2.7
vite >= 6.0.0, < 6.1.6 < 6.0.0, 6.1.6
References
CVSS V4
Timeline
Vulnerability published
Vulnerability Reserved