vite
Affected
- introduced
8.0.0, fixed8.0.5(semver)
Fixed versions
8.0.5
Fix
- Fixed version
8.0.5npm install [email protected]
Advisory
Also known as: CVE-2026-39364
Vite: server.fs.deny bypassed with queries
Summary
The contents of files that are specified by `server.fs.deny` can be returned to the browser.
Impact
Only apps that match the following conditions are affected:
--host or `server.host` config option)Details
On the Vite dev server, files that should be blocked by server.fs.deny (e.g., .env, *.crt) can be retrieved with HTTP 200 responses when query parameters such as ?raw, ?import&raw, or ?import&url&inline are appended.
PoC
pnpm exec vite root --host 127.0.0.1 --port 5175 --strictPortserver.fs.deny is enforced (expect 403): curl -i http://127.0.0.1:5175/src/.env | head -n 20 <img width="3944" height="1092" alt="image" src="https://github.com/user-attachments/assets/ecb9f2e0-e08f-4ac7-b194-e0f988c4cd4f" />High Basis: The source's own band: HIGH
8.0.0, fixed 8.0.5 (semver)8.0.5
8.0.5npm install [email protected]7.1.0, fixed 7.3.2 (semver)7.3.2
7.3.2npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0