{"id":"GHSA-8g5g-mxqh-grgj","revision":"287dd88e33db4657b9d9c04a549e8a2b","records":[{"revision":"287dd88e33db4657b9d9c04a549e8a2b","observedAt":"2026-10-29T17:12:42.182+00:00","statement":{"source":"osv","id":"GHSA-8g5g-mxqh-grgj","aliases":["CVE-2026-118662"],"title":"Vite: `server.fs.deny` bypassed with queries","description":"### Summary\n\nThe contents of files that are specified by [`server.fs.deny`](https://vite.dev/config/server-options#server-fs-deny) can be returned to the browser. This is the same as https://github.com/vitejs/vite/security/advisories/GHSA-v2wj-q39q-566r.\n\n### Impact\n\nOnly apps that match the following conditions are affected:\n\n- explicitly exposes the Vite dev server to the network (using `--host` or [`server.host` config option](https://vitejs.dev/config/server-options.html#server-host))\n- the sensitive file exists in the allowed directories specified by [`server.fs.allow`](https://vite.dev/config/server-options#server-fs-allow)\n- the sensitive file is denied with a pattern that matches a file by [`server.fs.deny`](https://vite.dev/config/server-options#server-fs-deny)\n\n### Details\n\nOn 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.\n\nFor the fix for https://github.com/vitejs/vite/security/advisories/GHSA-rq7h-c2jc-7f22, v6.4.4 back-ported https://github.com/vitejs/vite/pull/20410. But while that PR requires https://github.com/vitejs/vite/pull/22160 for https://github.com/vitejs/vite/security/advisories/GHSA-v2wj-q39q-566r, https://github.com/vitejs/vite/pull/22160 wasn't back-ported together causing v6 vulnerable to https://github.com/vitejs/vite/security/advisories/GHSA-v2wj-q39q-566r.","state":0,"publishedAt":"2026-10-29T16:39:56+00:00","modifiedAt":"2026-10-29T16:45:04.3625751+00:00","affected":[{"ecosystem":"npm","name":"vite","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"6.4.4"},{"kind":"fixed","version":"6.4.5"}]}],"versions":["6.4.4"],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:H/SI:N/SA:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/vitejs/vite/security/advisories/GHSA-8g5g-mxqh-grgj","https://nvd.nist.gov/vuln/detail/CVE-2026-118662","https://github.com/vitejs/vite/pull/22160","https://github.com/vitejs/vite/pull/23855","https://github.com/vitejs/vite/commit/91e40d7bf9777057bbd31c3eb036a54c9465697e","https://github.com/vitejs/vite","https://github.com/vitejs/vite/releases/tag/v6.4.5"],"sourceUrl":"https://github.com/advisories/GHSA-8g5g-mxqh-grgj","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-8g5g-mxqh-grgj","identifiers":["GHSA-8g5g-mxqh-grgj","CVE-2026-118662"]},"retained":false,"historicalAffected":[]}],"coverage":[]}