-
Notifications
You must be signed in to change notification settings - Fork 51
chore(deps): update dependency vitest to v1.6.1 [security] - autoclosed #1886
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
Conversation
|
Important Review skippedIgnore keyword(s) in the title. ⛔ Ignored keywords (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Join our Discord community for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
❌ Deploy Preview for kleros-v2-university failed. Why did it fail? →
|
❌ Deploy Preview for kleros-v2-neo failed. Why did it fail? →
|
✅ Deploy Preview for kleros-v2-testnet ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for kleros-v2-testnet-devtools ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
cbee88c to
47a8490
Compare
c9ebf4b to
2df0c97
Compare
7c4400a to
f99debe
Compare
216515d to
f1225a1
Compare
f1225a1 to
b262497
Compare
673783a to
80636f6
Compare
d70808e to
d96033c
Compare
e11f79c to
4af907a
Compare
d1982ec to
f1340b2
Compare
f1340b2 to
25edf37
Compare
11db814 to
71c848b
Compare
71c848b to
053cd11
Compare
|
Code Climate has analyzed commit 053cd11 and detected 0 issues on this pull request. View more on Code Climate. |
|



This PR contains the following updates:
1.6.0->1.6.1GitHub Vulnerability Alerts
CVE-2025-24964
Summary
Arbitrary remote Code Execution when accessing a malicious website while Vitest API server is listening by Cross-site WebSocket hijacking (CSWSH) attacks.
Details
When
apioption is enabled (Vitest UI enables it), Vitest starts a WebSocket server. This WebSocket server did not check Origin header and did not have any authorization mechanism and was vulnerable to CSWSH attacks.https://github.com/vitest-dev/vitest/blob/9a581e1c43e5c02b11e2a8026a55ce6a8cb35114/packages/vitest/src/api/setup.ts#L32-L46
This WebSocket server has
saveTestFileAPI that can edit a test file andrerunAPI that can rerun the tests. An attacker can execute arbitrary code by injecting a code in a test file by thesaveTestFileAPI and then running that file by calling thererunAPI.https://github.com/vitest-dev/vitest/blob/9a581e1c43e5c02b11e2a8026a55ce6a8cb35114/packages/vitest/src/api/setup.ts#L66-L76
PoC
calcexecutable inPATHenv var (you'll likely have it if you are running on Windows), that application will be executed.Impact
This vulnerability can result in remote code execution for users that are using Vitest serve API.
Release Notes
vitest-dev/vitest (vitest)
v1.6.1Compare Source
This release includes security patches for:
🐞 Bug Fixes
View changes on GitHub
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.
This PR was generated by Mend Renovate. View the repository job log.
PR-Codex overview
This PR updates several dependencies in the
yarn.lockfile, primarily moving from version1.6.0to1.6.1for multiple@vitestpackages and others, ensuring compatibility and incorporating the latest features or fixes.Detailed summary
@vitest/expectfrom1.6.0to1.6.1@vitest/runnerfrom1.6.0to1.6.1@vitest/snapshotfrom1.6.0to1.6.1@vitest/spyfrom1.6.0to1.6.1@vitest/utilsfrom1.6.0to1.6.1vite-nodefrom1.6.0to1.6.1@vitest/browserfrom1.6.0to1.6.1@vitest/uifrom1.6.0to1.6.1