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
To checkNothing breaks, but check what is deprecated or unsure.
Deprecated
- Stop using the
vite optimizecommand; it will be removed
New
- show hosts in cert in CLI
- support for env var for defining allowed hosts
- use native runtime to import the config
- print
portin the logged error message after failed WS connection withEADDRINUSE - add support for
.jxl
In short
1 deprecated16 new1 faster22 fixed7 internal
- Deprecated
deprecate
vite optimizecommand
Security
17 advisories affect 6.1.0; 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.
Features
Show hosts in cert in CLI
Support for env var for defining allowed hosts
Use native runtime to import the config
Print
portin the logged error message after failed WS connection withEADDRINUSEAdd support for
.jxlAdd the
builtinsenvironmentresolveCall Logger for plugin logs in build
css: add friendly errors for IE hacks that are not supported by lightningcss
Export
defaultAllowedOriginsfor user-land config and 3rd party pluginsExpose createServerModuleRunnerTransport
optimizer: support bun text lockfile
reporter: add
wasmto the compressible assets regexSupport async for proxy.bypass
Support log related functions in dev
Use module runner to import the config
worker: support dynamic worker option fields
Bug Fixes
Avoid builtStart during vite optimize
build: fix stale build manifest on watch rebuild
Allow expanding env vars in reverse order
Avoid packageJson without name in
resolveLibCssFilenamehtml: fix css disorder when building multiple entry html
css: less
[@plugin](https://github.com/plugin)imports of JS files treated as CSS and rebased (fix #19268)deps: update all non-major dependencies
Don't call buildStart hooks for
vite optimizeDon't call next middleware if user sent response in proxy.bypass
resolve: preserve hash/search of file url
resolve: warn if node-like builtin was imported when
resolve.builtinis emptyRespect top-level
server.preTransformRequestsssr: fix transform error due to export all id scope
ssr: pretty print plugin error in
ssrLoadModuleUse
nodeLikeBuiltinsforssr.target: 'webworker'withoutnoExternal: trueChange ResolvedConfig type to interface to allow extending it
Correctly resolve hmr dep ids and fallback to url
deps: update all non-major dependencies
hmr: register inlined assets as a dependency of CSS file
Make
--forcework for all environmentsresolve: support resolving TS files by JS extension specifiers in JS files
ssr: combine empty source mappings
Use loc.file from rollup errors if available
utils: clone
RegExpvalues withnew RegExpinstead ofstructuredClone(fix #19245, fix #18875)
Performance Improvements
css: only run postcss when needed
Code Refactoring
- Deprecated
Deprecate
vite optimizecommand
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.