-
Notifications
You must be signed in to change notification settings - Fork 3
chore(deps): update dependency vitest to v2.1.9 [security] #1324
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
base: master
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1324 +/- ##
=======================================
Coverage 18.35% 18.35%
=======================================
Files 454 454
Lines 74865 74866 +1
Branches 1594 1597 +3
=======================================
+ Hits 13743 13745 +2
+ Misses 61122 61121 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
8cecf01 to
7197108
Compare
7197108 to
0738b9c
Compare
Playwright test resultsDetails
Failed testschromium-setup › auth.setup.ts › authenticate as user - Skipped testschromium › authentication.test.ts › Authentication › should load unauthorized routes as expected with and without authentication - |
3647e89 to
a33675f
Compare
0c3a2fa to
c931d62
Compare
3d9075b to
2444876
Compare
6060384 to
a82de68
Compare
a82de68 to
d2ea6c8
Compare
95bf1f8 to
1a06930
Compare
50e123a to
42c2465
Compare
4325901 to
ecfb807
Compare
f5e4783 to
d2c83bf
Compare
517455a to
aebb859
Compare
86356c4 to
f6ef132
Compare
b4ecfd6 to
1135747
Compare
4b9e631 to
ee923c3
Compare
5579746 to
dac6bbf
Compare
42c235b to
f10aa32
Compare
f10aa32 to
94c2d5f
Compare
94c2d5f to
9efa546
Compare
9efa546 to
3e9f071
Compare
3e9f071 to
3c50660
Compare
3c50660 to
9752547
Compare
This PR contains the following updates:
2.1.4→2.1.9GitHub 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)
v2.1.9Compare Source
This release includes security patches for:
🐞 Bug Fixes
/__screenshot-error- by @hi-ogawa in #7343View changes on GitHub
v2.1.8Compare Source
🐞 Bug Fixes
View changes on GitHub
v2.1.7Compare Source
🐞 Bug Fixes
pnpm.overridesor yarn resolutions to override theviteversion in thevitestpackage - the APIs are compatible.View changes on GitHub
v2.1.6Compare Source
🚀 Features
View changes on GitHub
v2.1.5Compare Source
🐞 Bug Fixes
dangerouslyIgnoreUnhandledErrorswithout base reporter - by @AriPerkkio in #6808 (0bf0a)unhandledRejectioneven when base reporter is not used - by @AriPerkkio in #6812 (8878b)sequence.concurrentfrom theRuntimeConfigtype - by @sheremet-va in #6880 (6af73).poll,.element,.rejects/.resolves, andlocator.*weren't awaited - by @sheremet-va in #6877 (93b67)enteror'a'- by @AriPerkkio in #6848 (487c8)🏎 Performance
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.