Skip to content

Commit

Permalink
chore: bump up vite version to v5.0.13 [SECURITY] (#6455)
Browse files Browse the repository at this point in the history
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [vite](https://vitejs.dev) ([source](https://togithub.com/vitejs/vite/tree/HEAD/packages/vite)) | [`5.0.12` -> `5.0.13`](https://renovatebot.com/diffs/npm/vite/5.0.12/5.0.13) | [![age](https://developer.mend.io/api/mc/badges/age/npm/vite/5.0.13?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/vite/5.0.13?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/vite/5.0.12/5.0.13?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vite/5.0.12/5.0.13?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

### GitHub Vulnerability Alerts

#### [CVE-2024-31207](https://togithub.com/vitejs/vite/security/advisories/GHSA-8jhw-289h-jh2g)

### Summary
[Vite dev server option](https://vitejs.dev/config/server-options.html#server-fs-deny) `server.fs.deny` did not deny requests for patterns with directories. An example of such a pattern is `/foo/**/*`.

### Impact
Only apps setting a custom `server.fs.deny` that includes a pattern with directories, and 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.

### Patches
Fixed in vite@5.2.6, vite@5.1.7, vite@5.0.13, vite@4.5.3, vite@3.2.10, vite@2.9.18

### Details
`server.fs.deny` uses picomatch with the config of `{ matchBase: true }`. [matchBase](https://togithub.com/micromatch/picomatch/blob/master/README.md#options:~:text=Description-,basename,-boolean) only matches the basename of the file, not the path due to a bug ([https://github.com/micromatch/picomatch/issues/89](https://togithub.com/micromatch/picomatch/issues/89)). The vite config docs read like you should be able to set fs.deny to glob with picomatch. Vite also does not set `{ dot: true }` and that causes [dotfiles not to be denied](https://togithub.com/micromatch/picomatch/blob/master/README.md#options:~:text=error%20is%20thrown.-,dot,-boolean) unless they are explicitly defined.

**Reproduction**

Set fs.deny to `['**/.git/**']` and then curl for `/.git/config`.

* with `matchBase: true`, you can get any file under  `.git/` (config, HEAD, etc).
* with `matchBase: false`, you cannot get any file under  `.git/` (config, HEAD, etc).

---

### Release Notes

<details>
<summary>vitejs/vite (vite)</summary>

### [`v5.0.13`](https://togithub.com/vitejs/vite/releases/tag/v5.0.13)

[Compare Source](https://togithub.com/vitejs/vite/compare/v5.0.12...v5.0.13)

Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/v5.0.13/packages/vite/CHANGELOG.md) for details.

</details>

---

### 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.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/toeverything/AFFiNE).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjkuMiIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4yIiwidGFyZ2V0QnJhbmNoIjoiY2FuYXJ5In0=-->
  • Loading branch information
renovate[bot] committed Apr 8, 2024
1 parent 4736776 commit c4d4b1c
Showing 1 changed file with 101 additions and 70 deletions.
171 changes: 101 additions & 70 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11091,86 +11091,107 @@ __metadata:
languageName: node
linkType: hard

"@rollup/rollup-android-arm-eabi@npm:4.6.1":
version: 4.6.1
resolution: "@rollup/rollup-android-arm-eabi@npm:4.6.1"
"@rollup/rollup-android-arm-eabi@npm:4.14.0":
version: 4.14.0
resolution: "@rollup/rollup-android-arm-eabi@npm:4.14.0"
conditions: os=android & cpu=arm
languageName: node
linkType: hard

"@rollup/rollup-android-arm64@npm:4.6.1":
version: 4.6.1
resolution: "@rollup/rollup-android-arm64@npm:4.6.1"
"@rollup/rollup-android-arm64@npm:4.14.0":
version: 4.14.0
resolution: "@rollup/rollup-android-arm64@npm:4.14.0"
conditions: os=android & cpu=arm64
languageName: node
linkType: hard

"@rollup/rollup-darwin-arm64@npm:4.6.1":
version: 4.6.1
resolution: "@rollup/rollup-darwin-arm64@npm:4.6.1"
"@rollup/rollup-darwin-arm64@npm:4.14.0":
version: 4.14.0
resolution: "@rollup/rollup-darwin-arm64@npm:4.14.0"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard

"@rollup/rollup-darwin-x64@npm:4.6.1":
version: 4.6.1
resolution: "@rollup/rollup-darwin-x64@npm:4.6.1"
"@rollup/rollup-darwin-x64@npm:4.14.0":
version: 4.14.0
resolution: "@rollup/rollup-darwin-x64@npm:4.14.0"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard

"@rollup/rollup-linux-arm-gnueabihf@npm:4.6.1":
version: 4.6.1
resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.6.1"
"@rollup/rollup-linux-arm-gnueabihf@npm:4.14.0":
version: 4.14.0
resolution: "@rollup/rollup-linux-arm-gnueabihf@npm:4.14.0"
conditions: os=linux & cpu=arm
languageName: node
linkType: hard

"@rollup/rollup-linux-arm64-gnu@npm:4.6.1":
version: 4.6.1
resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.6.1"
"@rollup/rollup-linux-arm64-gnu@npm:4.14.0":
version: 4.14.0
resolution: "@rollup/rollup-linux-arm64-gnu@npm:4.14.0"
conditions: os=linux & cpu=arm64 & libc=glibc
languageName: node
linkType: hard

"@rollup/rollup-linux-arm64-musl@npm:4.6.1":
version: 4.6.1
resolution: "@rollup/rollup-linux-arm64-musl@npm:4.6.1"
"@rollup/rollup-linux-arm64-musl@npm:4.14.0":
version: 4.14.0
resolution: "@rollup/rollup-linux-arm64-musl@npm:4.14.0"
conditions: os=linux & cpu=arm64 & libc=musl
languageName: node
linkType: hard

"@rollup/rollup-linux-x64-gnu@npm:4.6.1":
version: 4.6.1
resolution: "@rollup/rollup-linux-x64-gnu@npm:4.6.1"
"@rollup/rollup-linux-powerpc64le-gnu@npm:4.14.0":
version: 4.14.0
resolution: "@rollup/rollup-linux-powerpc64le-gnu@npm:4.14.0"
conditions: os=linux & cpu=ppc64le & libc=glibc
languageName: node
linkType: hard

"@rollup/rollup-linux-riscv64-gnu@npm:4.14.0":
version: 4.14.0
resolution: "@rollup/rollup-linux-riscv64-gnu@npm:4.14.0"
conditions: os=linux & cpu=riscv64 & libc=glibc
languageName: node
linkType: hard

"@rollup/rollup-linux-s390x-gnu@npm:4.14.0":
version: 4.14.0
resolution: "@rollup/rollup-linux-s390x-gnu@npm:4.14.0"
conditions: os=linux & cpu=s390x & libc=glibc
languageName: node
linkType: hard

"@rollup/rollup-linux-x64-gnu@npm:4.14.0":
version: 4.14.0
resolution: "@rollup/rollup-linux-x64-gnu@npm:4.14.0"
conditions: os=linux & cpu=x64 & libc=glibc
languageName: node
linkType: hard

"@rollup/rollup-linux-x64-musl@npm:4.6.1":
version: 4.6.1
resolution: "@rollup/rollup-linux-x64-musl@npm:4.6.1"
"@rollup/rollup-linux-x64-musl@npm:4.14.0":
version: 4.14.0
resolution: "@rollup/rollup-linux-x64-musl@npm:4.14.0"
conditions: os=linux & cpu=x64 & libc=musl
languageName: node
linkType: hard

"@rollup/rollup-win32-arm64-msvc@npm:4.6.1":
version: 4.6.1
resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.6.1"
"@rollup/rollup-win32-arm64-msvc@npm:4.14.0":
version: 4.14.0
resolution: "@rollup/rollup-win32-arm64-msvc@npm:4.14.0"
conditions: os=win32 & cpu=arm64
languageName: node
linkType: hard

"@rollup/rollup-win32-ia32-msvc@npm:4.6.1":
version: 4.6.1
resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.6.1"
"@rollup/rollup-win32-ia32-msvc@npm:4.14.0":
version: 4.14.0
resolution: "@rollup/rollup-win32-ia32-msvc@npm:4.14.0"
conditions: os=win32 & cpu=ia32
languageName: node
linkType: hard

"@rollup/rollup-win32-x64-msvc@npm:4.6.1":
version: 4.6.1
resolution: "@rollup/rollup-win32-x64-msvc@npm:4.6.1"
"@rollup/rollup-win32-x64-msvc@npm:4.14.0":
version: 4.14.0
resolution: "@rollup/rollup-win32-x64-msvc@npm:4.14.0"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard
Expand Down Expand Up @@ -14075,7 +14096,7 @@ __metadata:
languageName: node
linkType: hard

"@types/estree@npm:*, @types/estree@npm:^1.0.0, @types/estree@npm:^1.0.5":
"@types/estree@npm:*, @types/estree@npm:1.0.5, @types/estree@npm:^1.0.0, @types/estree@npm:^1.0.5":
version: 1.0.5
resolution: "@types/estree@npm:1.0.5"
checksum: 10/7de6d928dd4010b0e20c6919e1a6c27b61f8d4567befa89252055fad503d587ecb9a1e3eab1b1901f923964d7019796db810b7fd6430acb26c32866d126fd408
Expand Down Expand Up @@ -20601,7 +20622,7 @@ __metadata:
languageName: node
linkType: hard

"esbuild@npm:^0.19.3, esbuild@npm:esbuild@~0.17.6 || ~0.18.0 || ~0.19.0":
"esbuild@npm:esbuild@~0.17.6 || ~0.18.0 || ~0.19.0":
version: 0.19.12
resolution: "esbuild@npm:0.19.12"
dependencies:
Expand Down Expand Up @@ -30272,14 +30293,14 @@ __metadata:
languageName: node
linkType: hard

"postcss@npm:^8.4.32, postcss@npm:^8.4.33":
version: 8.4.35
resolution: "postcss@npm:8.4.35"
"postcss@npm:^8.4.33, postcss@npm:^8.4.38":
version: 8.4.38
resolution: "postcss@npm:8.4.38"
dependencies:
nanoid: "npm:^3.3.7"
picocolors: "npm:^1.0.0"
source-map-js: "npm:^1.0.2"
checksum: 10/93a7ce50cd6188f5f486a9ca98950ad27c19dfed996c45c414fa242944497e4d084a8760d3537f078630226f2bd3c6ab84b813b488740f4432e7c7039cd73a20
source-map-js: "npm:^1.2.0"
checksum: 10/6e44a7ed835ffa9a2b096e8d3e5dfc6bcf331a25c48aeb862dd54e3aaecadf814fa22be224fd308f87d08adf2299164f88c5fd5ab1c4ef6cbd693ceb295377f4
languageName: node
linkType: hard

Expand Down Expand Up @@ -31976,22 +31997,26 @@ __metadata:
languageName: node
linkType: hard

"rollup@npm:^4.2.0":
version: 4.6.1
resolution: "rollup@npm:4.6.1"
dependencies:
"@rollup/rollup-android-arm-eabi": "npm:4.6.1"
"@rollup/rollup-android-arm64": "npm:4.6.1"
"@rollup/rollup-darwin-arm64": "npm:4.6.1"
"@rollup/rollup-darwin-x64": "npm:4.6.1"
"@rollup/rollup-linux-arm-gnueabihf": "npm:4.6.1"
"@rollup/rollup-linux-arm64-gnu": "npm:4.6.1"
"@rollup/rollup-linux-arm64-musl": "npm:4.6.1"
"@rollup/rollup-linux-x64-gnu": "npm:4.6.1"
"@rollup/rollup-linux-x64-musl": "npm:4.6.1"
"@rollup/rollup-win32-arm64-msvc": "npm:4.6.1"
"@rollup/rollup-win32-ia32-msvc": "npm:4.6.1"
"@rollup/rollup-win32-x64-msvc": "npm:4.6.1"
"rollup@npm:^4.13.0":
version: 4.14.0
resolution: "rollup@npm:4.14.0"
dependencies:
"@rollup/rollup-android-arm-eabi": "npm:4.14.0"
"@rollup/rollup-android-arm64": "npm:4.14.0"
"@rollup/rollup-darwin-arm64": "npm:4.14.0"
"@rollup/rollup-darwin-x64": "npm:4.14.0"
"@rollup/rollup-linux-arm-gnueabihf": "npm:4.14.0"
"@rollup/rollup-linux-arm64-gnu": "npm:4.14.0"
"@rollup/rollup-linux-arm64-musl": "npm:4.14.0"
"@rollup/rollup-linux-powerpc64le-gnu": "npm:4.14.0"
"@rollup/rollup-linux-riscv64-gnu": "npm:4.14.0"
"@rollup/rollup-linux-s390x-gnu": "npm:4.14.0"
"@rollup/rollup-linux-x64-gnu": "npm:4.14.0"
"@rollup/rollup-linux-x64-musl": "npm:4.14.0"
"@rollup/rollup-win32-arm64-msvc": "npm:4.14.0"
"@rollup/rollup-win32-ia32-msvc": "npm:4.14.0"
"@rollup/rollup-win32-x64-msvc": "npm:4.14.0"
"@types/estree": "npm:1.0.5"
fsevents: "npm:~2.3.2"
dependenciesMeta:
"@rollup/rollup-android-arm-eabi":
Expand All @@ -32008,6 +32033,12 @@ __metadata:
optional: true
"@rollup/rollup-linux-arm64-musl":
optional: true
"@rollup/rollup-linux-powerpc64le-gnu":
optional: true
"@rollup/rollup-linux-riscv64-gnu":
optional: true
"@rollup/rollup-linux-s390x-gnu":
optional: true
"@rollup/rollup-linux-x64-gnu":
optional: true
"@rollup/rollup-linux-x64-musl":
Expand All @@ -32022,7 +32053,7 @@ __metadata:
optional: true
bin:
rollup: dist/bin/rollup
checksum: 10/32fcbb3954597c27fe493d8dcebc24c3ddff8eab2150829cfb2161761038a9bd64873f51a90a6bfce522a70201318d764371e78ed294fc7aa019804f1dac7f08
checksum: 10/803b45976dfc73843a48083dc345821860e960aede010b0e765201cc2827fe131b6f29296da3186a48813b83f823cd26b77adcafcf32ba859efb1b62adb8f4e0
languageName: node
linkType: hard

Expand Down Expand Up @@ -32764,10 +32795,10 @@ __metadata:
languageName: node
linkType: hard

"source-map-js@npm:^1.0.1, source-map-js@npm:^1.0.2":
version: 1.0.2
resolution: "source-map-js@npm:1.0.2"
checksum: 10/38e2d2dd18d2e331522001fc51b54127ef4a5d473f53b1349c5cca2123562400e0986648b52e9407e348eaaed53bce49248b6e2641e6d793ca57cb2c360d6d51
"source-map-js@npm:^1.0.1, source-map-js@npm:^1.0.2, source-map-js@npm:^1.2.0":
version: 1.2.0
resolution: "source-map-js@npm:1.2.0"
checksum: 10/74f331cfd2d121c50790c8dd6d3c9de6be21926de80583b23b37029b0f37aefc3e019fa91f9a10a5e120c08135297e1ecf312d561459c45908cb1e0e365f49e5
languageName: node
linkType: hard

Expand Down Expand Up @@ -35336,13 +35367,13 @@ __metadata:
linkType: hard

"vite@npm:^5.0.6":
version: 5.0.12
resolution: "vite@npm:5.0.12"
version: 5.2.8
resolution: "vite@npm:5.2.8"
dependencies:
esbuild: "npm:^0.19.3"
esbuild: "npm:^0.20.1"
fsevents: "npm:~2.3.3"
postcss: "npm:^8.4.32"
rollup: "npm:^4.2.0"
postcss: "npm:^8.4.38"
rollup: "npm:^4.13.0"
peerDependencies:
"@types/node": ^18.0.0 || >=20.0.0
less: "*"
Expand Down Expand Up @@ -35371,7 +35402,7 @@ __metadata:
optional: true
bin:
vite: bin/vite.js
checksum: 10/ed0bb26a0d0c8e1dae0b70af9e36adffd7e15d80297443fe4da762596dc81570bad7f0291f590a57c1553f5e435338d8c7ffc483bd9431a95c09d9ac90665fad
checksum: 10/caa40343c2c4e6d8e257fccb4c3029f62909c319a86063ce727ed550925c0a834460b0d1ca20c4d6c915f35302aa1052f6ec5193099a47ce21d74b9b817e69e1
languageName: node
linkType: hard

Expand Down

0 comments on commit c4d4b1c

Please sign in to comment.