Loading advisory.
Loading advisory.
Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query
The contents of arbitrary files can be returned to the browser.
Published 2025-03-31 17:06 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 | >= 6.2.0, < 6.2.4 >= 6.1.0, < 6.1.3 >= 6.0.0, < 6.0.13 >= 5.0.0, < 5.4.16 < 4.5.11 | 6.2.4, 6.1.3, 6.0.13, 5.4.16, 4.5.11 | npm install vite@6.2.4npm install vite@6.1.3npm install vite@6.0.13npm install vite@5.4.16npm install vite@4.5.11 |
The contents of arbitrary files can be returned to the browser.
Only apps explicitly exposing the Vite dev server to the network (using --host or server.host config option) are affected.
base64 encoded content of non-allowed files is exposed using ?inline&import (originally reported as ?import&?inline=1.wasm?init)
content of non-allowed files is exposed using ?raw?import
/@fs/ isn't needed to reproduce the issue for files inside the project root.
Original report (check details above for simplified cases):
The ?import&?inline=1.wasm?init ending allows attackers to read arbitrary files and returns the file content if it exists. Base64 decoding needs to be performed twice
$ npm create vite@latest
$ cd vite-project/
$ npm install
$ npm run devExample full URL http://localhost:5173/@fs/C:/windows/win.ini?import&?inline=1.wasm?init
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.749 on 2026-11-24 to 0.148 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.749 | first score | v2026.06.15 |
| 2026-11-26 | 0.148 | 0.749 | v2026.06.15 |