Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency vite to v6.2.5 [security] #2154

Merged
merged 1 commit into from
Apr 4, 2025

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 4, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
vite (source) 6.1.3 -> 6.2.5 age adoption passing confidence

GitHub Vulnerability Alerts

CVE-2025-31486

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 --host or server.host config option) are affected..

Details

.svg

Requests ending with .svg are loaded at this line.
https://github.com/vitejs/vite/blob/037f801075ec35bb6e52145d659f71a23813c48f/packages/vite/src/node/plugins/asset.ts#L285-L290
By adding ?.svg with ?.wasm?init or with sec-fetch-dest: script header, the restriction was able to bypass.

This bypass is only possible if the file is smaller than build.assetsInlineLimit (default: 4kB) and when using Vite 6.0+.

relative paths

The check was applied before the id normalization. This allowed requests to bypass with relative paths (e.g. ../../).

PoC

npm create vite@latest
cd vite-project/
npm install
npm run dev

send request to read etc/passwd

curl 'http://127.0.0.1:5173/etc/passwd?.svg?.wasm?init'
curl 'http://127.0.0.1:5173/@​fs/x/x/x/vite-project/?/../../../../../etc/passwd?import&?raw'

Release Notes

vitejs/vite (vite)

v6.2.5

Compare Source

Please refer to CHANGELOG.md for details.

v6.2.4

Compare Source

Please refer to CHANGELOG.md for details.

v6.2.3

Compare Source

Please refer to CHANGELOG.md for details.

v6.2.2

Compare Source

v6.2.1

Compare Source

v6.2.0

Compare Source

v6.1.4

Compare Source

Please refer to CHANGELOG.md for details.


Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the Type: Dependency Dependencies fixes label Apr 4, 2025
Copy link

cloudflare-workers-and-pages bot commented Apr 4, 2025

Deploying vue-i18n-next with  Cloudflare Pages  Cloudflare Pages

Latest commit: f6d0533
Status: ✅  Deploy successful!
Preview URL: https://a93d845f.vue-i18n-next.pages.dev
Branch Preview URL: https://renovate-npm-vite-vulnerabil.vue-i18n-next.pages.dev

View logs

Copy link

github-actions bot commented Apr 4, 2025

Size Report

Bundles

File Size Gzip Brotli
core.esm-browser.prod.js 37.81 kB 11.57 kB 10.32 kB
core.global.prod.js 30.98 kB 10.72 kB 9.65 kB
core.runtime.esm-browser.prod.js 23.53 kB 7.66 kB 6.84 kB
core.runtime.global.prod.js 17.96 kB 6.99 kB 6.28 kB
message-compiler.esm-browser.prod.js 19.29 kB 5.76 kB 5.14 kB
message-compiler.global.prod.js 17.32 kB 5.55 kB 4.98 kB
petite-vue-i18n-core.esm-browser.prod.js 20.21 kB 6.79 kB 6.14 kB
petite-vue-i18n-core.global.prod.js 15.49 kB 5.99 kB 5.43 kB
petite-vue-i18n.esm-browser.prod.js 36.71 kB 11.27 kB 10.11 kB
petite-vue-i18n.global.prod.js 29.72 kB 10.12 kB 9.15 kB
petite-vue-i18n.runtime.esm-browser.prod.js 22.28 kB 7.27 kB 6.56 kB
petite-vue-i18n.runtime.global.prod.js 16.71 kB 6.36 kB 5.76 kB
vue-i18n.esm-browser.prod.js 50.31 kB 15.06 kB 13.46 kB
vue-i18n.global.prod.js 40.36 kB 13.53 kB 12.18 kB
vue-i18n.runtime.esm-browser.prod.js 35.88 kB 11.06 kB 9.94 kB
vue-i18n.runtime.global.prod.js 27.35 kB 9.79 kB 8.85 kB

Usages

Name Size Gzip Brotli
packages/size-check-core (@intlify/core) 9.04 kB 3.72 kB 3.39 kB
packages/size-check-petite-vue-i18n (petite-vue-i18n) 77.51 kB 30.19 kB 27.19 kB
packages/size-check-vue-i18n (vue-i18n) 82.59 kB 31.62 kB 28.50 kB

Copy link

pkg-pr-new bot commented Apr 4, 2025

Open in StackBlitz

@intlify/core

npm i https://pkg.pr.new/@intlify/core@2154

@intlify/core-base

npm i https://pkg.pr.new/@intlify/core-base@2154

@intlify/devtools-types

npm i https://pkg.pr.new/@intlify/devtools-types@2154

@intlify/message-compiler

npm i https://pkg.pr.new/@intlify/message-compiler@2154

@intlify/shared

npm i https://pkg.pr.new/@intlify/shared@2154

petite-vue-i18n

npm i https://pkg.pr.new/petite-vue-i18n@2154

vue-i18n

npm i https://pkg.pr.new/vue-i18n@2154

@intlify/vue-i18n-core

npm i https://pkg.pr.new/@intlify/vue-i18n-core@2154

commit: 1c5d5c6

@renovate renovate bot changed the title chore(deps): update dependency vite to v6.1.4 [security] chore(deps): update dependency vite to v6.2.5 [security] Apr 4, 2025
@renovate renovate bot merged commit 516f572 into master Apr 4, 2025
30 checks passed
@renovate renovate bot deleted the renovate/npm-vite-vulnerability branch April 4, 2025 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Dependency Dependencies fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants