vite allows server.fs.deny bypass via backslash on Windows
vitejs vite
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| vite npm |
|
|
vitejs vite
| Product | Affected | Fixed in |
|---|---|---|
| vite npm |
|
|
7.0.86.4.15.4.21Vite is a frontend tooling framework for JavaScript. In versions from 2.9.18 to before 3.0.0, 3.2.9 to before 4.0.0, 4.5.3 to before 5.0.0, 5.2.6 to before 5.4.21, 6.0.0 to before 6.4.1, 7.0.0 to before 7.0.8, and 7.1.0 to before 7.1.11, files denied by server.fs.deny were sent if the URL ended with \ when the dev server is running on Windows. Only apps explicitly exposing the Vite dev server to the network and running the dev server on Windows were affected. This issue has been patched in versions 5.4.21, 6.4.1, 7.0.8, and 7.1.11.
From the CVE record · GitHub_M
Vite's dev server on Windows could send files denied by server.fs.deny when a request URL ended with a backslash. This affected only apps that explicitly exposed the dev server to the network; no authentication or user interaction requirement is specified.
Teams running the npm vite package on Windows with a network-exposed dev server should check versions 2.9.18 to before 3.0.0, 3.2.9 to before 4.0.0, 4.5.3 to before 5.0.0, 5.2.6 to before 5.4.21, 6.0.0 to before 6.4.1, 7.0.0 to before 7.0.8, and 7.1.0 to before 7.1.11.