Vulnerability · Published Oct 28, 2026 · Assigned by GitHub_M
CVE-2026-118662Vite: `server.fs.deny` bypassed with queries
Medium 6.9
In plain English
A medium-severity improper access control in vite from vitejs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 22% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | vite | 6.4.5 | GHSA-8g5g-mxqh-grgj |
Affected products (as reported)
Weakness: CWE-180, CWE-284 · 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
References
- https://github.com/vitejs/vite/security/advisories/GHSA-8g5g-mxqh-grgj x_refsource_CONFIRM
- https://github.com/vitejs/vite/pull/22160 x_refsource_MISC
- https://github.com/vitejs/vite/pull/23855 x_refsource_MISC
- https://github.com/vitejs/vite/commit/91e40d7bf9777057bbd31c3eb036a54c9465697e x_refsource_MISC
- https://github.com/vitejs/vite/releases/tag/v6.4.5 x_refsource_MISC