نسخههای متأثر
- نسخههای متأثر
- >= 8.0.0, <= 8.0.4
- نسخهٔ اصلاحشده
- 8.0.5
- نسخههای متأثر
- >= 7.1.0, <= 7.3.1
- نسخهٔ اصلاحشده
- 7.3.2
- نسخههای متأثر
- نامشخص
- نسخهٔ اصلاحشده
- اعلام نشده
- نسخههای متأثر
- نامشخص
- نسخهٔ اصلاحشده
- اعلام نشده
- نسخههای متأثر
- نامشخص
- نسخهٔ اصلاحشده
- اعلام نشده
- نسخههای متأثر
- نامشخص
- نسخهٔ اصلاحشده
- اعلام نشده
- نسخههای متأثر
- نامشخص
- نسخهٔ اصلاحشده
- اعلام نشده
- نسخههای متأثر
- نامشخص
- نسخهٔ اصلاحشده
- اعلام نشده
- نسخههای متأثر
- نامشخص
- نسخهٔ اصلاحشده
- اعلام نشده
- نسخههای متأثر
- نامشخص
- نسخهٔ اصلاحشده
- اعلام نشده
بهرهبرداری
شرح آسیبپذیری
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:
explicitly exposes the Vite dev server to the network (using
--hostorserver.hostconfig option)the sensitive file exists in the allowed directories specified by
server.fs.allowthe sensitive file is denied with a pattern that matches a file by
server.fs.deny
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
Start the dev server:
pnpm exec vite root --host 127.0.0.1 --port 5175 --strictPortConfirm that
server.fs.denyis enforced (expect 403):curl -i http://127.0.0.1:5175/src/.env | head -n 20Confirm that the same files can be retrieved with query parameters (expect 200):
پیوندها
- https://github.com/advisories/GHSA-v2wj-q39q-566r
- https://github.com/vitejs/vite
- https://github.com/vitejs/vite/commit/a9a3df299378d9cbc5f069e3536a369f8188c8ff
- https://github.com/vitejs/vite/pull/22160
- https://github.com/vitejs/vite/releases/tag/v7.3.2
- https://github.com/vitejs/vite/releases/tag/v8.0.5
- https://github.com/vitejs/vite/security/advisories/GHSA-v2wj-q39q-566r
- https://nvd.nist.gov/vuln/detail/CVE-2026-39364
گزارشدهندگان
- odgrso
- ritikchaddha
- neo-ai-engineer
- instantraaamen
- fg0x0
- jonathanwd
- kq5y
- bluwy

