generated from Tim-W-James/react-ts-template
-
Notifications
You must be signed in to change notification settings - Fork 1
chore(deps): update dependency vitest to v1.6.1 [security] #90
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
Open
renovate
wants to merge
1
commit into
main
Choose a base branch
from
renovate/npm-vitest-vulnerability
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
✅ Deploy Preview for timjames ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
ff5378e to
49c37d3
Compare
49c37d3 to
add65ea
Compare
7c6fabb to
bb4f965
Compare
bb4f965 to
c490db9
Compare
c490db9 to
e445cc3
Compare
e445cc3 to
23ffa15
Compare
410db07 to
5f2be31
Compare
5f2be31 to
f56c671
Compare
f56c671 to
f33c79e
Compare
f33c79e to
5de2a17
Compare
5de2a17 to
20820f2
Compare
20820f2 to
ed954cb
Compare
cfe13a6 to
e6f7f32
Compare
e6f7f32 to
442714c
Compare
442714c to
ba6b2c3
Compare
ba6b2c3 to
04f1371
Compare
04f1371 to
5349ef2
Compare
5349ef2 to
e2344ff
Compare
e2344ff to
e3809f9
Compare
e3809f9 to
3aa1cde
Compare
67dc9de to
64a5f76
Compare
64a5f76 to
1b73d48
Compare
1b73d48 to
d97c34c
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
1.3.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
v1.6.0Compare Source
🚀 Features
includeConsoleOutputandaddFileAttributein junit - by @hi-ogawa in #5659 (2f913)🐞 Bug Fixes
resolveId('vitest')afterbuildStart- by @hi-ogawa in #5646 (f5faf)toJSONfor error serialization - by @hi-ogawa in #5526 (19a21)*.test-d.*by default - by @MindfulPol in #5634 (bfe8a)vite-node's wrapper only to executed files - by @AriPerkkio in #5642 (c9883)🏎 Performance
View changes on GitHub
v1.5.3Compare Source
🐞 Bug Fixes
View changes on GitHub
v1.5.2Compare Source
🐞 Bug Fixes
View changes on GitHub
v1.5.1Compare Source
🚀 Features
startVitest()to acceptstdoutandstdin- by @AriPerkkio in #5493 (780b1)startVitestAPI is experimental and doesn't follow semver.🐞 Bug Fixes
import.meta.env.PROD: false- by @hi-ogawa in #5561 (9c649)onTestFinishedin reverse order - by @sheremet-va in #5598 (23f29)fileParallelismby default on browser pool - by @hi-ogawa in #5528 (5c69f)v8-to-istanbul- by @AriPerkkio in #5549 (df6a4)cleanOnRerunis disabled - by @AriPerkkio in #5540 (ea3c1)thresholdsto compare files relative to root - by @AriPerkkio in #5574 (80265)toEqualandtoMatchObjectwith circular references - by @hi-ogawa in #5535 (9e641)View changes on GitHub
v1.5.0Compare Source
🚀 Features
🐞 Bug Fixes
describecalls not taking generic type parameters - by @aryaemami59 in #5415 (16bac)processis mocked - by @AriPerkkio in #5430 (0ec4d)toHaveBeenNthCalledWitherror message when not called - by @hi-ogawa in #5420 (e5253)isValidNodeImportto check"type": "module"first - by @hi-ogawa in #5416 (6fb15)View changes on GitHub
v1.4.0Compare Source
🚀 Features
not- by @fenghan34 in #5294 (b9d37)--projectoption - by @fenghan34 in #5295 (201bd)shuffle.filesandshuffle.testsoptions - by @fenghan34 in #5281 (356db)cache.diroption - by @fenghan34 in #5229 (d7e8b)--changedoption - by @AriPerkkio in #5314 (600b4)clearScreencli flag - by @hi-ogawa in #5241 (e1735)🐞 Bug Fixes
--projectoption - by @fenghan34 in #5265 (d1a06)--inspect-brkto pause before execution - by @AriPerkkio in #5355 (e77c5)magic-stringtooptimizeDeps.include- by @hi-ogawa in #5278 (8f04e)reportsDirectoryfrom removing user's project - by @AriPerkkio in #5376 (07ec3)toContain/toMatchassertion error - by @hi-ogawa in #5267 (8ee59)definesto supportundefinedvalues - by @AriPerkkio in #5284 (5b58b)onConsoleLogreturn type - by @hi-ogawa in #5337 (6d1b1)beforeAllandafterAll- by @fenghan34 in #5288 (ce5ca)@vitest/coverage-v8are used - by @AriPerkkio in #5250 (29f98)View changes on GitHub
v1.3.1Compare Source
🚀 Features
🐞 Bug Fixes
View changes on GitHub
Configuration
📅 Schedule: Branch creation - "" in timezone Australia/Sydney, 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.