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
- Check .env variable expansion behaviour with dotenv-expand v12
- Custom resolve.conditions no longer include defaults; add defaultClientConditions explicitly
- More HTML asset sources are now processed; check build output
- Remove the server.fs.cachedChecks option from config
- Proxy bypass is now called for WebSocket requests; check bypass functions
- Use ?inline instead of default-importing CSS in SSR dev
- Library CSS output file is named after package; update references or set build.lib.cssFileName
- chokidar v4 drops glob support in watch options; update server.watch config
New minimums
- Node 21 is no longer supported; use Node 18, 20 or 22+
Security
- Upgrade to get rollup 4.22.4+ fixing an XSS issue
- Upgrade to fix DOM Clobbering XSS gadget in built output
New
- add support for .cur type
- enable HMR by default on ModuleRunner side
- support
module-synccondition when loading config if enabled - add
isSsrTargetWebWorkerflag toconfigEnvironmenthook - add
ssr.resolve.mainFieldsoption
In short
18 breaking4 removed2 security26 new7 faster98 fixed62 internal
- Breaking
deps: update dependency dotenv-expand to v12
- Breaking
resolve: allow removing conditions
- Breaking
html: support more asset sources
- Breaking
proxy bypass with WebSocket
- Breaking
lib: use package name for css output file name
- Breaking
update to chokidar v4
- Breaking
support
file://resolution - Breaking
deps: update postcss-load-config to v6
Security
18 advisories affect 6.0.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
13 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
- 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
- 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.
Vite 6 is out!
Today, we're taking another big step in Vite's story. The Vite team, contributors, and ecosystem partners are excited to announce the release of the next Vite major:
We want to thank the more than 1K contributors to Vite Core and the maintainers and contributors of Vite plugins, integrations, tools, and translations that have helped us craft this new major. We invite you to get involved and help us improve Vite for the whole ecosystem. Learn more at our Contributing Guide.
Breaking changes
- Breaking
Drop node 21 support in version ranges
- Breaking
deps: update dependency dotenv-expand to v12
- Breaking
resolve: allow removing conditions
- Breaking
html: support more asset sources
- Breaking
Remove fs.cachedChecks option
- Breaking
Proxy bypass with WebSocket
- Breaking
css: remove default import in ssr dev
- Breaking
lib: use package name for css output file name
- Breaking
Update to chokidar v4
- Breaking
Support
file://resolution - Breaking
deps: update postcss-load-config to v6
- Breaking
css: change default sass api to modern/modern-compiler
- Breaking
css: load postcss config within workspace root only
- Breaking
Default
build.cssMinifyto'esbuild'for SSR - Breaking
json: add
json.stringify: 'auto'and make that the default - Breaking
Bump minimal terser version to 5.16.0
- Breaking
deps: migrate
fast-globtotinyglobby
Features
Add support for .cur type
- Removed
Drop node 21 support in version ranges
Enable HMR by default on ModuleRunner side
Support
module-synccondition when loading config if enabledAdd
isSsrTargetWebWorkerflag toconfigEnvironmenthookAdd
ssr.resolve.mainFieldsoptionExpose default mainFields/conditions
Extended applyToEnvironment and perEnvironmentPlugin
optimizer: allow users to specify their esbuild
platformoptionShow error when accessing variables not exposed in CJS build
asset: add
?inlineand?no-inlinequeries to control inliningasset: inline svg in dev if within limit
Use a single transport for fetchModule and HMR support
html: support more asset sources
resolve: allow removing conditions
html: support
vite-ignoreattribute to opt-out of processinglib: use package name for css output file name
Log complete config in debug mode
Proxy bypass with WebSocket
Support
file://resolutionUpdate to chokidar v4
Allow custom
consoleincreateLoggercss: add more stricter typing of lightningcss
css: change default sass api to modern/modern-compiler
Read
sec-fetch-destheader to detect JS in transformcss: load postcss config within workspace root only
json: add
json.stringify: 'auto'and make that the defaultAdd .git to deny list by default
Add
environment::listenEnable dependencies discovery and pre-bundling in ssr environments
Restrict characters useable for environment name
Support arbitrary module namespace identifier imports from cjs deps
Introduce RunnableDevEnvironment
Support
this.environmentinoptionsandonLoghookcss: support es2023 build target for lightningcss
Environment API
Expose
EnvironmentOptionstype
Bug Fixes
createRunnableDevEnvironmentreturnsRunnableDevEnvironment, notDevEnvironmentgetModulesByFileshould return aserverModuleCatch error in full reload handler
client: overlay not appearing when multiple vite clients were loaded
deps: update all non-major dependencies
Display pre-transform error details
Exit code on
SIGTERMExpose missing
InterceptorOptionstypehtml: fix inline proxy modules invalidation
Log error when send in module runner failed
module-runner: make evaluator optional
optimizer: detect npm / yarn / pnpm dependency changes correctly
optimizer: trigger onCrawlEnd after manual included deps are registered
optimizer: workaround firefox's false warning for no sources source map
ssr: replace
__vite_ssr_identity__with(0, ...)and inject;between statementsCjs build for perEnvironmentState et al
html: externalize
rollup.externalscripts correctlyInclude more modules to prefix-only module list
ssr: format
ssrTransformparse errorssr: preserve fetchModule error details
Browser field should not be included by default for
consumer: 'server'client: detect ws close correctly
resolve: run ensureVersionQuery for SSR
Use
server.perEnvironmentStartEndDuringDevAllow nested dependency selector to be used for
optimizeDeps.includefor SSRAsset
new URL(,import.meta.url)matchClose watcher if it's disabled
config: write temporary vite config to node_modules
css:
cssCodeSplituses the current environment configurationjson: don't
json.stringifyarraysless: prevent rebasing
[@import](https://github.com/import) url(...)lib: only resolve css bundle name if have styles
scss: improve error logs
definein environment config was not workingbuild: apply resolve.external/noExternal to server environments
config: remove error if require resolve to esm
Consider URLs with any protocol to be external
css: remove default import in ssr dev
Use picomatch to align with tinyglobby
css:
cssCodeSplitinenvironments.xxx.buildis invalidcss: make sass types work with sass-embedded
deps: update all non-major dependencies
Handle warmup glob hang
manifest: non entry CSS chunk src was wrong
module-runner: delay function eval until module runner instantiation
plugins: noop if config hook returns same config reference
Return the same instance of ModuleNode for the same EnvironmentModuleNode
Set scripts imported by HTML moduleSideEffects=true
Use websocket to test server liveness before client reload
Add typing to
CSSOptions.preprocessorOptionsDefault
build.cssMinifyto'esbuild'for SSRdev: prevent double URL encoding in server.open on macOS
preview: set resolvedUrls null after close
ssr: inject identity function at the top
ssr: preserve source maps for hoisted imports (fix #16355)
Augment hash for CSS files to prevent chromium erroring by loading previous files
cli:
--watchshould not overridebuild.watchoptionscss: don't transform sass function calls with namespace
deps: update
opendependency to 10.1.0deps: update all non-major dependencies
More robust plugin.sharedDuringBuild
ssr:
thisin exported function should beundefinedworker: rewrite rollup
output.formatwithworker.formaton worker build errorinjectQuerydouble encodingAdd position to import analysis resolve exception
assets: make srcset parsing HTML spec compliant
css: dont remove JS chunk for pure CSS chunk when the export is used
deps: bump tsconfck
deps: update all non-major dependencies
Destroy the runner when runnable environment is closed
Handle yarn command fail when root does not exist
hmr: don't try to rewrite imports for direct CSS soft invalidation
Make it easier to configure environment runner
middleware-mode: call all hot.listen when server restart
optimizer: don't externalize transitive dep package name with asset extension
resolve: fix resolve cache key for external conditions
resolve: fix resolve cache to consider
conditionsand moretypes: add more overload to
defineConfigAsset import should skip handling data URIs
Cache the runnable environment module runner
Call
this.hot.closefor non-ws HotChannelClose HotChannel on environment close
config: treat all files as ESM on deno
css: ensure sass compiler initialized only once
css: fix lightningcss dep url resolution with custom root
css: fix missing source file warning with sass modern api custom importer
data-uri: only match ids starting with
data:deps: update all non-major dependencies
- Security
deps: upgrade rollup 4.22.4+ to ensure avoiding XSS
html: make build-html plugin work with
sharedPluginsmixedModuleGraph: handle undefined id in getModulesByFile
optimizer: re-optimize when changing config
webCompatibleRequire serialization for
HMRConnection.sendon implementation sidessr: fix source map remapping with multiple sources
Use
config.consumerinstead ofoptions?.ssr/config.build.ssrvite: refactor "module cache" to "evaluated modules", pass down module to "runInlinedModule"
Avoid DOM Clobbering gadget in
getRelativeUrlFromDocumentFs raw query
preload: throw error preloading module as well
Allow scanning exports from
script modulein sveltebuild: declare
preload-helperhas no side effectscss: fallback to mainthread if logger or pkgImporter option is set for sass
dynamicImportVars: correct glob pattern for paths with parentheses
Ensure req.url matches moduleByEtag URL to avoid incorrect 304
html: escape html attribute
Incorrect environment consumer option resolution
preload: allow ignoring dep errors
Store backwards compatible
ssrModuleandssrError
Performance Improvements
Reduce bundle size for
Object.keys(import.meta.glob(...))/Object.values(import.meta.glob(...))worker: inline worker without base64
Remove strip-ansi for a node built-in
css: skip style.css extraction if code-split css
Call
module.enableCompileCache()Use
crypto.hashwhen available
Reverts
Use chokidar v3
Code Refactoring
- Removed
Remove fs.cachedChecks option
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.