vite
8.3.8 · 11 Nov 2026MIT286.5M / weekRepositoryHomepagenpmAtom feed
6.4.6 is the newest release of 6.x.
Summary· from the note as AI read it
Security fixUpgrade: this release fixes a security issue.
Before you upgrade
- Add custom hostnames to server.allowedHosts if dev server accessed via non-localhost host
- Configure server.cors explicitly if cross-origin requests to dev server are needed
Security
- Upgrade to prevent unauthorized HMR WebSocket connections; check custom HMR clients
In short
2 breaking1 security
- Breaking
check host header to prevent DNS rebinding attacks and introduce
server.allowedHosts - Breaking
default
server.cors: falseto disallow fetching from untrusted origins
Security
Fixes 1 advisory that affected 6.0.8
- ModerateWebsites were able to send any requests to the development server and read the response in viteGHSA-vg6x-rcgg-rjx6 · 21 Jan 2025Fixed in 6.0.9
17 advisories affect 6.0.9; 6.4.4 fixes them
- Highlaunch-editor: `fs.existsSync()` existence check can be bypassed on WindowsGHSA-587h-7wmj-h5pm · 20 Oct 2026Fixed in 6.4.4
- HighVite Vulnerable to Arbitrary File Read via Vite Dev Server WebSocketGHSA-p9ff-h696-f583 · 6 Apr 2026Fixed in 6.4.2
- ModerateVite: Files outside `server.fs.allow` could be served when project paths match system paths on non-Windows machineGHSA-rq7h-c2jc-7f22 · 21 Oct 2026Fixed in 6.4.4
- Moderatelaunch-editor: Editor CLI flag misinterpretation causing arbitrary command execution for some editorsGHSA-r825-w8mm-5pxw · 20 Oct 2026Fixed in 6.4.4
- Moderatelaunch-editor: escapeCmdArgs() omits % escaping on WindowsGHSA-698v-4r3x-3vcv · 20 Oct 2026Fixed in 6.4.4
12 more
- Moderatelaunch-editor: NTLMv2 hash disclosure via UNC path handling on WindowsGHSA-v6wh-96g9-6wx3 · 15 Jun 2026Fixed in 6.4.3
- Moderatevite: `server.fs.deny` bypass on Windows alternate pathsGHSA-fx2h-pf6j-xcff · 15 Jun 2026Fixed in 6.4.3
- ModerateVite Vulnerable to Path Traversal in Optimized Deps `.map` HandlingGHSA-4w7w-66w2-5vf9 · 6 Apr 2026Fixed in 6.4.2
- Moderatevite allows server.fs.deny bypass via backslash on WindowsGHSA-93m4-6634-74q7 · 20 Oct 2025Fixed in 6.4.1
- ModerateVite's server.fs.deny bypassed with /. for files under project rootGHSA-859w-5945-r5v3 · 30 Apr 2025Fixed in 6.3.4
- ModerateVite has an `server.fs.deny` bypass with an invalid `request-target`GHSA-356w-63v5-8wf4 · 11 Apr 2025Fixed in 6.2.6
- ModerateVite allows server.fs.deny to be bypassed with .svg or relative pathsGHSA-xcj6-pq6g-qj4x · 4 Apr 2025Fixed in 6.2.5
- ModerateVite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` queryGHSA-4r4m-qw57-chr8 · 31 Mar 2025Fixed in 6.2.4
- ModerateVite bypasses server.fs.deny when using ?raw??GHSA-x574-m823-4x7w · 25 Mar 2025Fixed in 6.2.3
- LowVite: Cross origin script execution through Vite custom middlewareGHSA-9jrq-w75r-8gcw · 21 Oct 2026Fixed in 6.4.4
- LowVite middleware may serve files starting with the same name with the public directoryGHSA-g4jq-h2w9-997c · 9 Sep 2025Fixed in 6.3.6
- LowVite's `server.fs` settings were not applied to HTML filesGHSA-jqfw-vq24-v9c3 · 9 Sep 2025Fixed in 6.3.6
Release note
The section about vite of a note shared by several packages.
Breaking changes
- Breaking
Check host header to prevent DNS rebinding attacks and introduce
server.allowedHosts - Breaking
Default
server.cors: falseto disallow fetching from untrusted origins
Bug Fixes
Check host header to prevent DNS rebinding attacks and introduce
server.allowedHostsDefault
server.cors: falseto disallow fetching from untrusted originsVerify token for HMR WebSocket connection
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.