Skip to content

chore(deps): update dependency vite to v6.2.4 [security]#5893

Merged
renovate[bot] merged 1 commit intomasterfrom
renovate/npm-vite-vulnerability
Apr 1, 2025
Merged

chore(deps): update dependency vite to v6.2.4 [security]#5893
renovate[bot] merged 1 commit intomasterfrom
renovate/npm-vite-vulnerability

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Mar 25, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
vite (source) 6.2.3 -> 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.


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.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 25, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rollup ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 31, 2025 11:43pm

@renovate renovate bot enabled auto-merge March 25, 2025 19:29
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 25, 2025

Thank you for your contribution! ❤️

You can try out this pull request locally by installing Rollup via

npm install rollup/rollup#renovate/npm-vite-vulnerability

Notice: Ensure you have installed the latest stable Rust toolchain. If you haven't installed it yet, please see https://www.rust-lang.org/tools/install to learn how to download Rustup and install Rust.

or load it into the REPL:
https://rollup-p269zrhqh-rollup-js.vercel.app/repl/?pr=5893

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 25, 2025

Performance report

  • BUILD: 7182ms, 747 MB
    • initialize: 0ms, 28.1 MB
    • generate module graph: 2762ms, 561 MB
      • generate ast: 1258ms, 554 MB
    • sort and bind modules: 399ms, 605 MB
    • mark included statements: 4025ms, 747 MB
      • treeshaking pass 1: 2362ms, 745 MB
      • treeshaking pass 2: 465ms, 746 MB
      • treeshaking pass 3: 405ms, 751 MB
      • treeshaking pass 4: 396ms, 748 MB
      • treeshaking pass 5: 391ms, 747 MB
  • GENERATE: 724ms, 986 MB
    • initialize render: 0ms, 884 MB
    • generate chunks: 70ms, 894 MB
      • optimize chunks: 0ms, 892 MB
    • render chunks: 637ms, 965 MB
    • transform chunks: 17ms, 986 MB
    • generate bundle: 0ms, 986 MB

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.56%. Comparing base (22b64bc) to head (1c04dbd).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5893   +/-   ##
=======================================
  Coverage   98.56%   98.56%           
=======================================
  Files         270      270           
  Lines        8663     8663           
  Branches     1485     1485           
=======================================
  Hits         8539     8539           
  Misses         92       92           
  Partials       32       32           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@renovate renovate bot changed the title chore(deps): update dependency vite to v6.2.3 [security] chore(deps): update dependency vite to v6.2.3 [security] - autoclosed Mar 26, 2025
@renovate renovate bot closed this Mar 26, 2025
auto-merge was automatically disabled March 26, 2025 11:47

Pull request was closed

@renovate renovate bot deleted the renovate/npm-vite-vulnerability branch March 26, 2025 11:47
@renovate renovate bot changed the title chore(deps): update dependency vite to v6.2.3 [security] - autoclosed chore(deps): update dependency vite to v6.2.3 [security] Mar 31, 2025
@renovate renovate bot reopened this Mar 31, 2025
@renovate renovate bot force-pushed the renovate/npm-vite-vulnerability branch from fa2cf08 to e3cbbff Compare March 31, 2025 19:14
@renovate renovate bot changed the title chore(deps): update dependency vite to v6.2.3 [security] chore(deps): update dependency vite to v6.2.4 [security] Mar 31, 2025
@renovate renovate bot force-pushed the renovate/npm-vite-vulnerability branch from e3cbbff to 1c04dbd Compare March 31, 2025 23:41
@renovate renovate bot enabled auto-merge March 31, 2025 23:41
@renovate renovate bot added this pull request to the merge queue Apr 1, 2025
Merged via the queue into master with commit 5ce2014 Apr 1, 2025
42 checks passed
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 2, 2025

This PR has been released as part of rollup@4.39.0. You can test it via npm install rollup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants