Loading advisory.
Loading advisory.
vite allows server.fs.deny bypass via backslash on Windows
Files denied by server.fs.deny were sent if the URL ended with \ when the dev server is running on Windows.
Published 2025-10-20 19:54 UTC · Modified 2026-09-10 03:50 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| vite | npm | >= 7.1.0, < 7.1.11 >= 7.0.0, < 7.0.8 >= 6.0.0, < 6.4.1 >= 2.9.18, < 5.4.21 >= 3.2.9, < 5.4.21 >= 4.5.3, < 5.4.21 >= 5.2.6, < 5.4.21 | 7.1.11, 7.0.8, 6.4.1, 5.4.21 | npm install vite@7.1.11npm install vite@7.0.8npm install vite@6.4.1npm install vite@5.4.21 |
Files denied by server.fs.deny were sent if the URL ended with \ when the dev server is running on Windows.
Only apps that match the following conditions are affected:
explicitly exposes the Vite dev server to the network (using --host or server.host config option)
running the dev server on Windows
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 by using a back slash(\). The root cause is that fs.readFile('/foo.png/') loads /foo.png.
npm create vite@latest
cd vite-project/
cat "secret" > .env
npm install
npm run dev
curl --request-target /.env\ http://localhost:5173<img width="1593" height="616" alt="image" src="https://github.com/user-attachments/assets/36212f4e-1d3c-4686-b16f-16b35ca9e175" />
Exploit code or a detection template for this CVE is published by the sources below. This is not a report of use against real systems (that is what CISA KEV records) and it does not change the tier.
EPSS went from 0.010 on 2026-11-24 to 0.014 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.010 | first score | v2026.06.15 |
| 2026-11-26 | 0.014 | 0.010 | v2026.06.15 |