chore(deps): update dependency vite@>=5.0.0 <5.4.12 to v6 [security] - autoclosed#929
Closed
renovate[bot] wants to merge 1 commit intomasterfrom
Closed
Conversation
68bcec3 to
015b11b
Compare
015b11b to
04ef7fd
Compare
Contributor
Author
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^5.4.12->^6.0.13](https://renovatebot.com/diffs/npm/vite@>=5.0.0 <5.4.12/5.4.12/6.0.13)GitHub Vulnerability Alerts
CVE-2025-30208
Summary
The contents of arbitrary files can be returned to the browser.
Impact
Only apps explicitly exposing the Vite dev server to the network (using
--hostorserver.hostconfig option) are affected.Details
@fsdenies access to files outside of Vite serving allow list. Adding?raw??or?import&raw??to the URL bypasses this limitation and returns the file content if it exists. This bypass exists because trailing separators such as?are removed in several places, but are not accounted for in query string regexes.PoC
CVE-2025-31125
Summary
The contents of arbitrary files can be returned to the browser.
Impact
Only apps explicitly exposing the Vite dev server to the network (using
--hostorserver.hostconfig option) are affected.Details
?inline&import(originally reported as?import&?inline=1.wasm?init)?raw?import/@​fs/isn't needed to reproduce the issue for files inside the project root.PoC
Original report (check details above for simplified cases):
The ?import&?inline=1.wasm?init ending allows attackers to read arbitrary files and returns the file content if it exists. Base64 decoding needs to be performed twice
Example full URL
http://localhost:5173/@​fs/C:/windows/win.ini?import&?inline=1.wasm?initRelease Notes
vitejs/vite (vite@>=5.0.0 <5.4.12)
v6.0.13Compare Source
Please refer to CHANGELOG.md for details.
v6.0.12Compare Source
Please refer to CHANGELOG.md for details.
v6.0.11Compare Source
preview.allowedHostswith specific values was not respected (#19246) (aeb3ec8), closes #19246v6.0.10Compare Source
server.originURL (#19241) (2495022), closes #19241v6.0.9Compare Source
server.allowedHosts(bd896fb)server.cors: falseto disallow fetching from untrusted origins (b09572a)v6.0.8Compare Source
server.close()only called once (#19204) (db81c2d), closes #19204defaultServerConditions(#19174) (ad75c56), closes #19174ESBuildOptions.include / excludetype to allowreadonly (string | RegExp)[](ea53e70), closes #19146v6.0.7Compare Source
minifywhenbuilder.sharedPlugins: true(#19025) (f7b1964), closes #19025vite-ignoreattribute for inline script (#19062) (a492253), closes #19062v6.0.6Compare Source
fetchModule-side resolve (#18361) (9f10261), closes #18361build.target(#19047) (0e9e81f), closes #19047v6.0.5Compare Source
v6.0.4Compare Source
this.resolveskipSelf should not skip for differentidorimport(#18903) (4727320), closes #18903pluginContainer.getModuleInfo(#18895) (258cdd6), closes #18895url()when lightningcss is used (#18997) (3734f80), closes #18997true(#18899) (8a6bb4e), closes #18899handleInvoke(#18902) (27f691b), closes #18902ModuleRunnerTransportinvokeAPI (#18865) (e5f5301), closes #18865v6.0.3Compare Source
ModuleRunnerTransport#invokemore explicit (#18851) (a75fc31), closes #18851environments.ssr.resolvewith rootssrconfig (#18857) (3104331), closes #18857v6.0.2Compare Source
node_modulesif deno (#18823) (a20267b), closes #18823style.cssas a key for the style file forcssCodesplit: false(#18820) (ec51115), closes #18820externalby default (#18821) (2250ffa), closes #18821ssr.target: 'webworker'defaults as fallback (#18827) (b39e696), closes #18827v6.0.1Compare Source
preview.allowedHostswith specific values was not respected (#19246) (aeb3ec8), closes #19246v6.0.0Compare Source
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
file://resolution (#18422) (6a7e313), closes #18422json.stringify: 'auto'and make that the default (#18303) (b80daa7), closes #18303build.cssMinifyto'esbuild'for SSR (#15637) (f1d3bf7), closes #15637fast-globtotinyglobby(#18243) (6f74a3a), closes #18243Features
module-synccondition when loading config if enabled (#18650) (cf5028d), closes #18650isSsrTargetWebWorkerflag toconfigEnvironmenthook (#18620) (3f5fab0), closes #18620ssr.resolve.mainFieldsoption (#18646) (a6f5f5b), closes #18646platformoption (#18611) (0924879), closes #18611mergeWithDefaultsand organize how default values for config options are set ( (0e1f437), closes #18550?inlineand?no-inlinequeries to control inlining (#15454) (9162172), closes #15454vite-ignoreattribute to opt-out of processing (#18494) (d951310), closes #18494consoleincreateLogger(#18379) (0c497d9), closes #18379sec-fetch-destheader to detect JS in transform (#9981) (e51dc40), closes #9981environment::listen(#18263) (4d5f51d), closes #18263this.environmentinoptionsandonLoghook (#18142) (7722c06), closes #18142EnvironmentOptionstype (#18080) (35cf59c), closes #18080Performance
Object.keys(import.meta.glob(...))/ `Object.values(import.meta.glob( (ed99a2c), closes #18666module.enableCompileCache()(#18323) (18f1dad), closes #18323crypto.hashwhen available (#18317) (2a14884), closes #18317Fixes
createRunnableDevEnvironmentreturnsRunnableDevEnvironment, notDevEnvironment(#18673) (74221c3), closes #18673getModulesByFileshould return aserverModule(#18715) (b80d5ec), closes #18715SIGTERM(#18741) (cc55e36), closes #18741InterceptorOptionstype (#18766) (6252c60), closes #18766__vite_ssr_identity__with(0, ...)and inject;between statements (#18748) (94546be), closes #18748allowLinkedExternalparameter fromtryNodeResolve(#18670) (b74d363), closes #18670rollup.externalscripts correctly (#18618) (55461b4), closes #18618ssrTransformparse error (#18644) (d9be921), closes #18644consumer: 'server'(#18575) (87b2347), closes #18575server.perEnvironmentStartEndDuringDev(#18549) (fe30349), closes #18549environmentsOptionsparameter (#18590) (3ef0bf1), closes #18590optimizeDeps.includefor SSR (#18506) (826c81a), closes #18506new URL(,import.meta.url)match (#18194) (5286a90), closes #18194cssCodeSplituses the current environment configuration (#18486) (eefe895), closes #18486json.stringifyarrays (#18541) (fa50b03), closes #18541@import url(...)(#17857) (aec5fdd), closes #17857definein environment config was not working ([#18515](https://redirect.github.com/vitejs/vite/Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.