Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Feb 4, 2025

This PR contains the following updates:

Package Change Age Confidence
@vitest/browser (source) 2.1.2 -> 2.1.9 age confidence

GitHub Vulnerability Alerts

CVE-2025-24963

Summary

__screenshot-error handler on the browser mode HTTP server that responds any file on the file system. Especially if the server is exposed on the network by browser.api.host: true, an attacker can send a request to that handler from remote to get the content of arbitrary files.

Details

This __screenshot-error handler on the browser mode HTTP server responds any file on the file system.
https://github.com/vitest-dev/vitest/blob/f17918a79969d27a415f70431e08a9445b051e45/packages/browser/src/node/plugin.ts#L88-L130

This code was added by vitest-dev/vitest@2d62051.

PoC

  1. Create a directory and change the current directory to that directory
  2. Run npx vitest init browser
  3. Run npm run test:browser
  4. Run curl http://localhost:63315/__screenshot-error?file=/path/to/any/file

Impact

Users explicitly exposing the browser mode server to the network by browser.api.host: true may get any files exposed.


Release Notes

vitest-dev/vitest (@​vitest/browser)

v2.1.9

Compare Source

This release includes security patches for:

   🐞 Bug Fixes
    View changes on GitHub

v2.1.8

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

v2.1.7

Compare Source

   🐞 Bug Fixes
  • Revert support for Vite 6  -  by @​sheremet-va (fbe5c)
    • This introduced some breaking changes (#​6992). We will enable support for it later. In the meantime, you can still use pnpm.overrides or yarn resolutions to override the vite version in the vitest package - the APIs are compatible.
    View changes on GitHub

v2.1.6

Compare Source

🚀 Features

  • Support Vite 6
    View changes on GitHub

v2.1.5

Compare Source

   🐞 Bug Fixes
   🏎 Performance
    View changes on GitHub

v2.1.4

Compare Source

   🚀 Features

This patch release includes a non-breaking feature for the experimental Browser Mode that doesn't follow SemVer. If you want to avoid picking up releases like this, make sure to pin the Vitest version in your package.json. See npm's documentation about semver for more information.

   🐞 Bug Fixes
   🏎 Performance
    View changes on GitHub

v2.1.3

Compare Source

   🐞 Bug Fixes
   🏎 Performance
    View changes on GitHub

Configuration

📅 Schedule: Branch creation - "" in timezone Asia/Shanghai, 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@changeset-bot
Copy link

changeset-bot bot commented Feb 4, 2025

⚠️ No Changeset found

Latest commit: cde825a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@renovate renovate bot force-pushed the renovate/npm-vitest-browser-vulnerability branch from 96f7127 to fc48ef1 Compare February 9, 2025 13:47
@renovate renovate bot force-pushed the renovate/npm-vitest-browser-vulnerability branch from fc48ef1 to 3b7fdba Compare March 3, 2025 15:56
@renovate renovate bot force-pushed the renovate/npm-vitest-browser-vulnerability branch 3 times, most recently from b9d91a1 to 62e8cfa Compare March 17, 2025 17:24
@renovate renovate bot force-pushed the renovate/npm-vitest-browser-vulnerability branch from 62e8cfa to 664c3f4 Compare April 1, 2025 13:05
@renovate renovate bot force-pushed the renovate/npm-vitest-browser-vulnerability branch from 664c3f4 to 40023a8 Compare April 8, 2025 14:44
@renovate renovate bot force-pushed the renovate/npm-vitest-browser-vulnerability branch from 40023a8 to df45cd2 Compare April 24, 2025 06:59
@renovate renovate bot force-pushed the renovate/npm-vitest-browser-vulnerability branch 3 times, most recently from 37308e4 to afc4efb Compare May 25, 2025 12:10
@renovate renovate bot force-pushed the renovate/npm-vitest-browser-vulnerability branch 4 times, most recently from 5d22e1c to 04c4e76 Compare June 6, 2025 15:44
@renovate renovate bot force-pushed the renovate/npm-vitest-browser-vulnerability branch 2 times, most recently from fbcc2fa to 346bd62 Compare June 14, 2025 07:47
@renovate renovate bot force-pushed the renovate/npm-vitest-browser-vulnerability branch from 346bd62 to 15138cd Compare June 16, 2025 01:50
@pkg-pr-new
Copy link

pkg-pr-new bot commented Jun 16, 2025

Open in StackBlitz

npm i https://pkg.pr.new/@sec-ant/readable-stream@77

commit: 15138cd

@renovate renovate bot force-pushed the renovate/npm-vitest-browser-vulnerability branch 3 times, most recently from 4505a96 to 66dcd46 Compare June 22, 2025 14:32
@renovate renovate bot force-pushed the renovate/npm-vitest-browser-vulnerability branch from 66dcd46 to 6b2740f Compare July 2, 2025 14:08
@renovate renovate bot force-pushed the renovate/npm-vitest-browser-vulnerability branch 2 times, most recently from a4b6351 to 5d7149c Compare August 13, 2025 16:27
@renovate renovate bot force-pushed the renovate/npm-vitest-browser-vulnerability branch from 5d7149c to d865c8c Compare August 19, 2025 19:03
@renovate renovate bot force-pushed the renovate/npm-vitest-browser-vulnerability branch from d865c8c to 2ee7578 Compare August 31, 2025 13:00
@renovate renovate bot force-pushed the renovate/npm-vitest-browser-vulnerability branch from 2ee7578 to a7ac7eb Compare September 25, 2025 18:50
@renovate renovate bot force-pushed the renovate/npm-vitest-browser-vulnerability branch from a7ac7eb to cde825a Compare October 21, 2025 15:01
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