algolia / doc-code-samples

This repository holds the Algolia documentation big code samples like GeoSearch, Calendar...
93 stars 121 forks source link

chore(deps): update dependency vite to v2.9.16 [security] - autoclosed #488

Closed renovate[bot] closed 5 months ago

renovate[bot] commented 6 months ago

Mend Renovate

This PR contains the following updates:

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

GitHub Vulnerability Alerts

CVE-2022-35204

Vitejs Vite before v2.9.13 was discovered to allow attackers to perform a directory traversal via a crafted URL to the victim's service.

CVE-2023-34092

Summary

The issue involves a security vulnerability in Vite, where the server options can be bypassed using a double forward slash (//). This vulnerability poses a potential security risk as it can allow unauthorized access to sensitive directories and files. This document outlines the steps to address and mitigate this issue. Adding Extra References : ## Steps to Fix. Update Vite:Ensure that you are using the latest version of Vite. Security issues like this are often fixed in newer releases.\n\n2. Secure the Server Configuration:In your vite.config.js file, review and update the server configuration options to restrict access to unauthorized requests or directories. For example:```javascript\n // vite.config.js\n export default { server: {\n fs: {\n deny: ['private-directory'] // Restrict access to specific directories

Impact

Only users explicitly exposing the Vite dev server to the network (using --host or server.host config option) are affected, and only files in the immediate Vite project root folder could be exposed.

Patches

Fixed in vite@4.3.9, vite@4.2.3, vite@4.1.5, vite@4.0.5 And in the latest minors of the previous two majors: vite@3.2.7, vite@2.9.16

Details

Vite serve the application with under the root-path of the project while running on the dev mode. By default, vite using server options fs.deny to protected the sensitive information of the file. But, with simply double forward-slash, we can bypass this fs restriction.

PoC

  1. Create a new latest project of vite using any package manager. (here I'm using react and vue templates for tested and pnpm)
  2. Serve the application on dev mode using pnpm run dev.
  3. Directly access the file from url using double forward-slash (//) (e.g: //.env, //.env.local)
  4. Server Options fs.deny restrict successfully bypassed.

Proof Images: proof-1 proof-2


Release Notes

vitejs/vite (vite) ### [`v2.9.16`](https://togithub.com/vitejs/vite/releases/tag/v2.9.16) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.9.15...v2.9.16) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/v2.9.16/packages/vite/CHANGELOG.md) for details. ### [`v2.9.15`](https://togithub.com/vitejs/vite/releases/tag/v2.9.15) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.9.14...v2.9.15) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/v2.9.15/packages/vite/CHANGELOG.md) for details. ### [`v2.9.14`](https://togithub.com/vitejs/vite/releases/tag/v2.9.14) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.9.13...v2.9.14) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/v2.9.14/packages/vite/CHANGELOG.md) for details. ### [`v2.9.13`](https://togithub.com/vitejs/vite/releases/tag/v2.9.13) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.9.12...v2.9.13) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/v2.9.13/packages/vite/CHANGELOG.md) for details. ### [`v2.9.12`](https://togithub.com/vitejs/vite/releases/tag/v2.9.12) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.9.11...v2.9.12) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/v2.9.12/packages/vite/CHANGELOG.md) for details. ### [`v2.9.11`](https://togithub.com/vitejs/vite/releases/tag/v2.9.11) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.9.10...v2.9.11) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/v2.9.11/packages/vite/CHANGELOG.md) for details. ### [`v2.9.10`](https://togithub.com/vitejs/vite/releases/tag/v2.9.10) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.9.9...v2.9.10) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/v2.9.10/packages/vite/CHANGELOG.md) for details. ### [`v2.9.9`](https://togithub.com/vitejs/vite/releases/tag/v2.9.9) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.9.8...v2.9.9) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/v2.9.9/packages/vite/CHANGELOG.md) for details. ### [`v2.9.8`](https://togithub.com/vitejs/vite/releases/tag/v2.9.8) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.9.7...v2.9.8) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/v2.9.8/packages/vite/CHANGELOG.md) for details. ### [`v2.9.7`](https://togithub.com/vitejs/vite/releases/tag/v2.9.7) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.9.6...v2.9.7) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/v2.9.7/packages/vite/CHANGELOG.md) for details. ### [`v2.9.6`](https://togithub.com/vitejs/vite/releases/tag/v2.9.6) [Compare Source](https://togithub.com/vitejs/vite/compare/5d96dcab9ce207c9fc7f37116b00d45b678fc87c...v2.9.6) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/v2.9.6/packages/vite/CHANGELOG.md) for details. ### [`v2.9.5`](https://togithub.com/vitejs/vite/releases/tag/create-vite%402.9.5) [Compare Source](https://togithub.com/vitejs/vite/compare/6c27f14997db377c7baa5cc6721a9c3f74964a98...5d96dcab9ce207c9fc7f37116b00d45b678fc87c) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/create-vite@2.9.5/packages/create-vite/CHANGELOG.md) for details. ### [`v2.9.4`](https://togithub.com/vitejs/vite/releases/tag/create-vite%402.9.4) [Compare Source](https://togithub.com/vitejs/vite/compare/cb5c3f99bfe8ea1f4b43a1d81030b95bc704720b...6c27f14997db377c7baa5cc6721a9c3f74964a98) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/create-vite@2.9.4/packages/create-vite/CHANGELOG.md) for details. ### [`v2.9.3`](https://togithub.com/vitejs/vite/releases/tag/create-vite%402.9.3) [Compare Source](https://togithub.com/vitejs/vite/compare/f699afb9531201dc24566821fcab55d3e70a2708...cb5c3f99bfe8ea1f4b43a1d81030b95bc704720b) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/create-vite@2.9.3/packages/create-vite/CHANGELOG.md) for details. ### [`v2.9.2`](https://togithub.com/vitejs/vite/releases/tag/create-vite%402.9.2) [Compare Source](https://togithub.com/vitejs/vite/compare/a3b9f4c3f0352db9c76286cf3e4d0118e9045708...f699afb9531201dc24566821fcab55d3e70a2708) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/create-vite@2.9.2/packages/create-vite/CHANGELOG.md) for details. ### [`v2.9.1`](https://togithub.com/vitejs/vite/releases/tag/create-vite%402.9.1) [Compare Source](https://togithub.com/vitejs/vite/compare/997e735895dbcd1b67d831983377e1eb55bd9ec9...a3b9f4c3f0352db9c76286cf3e4d0118e9045708) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/create-vite@2.9.1/packages/create-vite/CHANGELOG.md) for details. ### [`v2.9.0`](https://togithub.com/vitejs/vite/releases/tag/create-vite%402.9.0) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.8.6...997e735895dbcd1b67d831983377e1eb55bd9ec9) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/create-vite@2.9.0/packages/create-vite/CHANGELOG.md) for details. ### [`v2.8.6`](https://togithub.com/vitejs/vite/releases/tag/v2.8.6) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.8.5...v2.8.6) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/v2.8.6/packages/vite/CHANGELOG.md) for details. ### [`v2.8.5`](https://togithub.com/vitejs/vite/releases/tag/v2.8.5) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.8.4...v2.8.5) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/v2.8.5/packages/vite/CHANGELOG.md) for details. ### [`v2.8.4`](https://togithub.com/vitejs/vite/releases/tag/v2.8.4) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.8.3...v2.8.4) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/v2.8.4/packages/vite/CHANGELOG.md) for details. ### [`v2.8.3`](https://togithub.com/vitejs/vite/releases/tag/v2.8.3) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.8.2...v2.8.3) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/v2.8.3/packages/vite/CHANGELOG.md) for details. ### [`v2.8.2`](https://togithub.com/vitejs/vite/releases/tag/v2.8.2) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.8.1...v2.8.2) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/v2.8.2/packages/vite/CHANGELOG.md) for details. ### [`v2.8.1`](https://togithub.com/vitejs/vite/releases/tag/v2.8.1) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/v2.8.1/packages/vite/CHANGELOG.md) for details. ### [`v2.8.0`](https://togithub.com/vitejs/vite/releases/tag/create-vite%402.8.0) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/create-vite@2.8.0/packages/create-vite/CHANGELOG.md) for details. ### [`v2.7.13`](https://togithub.com/vitejs/vite/releases/tag/v2.7.13) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.7.12...v2.7.13) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/v2.7.13/packages/vite/CHANGELOG.md) for details. ### [`v2.7.12`](https://togithub.com/vitejs/vite/releases/tag/v2.7.12) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.7.11...v2.7.12) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/v2.7.12/packages/vite/CHANGELOG.md) for details. ### [`v2.7.11`](https://togithub.com/vitejs/vite/releases/tag/v2.7.11) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.7.10...v2.7.11) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/v2.7.11/packages/vite/CHANGELOG.md) for details. ### [`v2.7.10`](https://togithub.com/vitejs/vite/releases/tag/v2.7.10) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.7.9...v2.7.10) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/v2.7.10/packages/vite/CHANGELOG.md) for details. ### [`v2.7.9`](https://togithub.com/vitejs/vite/releases/tag/v2.7.9) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.7.8...v2.7.9) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/v2.7.9/packages/vite/CHANGELOG.md) for details. ### [`v2.7.8`](https://togithub.com/vitejs/vite/releases/tag/v2.7.8) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.7.7...v2.7.8) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/v2.7.8/packages/vite/CHANGELOG.md) for details. ### [`v2.7.7`](https://togithub.com/vitejs/vite/releases/tag/v2.7.7) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.7.6...v2.7.7) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/v2.7.7/packages/vite/CHANGELOG.md) for details. ### [`v2.7.6`](https://togithub.com/vitejs/vite/releases/tag/v2.7.6) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.7.5...v2.7.6) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/v2.7.6/packages/vite/CHANGELOG.md) for details. ### [`v2.7.5`](https://togithub.com/vitejs/vite/releases/tag/v2.7.5) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.7.4...v2.7.5) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/v2.7.5/packages/vite/CHANGELOG.md) for details. ### [`v2.7.4`](https://togithub.com/vitejs/vite/releases/tag/v2.7.4) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.7.3...v2.7.4) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/v2.7.4/packages/vite/CHANGELOG.md) for details. ### [`v2.7.3`](https://togithub.com/vitejs/vite/releases/tag/v2.7.3) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/v2.7.3/packages/vite/CHANGELOG.md) for details. ### [`v2.7.2`](https://togithub.com/vitejs/vite/releases/tag/create-vite%402.7.2) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/create-vite@2.7.2/packages/create-vite/CHANGELOG.md) for details. ### [`v2.7.1`](https://togithub.com/vitejs/vite/releases/tag/create-vite%402.7.1) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/create-vite@2.7.1/packages/create-vite/CHANGELOG.md) for details. ### [`v2.7.0`](https://togithub.com/vitejs/vite/releases/tag/create-vite%402.7.0) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/create-vite@2.7.0/packages/create-vite/CHANGELOG.md) for details. ### [`v2.6.14`](https://togithub.com/vitejs/vite/compare/v2.6.13...v2.6.14) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.6.13...v2.6.14) ### [`v2.6.13`](https://togithub.com/vitejs/vite/compare/v2.6.12...v2.6.13) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.6.12...v2.6.13) ### [`v2.6.12`](https://togithub.com/vitejs/vite/compare/v2.6.11...v2.6.12) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.6.11...v2.6.12) ### [`v2.6.11`](https://togithub.com/vitejs/vite/compare/v2.6.10...v2.6.11) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.6.10...v2.6.11) ### [`v2.6.10`](https://togithub.com/vitejs/vite/compare/v2.6.9...v2.6.10) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.6.9...v2.6.10) ### [`v2.6.9`](https://togithub.com/vitejs/vite/compare/v2.6.8...v2.6.9) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.6.8...v2.6.9) ### [`v2.6.8`](https://togithub.com/vitejs/vite/compare/v2.6.7...v2.6.8) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.6.7...v2.6.8) ### [`v2.5.10`](https://togithub.com/vitejs/vite/compare/v2.5.9...v2.5.10) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.5.9...v2.5.10) ### [`v2.5.9`](https://togithub.com/vitejs/vite/compare/v2.5.8...v2.5.9) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.5.8...v2.5.9) ### [`v2.5.8`](https://togithub.com/vitejs/vite/compare/v2.5.7...v2.5.8) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.5.7...v2.5.8) ### [`v2.5.7`](https://togithub.com/vitejs/vite/compare/v2.5.6...v2.5.7) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.5.6...v2.5.7) ### [`v2.5.6`](https://togithub.com/vitejs/vite/compare/v2.5.5...v2.5.6) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.5.5...v2.5.6) ### [`v2.4.4`](https://togithub.com/vitejs/vite/compare/v2.4.3...v2.4.4) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.4.3...v2.4.4)

Configuration

📅 Schedule: Branch creation - "" in timezone Europe/Paris, Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

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 has been generated by Mend Renovate. View repository job log here.