Update dependency @vitest/browser from v3.0.2 to v3.0.4 [SECURITY] #3748
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.0.2
->3.0.4
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 bybrowser.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
npx vitest init browser
npm run test:browser
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)
v3.0.4
Compare Source
🐞 Bug Fixes
development|production
condition on Vites 6 by @hi-ogawa and @sheremet-va (#7301) (ef146)/__screenshot-error
- by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7340 (ed9ae)View changes on GitHub
v3.0.3
Compare Source
🐞 Bug Fixes
🏎 Performance
View changes on GitHub
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.
This PR was generated by Mend Renovate. View the repository job log.