Skip to content

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 25, 2025

This PR contains the following updates:

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

GitHub Vulnerability Alerts

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

Details

  • base64 encoded content of non-allowed files is exposed using ?inline&import (originally reported as ?import&?inline=1.wasm?init)
  • content of non-allowed files is exposed using ?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

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

Example full URL http://localhost:5173/@​fs/C:/windows/win.ini?import&?inline=1.wasm?init


Release Notes

vitejs/vite (vite)

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


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 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 requested a review from a team as a code owner March 25, 2025 15:00
@renovate renovate bot added the dependencies Pull requests that update a dependency file label Mar 25, 2025
Copy link

socket-security bot commented Mar 25, 2025

New and updated dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/[email protected]6.2.4 None +5 515 kB

View full report↗︎

@renovate renovate bot changed the title chore(deps): update dependency vite to v6.2.3 [security] (v1) chore(deps): update dependency vite to v6.2.3 [security] (v1) - autoclosed Mar 25, 2025
@renovate renovate bot closed this Mar 25, 2025
@renovate renovate bot deleted the renovate/v1-npm-vite-vulnerability branch March 25, 2025 15:20
@renovate renovate bot changed the title chore(deps): update dependency vite to v6.2.3 [security] (v1) - autoclosed chore(deps): update dependency vite to v6.2.3 [security] (v1) Mar 31, 2025
@renovate renovate bot reopened this Mar 31, 2025
@renovate renovate bot force-pushed the renovate/v1-npm-vite-vulnerability branch from e7dd6db to 80b8a89 Compare March 31, 2025 20:02
@renovate renovate bot changed the title chore(deps): update dependency vite to v6.2.3 [security] (v1) chore(deps): update dependency vite to v6.2.4 [security] (v1) Mar 31, 2025
@renovate renovate bot force-pushed the renovate/v1-npm-vite-vulnerability branch from 80b8a89 to 273bb22 Compare March 31, 2025 23:24
@renovate renovate bot changed the title chore(deps): update dependency vite to v6.2.4 [security] (v1) chore(deps): update dependency vite to v6.2.4 [security] (v1) - autoclosed Apr 1, 2025
@renovate renovate bot closed this Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants