CVE-2026-118662: vitejs vite · Incorrect Behavior Order: Validate Before Canonicalize
Affects vitejs viteSource CVE Database V5
Not known to be exploited · CVSS 6.9 Medium : upgrade to 6.4.5 when convenient.
Data as of 28 Oct 2026, 21:00 UTC
- Patch
- Available – fixed in 6.4.5
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:H/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 28 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade vite and vitejs/vite to 6.4.5.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| vitejsvite | Affected
| Fixed in
|
npmvitejs/vitepkg:npm/vitejs/viteOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade Vite to version 6.4.5 or later, where this vulnerability is fixed. No other mitigation is required as the fix corrects the order of validation and canonicalization.
Description
Vite versions from 6.4.4 up to but not including 6.4.5 have a vulnerability where the development server improperly orders validation and canonicalization of file system access rules. This allows an unauthenticated attacker to bypass server.fs.deny restrictions by appending certain loader query parameters, potentially accessing sensitive files that should be denied. The issue is fixed in version 6.4.5.
References
- github.com/vitejs/vite/security/advisories/GHSA-8g5g-mxqh-grgj (opens in a new tab)
- github.com/vitejs/vite/pull/22160 (opens in a new tab)
- github.com/vitejs/vite/pull/23855 (opens in a new tab)
- github.com/vitejs/vite/commit/91e40d7bf9777057bbd31c3eb036a54c9465697e (opens in a new tab)
- github.com/vitejs/vite/releases/tag/v6.4.5 (opens in a new tab)