{"id":"CVE-2026-118662","aliases":["CVE-2026-118662","GHSA-8g5g-mxqh-grgj"],"related":[],"kind":"vulnerability","state":"published","title":"Vite: `server.fs.deny` bypassed with queries","summary":"Vite is a frontend tooling framework for JavaScript. From 6.4.4 until 6.4.5, the Vite development server can evaluate server.fs.deny before stripping loader query parameters such as ?raw, ?import&raw, or ?import&url&inline. When the development server is exposed to the network and a sensitive file is inside server.fs.allow but matched by server.fs.deny, an unauthenticated attacker can append one of these queries and retrieve the denied file. This issue is fixed in version 6.4.5.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Vite is a frontend tooling framework for JavaScript. From 6.4.4 until 6.4.5, the Vite development server can evaluate server.fs.deny before stripping loader query parameters such as ?raw, ?import&raw, or ?import&url&inline. When the development server is exposed to the network and a sensitive file is inside server.fs.allow but matched by server.fs.deny, an unauthenticated attacker can append one of these queries and retrieve the denied file. This issue is fixed in version 6.4.5.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"}],"published":"2026-10-28T20:33:36.440Z","modified":"2026-11-03T00:17:17.343Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","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":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","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":6.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"MEDIUM"}],"cwes":["CWE-180","CWE-284"],"affected":[{"ranges":[{"version":">= 6.4.4, < 6.4.5","status":"affected"}],"vendor":"vitejs","product":"vite","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"6.4.4","status":"affected","fixed":"6.4.5"}],"ecosystem":"npm","package":"vite","purl":"pkg:npm/vite","source":"ghsa"}],"references":[{"url":"https://github.com/vitejs/vite/security/advisories/GHSA-8g5g-mxqh-grgj","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/vitejs/vite/pull/22160","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/vitejs/vite/pull/23855","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/vitejs/vite/commit/91e40d7bf9777057bbd31c3eb036a54c9465697e","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/vitejs/vite/releases/tag/v6.4.5","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-118662","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/vitejs/vite","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-11-02T23:56:51.165Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-118662","url":"https://www.cve.org/CVERecord?id=CVE-2026-118662","licence":"CVE Terms of Use","modified":"2026-11-02T23:57:05.251Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8g5g-mxqh-grgj","url":"https://github.com/advisories/GHSA-8g5g-mxqh-grgj","licence":"CC-BY-4.0","modified":"2026-10-29T16:45:04.362Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-118662","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-118662","licence":"Public domain","modified":"2026-11-03T00:17:17.343Z"}],"updatedAt":"2026-11-25T22:59:47.692Z","epss":{"score":0.00398,"percentile":0.3619,"date":"2026-12-01T12:00:22.000Z"}}