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
- Stop using keepProcessEnv in DefaultEnvironmentOptions types
Security
- Dev server fs.deny bypass via svg/relative paths fixed; upgrade
- Dev server now rejects '#' in request-target, closing fs bypass
- Transform middleware now enforces fs checks; upgrade dev servers
- Raw query fs.deny bypass with query separators fixed; upgrade
New
- env: add false option for envDir to disable env loading
- types: make CustomPluginOptionsVite backward compatible
- config: improve bad character warning
- css: support preprocessor with lightningcss
- implement hook filters
In short
1 removed4 security10 new2 faster17 fixed9 internal
- Removed
types: remove the
keepProcessEnvfrom theDefaultEnvironmentOptionstype - Security
fs check with svg and relative paths
- Security
reject requests with
#in request-target - Security
fs check in transform middleware
- Security
fs raw query with query separators
Security
13 advisories affect 6.3.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
8 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
- 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
env: add false option for envDir to disable env loading
types: make CustomPluginOptionsVite backward compatible
config: improve bad character warning
css: support preprocessor with lightningcss
experimental: add fetchable environment interface
Implement hook filters
types: expose
CustomPluginOptionsVitetypetypes: make ImportMetaEnv strictly available
types: type hints for hmr events
Warn if
define['process.env']containspathkey with a value
Bug Fixes
hmr: avoid infinite loop happening with
hot.invalidatein circular depspreview: use host url to open browser
addWatchFile doesn't work if base is specified (fixes #19792)
Correct the behavior when multiple transform filter options are specified
css: remove empty chunk imports correctly when chunk file name contained special characters
dev: make query selector regexes more inclusive (fix #19213)
Fs check with svg and relative paths
hmr: run HMR handler sequentially
Keep entry asset files imported by other files
module-runner: allow already resolved id as entry
Reject requests with
#in request-targettypes: remove the
keepProcessEnvfrom theDefaultEnvironmentOptionstypeUnbundle
fdirto fixcommonjsOptions.dynamicRequireTargetsAlign plugin hook filter behavior with pluginutils
Fs check in transform middleware
hmr: throw non-standard error info causes logical error
Add back
.mtsto defaultresolve.extensionscss: parse image-set without space after comma correctly
css: scoped css order with non-scoped css
deps: update all non-major dependencies
Fs raw query with query separators
optimizer: fix incorrect picomatch usage in filter()
ssr: hoist export to handle cyclic import better
Performance Improvements
css: avoid constructing
renderedModulesOnly bundle node version
debug
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.