Skip to content

Commit 1bb39b9

Browse files
authoredApr 4, 2025··
chore(deps): update dependency vite to v6.1.4 [security] (#3939)
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [vite](https://vite.dev) ([source](https://redirect.github.com/vitejs/vite/tree/HEAD/packages/vite)) | [`6.1.3` -> `6.1.4`](https://renovatebot.com/diffs/npm/vite/6.1.3/6.1.4) | [![age](https://developer.mend.io/api/mc/badges/age/npm/vite/6.1.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/vite/6.1.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/vite/6.1.3/6.1.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vite/6.1.3/6.1.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | ### GitHub Vulnerability Alerts #### [CVE-2025-31486](https://redirect.github.com/vitejs/vite/security/advisories/GHSA-xcj6-pq6g-qj4x) ### 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](https://vitejs.dev/config/server-options.html#server-host)) 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`](https://vite.dev/config/build-options.html#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 ```bash npm create vite@latest cd vite-project/ npm install npm run dev ``` send request to read `etc/passwd` ```bash curl 'http://127.0.0.1:5173/etc/passwd?.svg?.wasm?init' ``` ```bash curl 'http://127.0.0.1:5173/@&#8203;fs/x/x/x/vite-project/?/../../../../../etc/passwd?import&?raw' ``` --- ### Release Notes <details> <summary>vitejs/vite (vite)</summary> ### [`v6.1.4`](https://redirect.github.com/vitejs/vite/releases/tag/v6.1.4) [Compare Source](https://redirect.github.com/vitejs/vite/compare/v6.1.3...v6.1.4) Please refer to [CHANGELOG.md](https://redirect.github.com/vitejs/vite/blob/v6.1.4/packages/vite/CHANGELOG.md) for details. </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 these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/TanStack/router). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMjcuMyIsInVwZGF0ZWRJblZlciI6IjM5LjIyNy4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 359d19a commit 1bb39b9

File tree

7 files changed

+505
-505
lines changed

7 files changed

+505
-505
lines changed
 

Diff for: ‎examples/react/start-large/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"autoprefixer": "^10.4.20",
3131
"tailwindcss": "^3.4.17",
3232
"typescript": "^5.7.2",
33-
"vite": "6.1.3",
33+
"vite": "6.1.4",
3434
"vite-tsconfig-paths": "^5.1.4"
3535
},
3636
"keywords": [],

Diff for: ‎examples/solid/start-basic/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"solid-js": "^1.9.5",
1616
"redaxios": "^0.5.1",
1717
"tailwind-merge": "^2.6.0",
18-
"vite": "6.1.3",
18+
"vite": "6.1.4",
1919
"vinxi": "0.5.3"
2020
},
2121
"devDependencies": {

Diff for: ‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"rimraf": "^6.0.1",
5858
"tinyglobby": "^0.2.12",
5959
"typescript": "^5.8.2",
60-
"vite": "6.1.3",
60+
"vite": "6.1.4",
6161
"vitest": "^3.0.6",
6262
"typescript53": "npm:typescript@5.3",
6363
"typescript54": "npm:typescript@5.4",

Diff for: ‎packages/directive-functions-plugin/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"babel-dead-code-elimination": "^1.0.10",
7777
"dedent": "^1.5.3",
7878
"tiny-invariant": "^1.3.3",
79-
"vite": "6.1.3"
79+
"vite": "6.1.4"
8080
},
8181
"devDependencies": {
8282
"@types/babel__code-frame": "^7.0.6",

Diff for: ‎packages/react-start-plugin/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"@tanstack/router-utils": "workspace:^",
7676
"babel-dead-code-elimination": "^1.0.10",
7777
"tiny-invariant": "^1.3.3",
78-
"vite": "6.1.3"
78+
"vite": "6.1.4"
7979
},
8080
"devDependencies": {
8181
"@types/babel__code-frame": "^7.0.6",

Diff for: ‎packages/solid-start-plugin/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"@tanstack/router-utils": "workspace:^",
7676
"babel-dead-code-elimination": "^1.0.9",
7777
"tiny-invariant": "^1.3.3",
78-
"vite": "6.1.3"
78+
"vite": "6.1.4"
7979
},
8080
"devDependencies": {
8181
"@types/babel__code-frame": "^7.0.6",

Diff for: ‎pnpm-lock.yaml

+499-499
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.