Update dependency vitest to v2.1.9 [SECURITY]#38
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
Conversation
cfaf5dc to
3ebfe46
Compare
3ebfe46 to
c538033
Compare
ab9cf47 to
42806c7
Compare
f5ef8a6 to
c65c79f
Compare
c65c79f to
8a10adb
Compare
8a10adb to
927dc85
Compare
c90cefe to
becdb3b
Compare
becdb3b to
50cb8e5
Compare
50cb8e5 to
3129bff
Compare
c3e1ddb to
c762b65
Compare
c762b65 to
1c510c2
Compare
1c510c2 to
b169dce
Compare
b169dce to
ccc31a7
Compare
ccc31a7 to
bfb3cdd
Compare
bfb3cdd to
c18f1b4
Compare
c18f1b4 to
2fbe666
Compare
2fbe666 to
c2394a2
Compare
c2394a2 to
f50f605
Compare
f50f605 to
e307144
Compare
dc8a8bc to
0ab5d0d
Compare
0ab5d0d to
dc57259
Compare
dc57259 to
6ce7a57
Compare
6ce7a57 to
14f24b2
Compare
e4cdfbf to
ab4acd4
Compare
ab4acd4 to
8c85b4f
Compare
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
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:
2.1.8→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.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:HRelease 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
Configuration
📅 Schedule: (UTC)
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.