Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump @vitest/browser to ^2.1.8 [SECURITY] #1412

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 4, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@vitest/browser (source) 2.1.8 -> 2.1.9 age adoption passing 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

Configuration

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

@renovate renovate bot added the dependencies Update of dependencies label Feb 4, 2025
@renovate renovate bot force-pushed the renovate/npm-vitest-browser-vulnerability branch from b680794 to 8cd6aaf Compare February 5, 2025 07:56
Copy link

netlify bot commented Feb 5, 2025

Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit aa7c076
🔍 Latest deploy log https://app.netlify.com/sites/base-ui/deploys/67a36fee81d85e00085aad75
😎 Deploy Preview https://deploy-preview-1412--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@renovate renovate bot force-pushed the renovate/npm-vitest-browser-vulnerability branch from 8cd6aaf to 294e280 Compare February 5, 2025 10:36
@mj12albert mj12albert force-pushed the renovate/npm-vitest-browser-vulnerability branch from 294e280 to a5394d4 Compare February 5, 2025 13:52
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Feb 5, 2025
@renovate renovate bot force-pushed the renovate/npm-vitest-browser-vulnerability branch from a5394d4 to 762b9aa Compare February 5, 2025 13:58
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Feb 5, 2025
@renovate renovate bot force-pushed the renovate/npm-vitest-browser-vulnerability branch from 762b9aa to aa7c076 Compare February 5, 2025 14:04
@mj12albert mj12albert merged commit df39131 into master Feb 5, 2025
22 checks passed
@mj12albert mj12albert deleted the renovate/npm-vitest-browser-vulnerability branch February 5, 2025 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Update of dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant