Websites were able to send any requests to the development server and read the response in vite
- Severity:
- Medium
Description
Vite allowed any websites to send any requests to the development server and read the response due to default CORS settings and lack of validation on the Origin header for WebSocket connections.
Recommendation
Update the vite package to the latest compatible version. Followings are version details:
Affected version(s): **<= 4.5.5 >= 5.0.0, <= 5.4.11 >= 6.0.0, <= 6.0.8** Patched version(s): **4.5.6 5.4.12 6.0.9**
References
Related Issues
- TypeORM vulnerable to SQL injection via crafted request to repository.save or repository.update - CVE-2025-60542
- Vite middleware may serve files starting with the same name with the public directory - CVE-2025-58751
- Vite's `server.fs` settings were not applied to HTML files - CVE-2025-58752
- Vite's server.fs.deny bypassed with /. for files under project root - CVE-2025-46565
- Tags:
- npm
- vite
Anything's wrong? Let us know Last updated on February 07, 2025