The contents of files that are specified by server.fs.deny can be returned to the browser.
Only apps that match the following conditions are affected:
--host or server.host config option)server.fs.allowserver.fs.denyOn 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.
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" />7.3.28.0.5Exploitability
AV:NAC:LAT:PPR:NUI:NVulnerable System
VC:HVI:NVA:NSubsequent System
SC:NSI:NSA:N8.2/CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N