CVEsvitejsCVE-2026-118662Published Oct 28, 20:33 · Updated Oct 28, 20:33 UTC
6.9
MediumCVSS 4.0 · from GitHub_M
CVE-2026-118662

Vite: `server.fs.deny` bypassed with queries

vite · CWE-180 · CWE-180
Affectedvite
FixNo fix listed yet.
PublishedOct 28, 20:33 · GitHub_M
ScoredOct 28 · 6.9 · GitHub_M
Exploit code publicNone known · checked 21:18 UTC
ExploitedNone known · CISA KEV checked 22:04 UTC

What we know

No known exploitation. CISA KEV, checked 22:04 UTC.
No public exploit code known. Exploit-DB, Metasploit, Nuclei, checked 21:18 UTC.
An attacker only needs network access to the target. No login needed. CVSS: network, no privileges.
It only works under certain conditions, which makes it harder to pull off. CVSS: high attack complexity.

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.

From GitHub_M

Affected and fixed versions

ProductAffectedFixed invite>= 6.4.4, < 6.4.5–

Exploit code

Exploit-DBnone knownMetasploitnone knownNucleinone known

References

github.com/vitejs/vite/security/advisories/GHSA-8g5g-mxqh-grgj · github.comrefsource_CONFIRMgithub.com/vitejs/vite/pull/22160 · github.comrefsource_MISCgithub.com/vitejs/vite/pull/23855 · github.comrefsource_MISCgithub.com/vitejs/vite/commit/91e40d7bf9777057bbd31c3eb036a54c9465697e · github.comrefsource_MISCgithub.com/vitejs/vite/releases/tag/v6.4.5 · github.comrefsource_MISC

Other CVEs in vite

All 22 →
6.3Vite: First 4 bytes of files outside of `server.fs` setting is exposed by `?vite-wasm-instance` · CVE-2026-112947Oct 206.3Vite: Files outside `server.fs.allow` could be served when project paths match system paths on non-Windows machine · CVE-2026-112946Oct 202.1Vite: Cross origin script execution through Vite custom middleware · CVE-2026-112945Oct 20