Description
The contents of arbitrary files can be returned to the browser.
Recommendation
Update the vite package to the latest compatible version. Followings are version details:
Affected version(s): **< 4.5.10 >= 5.0.0, < 5.4.15 >= 6.0.0, < 6.0.12 >= 6.1.0, < 6.1.2 >= 6.2.0, < 6.2.3** Patched version(s): **4.5.10 5.4.15 6.0.12 6.1.2 6.2.3**
References
Related Issues
- Vite's `server.fs.deny` is bypassed when using `?import&raw` - CVE-2024-45811
- Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query - CVE-2025-31125
- Vite allows server.fs.deny to be bypassed with .svg or relative paths - CVE-2025-31486
- Vite Server Options (server.fs.deny) can be bypassed using double forward-slash (//) - CVE-2023-34092
- Tags:
- npm
- vite
Anything's wrong? Let us know Last updated on March 25, 2025