-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
chore(deps): update dependency vitest to v1.6.1 [security] #281
base: master
Are you sure you want to change the base?
Conversation
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
101e7c0
to
2b7697d
Compare
This PR contains the following updates:
1.1.1
->1.6.1
GitHub 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
api
option 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
saveTestFile
API that can edit a test file andrerun
API that can rerun the tests. An attacker can execute arbitrary code by injecting a code in a test file by thesaveTestFile
API and then running that file by calling thererun
API.https://github.com/vitest-dev/vitest/blob/9a581e1c43e5c02b11e2a8026a55ce6a8cb35114/packages/vitest/src/api/setup.ts#L66-L76
PoC
calc
executable inPATH
env 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.1
Compare Source
🐞 Bug Fixes
View changes on GitHub
v1.6.0
Compare Source
🚀 Features
includeConsoleOutput
andaddFileAttribute
in junit - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/5659 (2f913)🐞 Bug Fixes
resolveId('vitest')
afterbuildStart
- by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/5646 (f5faf)toJSON
for error serialization - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/5526 (19a21)*.test-d.*
by default - by @MindfulPol in https://github.com/vitest-dev/vitest/issues/5634 (bfe8a)vite-node
's wrapper only to executed files - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5642 (c9883)🏎 Performance
View changes on GitHub
v1.5.3
Compare Source
🐞 Bug Fixes
View changes on GitHub
v1.5.2
Compare Source
🐞 Bug Fixes
View changes on GitHub
v1.5.1
Compare Source
🚀 Features
startVitest()
to acceptstdout
andstdin
- by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5493 (780b1)startVitest
API is experimental and doesn't follow semver.🐞 Bug Fixes
import.meta.env.PROD: false
- by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/5561 (9c649)onTestFinished
in reverse order - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/5598 (23f29)fileParallelism
by default on browser pool - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/5528 (5c69f)v8-to-istanbul
- by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5549 (df6a4)cleanOnRerun
is disabled - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5540 (ea3c1)thresholds
to compare files relative to root - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5574 (80265)toEqual
andtoMatchObject
with circular references - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/5535 (9e641)View changes on GitHub
v1.5.0
Compare Source
v1.4.0
Compare Source
🚀 Features
not
- by @fenghan34 in https://github.com/vitest-dev/vitest/issues/5294 (b9d37)--project
option - by @fenghan34 in https://github.com/vitest-dev/vitest/issues/5295 (201bd)shuffle.files
andshuffle.tests
options - by @fenghan34 in https://github.com/vitest-dev/vitest/issues/5281 (356db)cache.dir
option - by @fenghan34 in https://github.com/vitest-dev/vitest/issues/5229 (d7e8b)--changed
option - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5314 (600b4)clearScreen
cli flag - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/5241 (e1735)🐞 Bug Fixes
--project
option - by @fenghan34 in https://github.com/vitest-dev/vitest/issues/5265 (d1a06)--inspect-brk
to pause before execution - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5355 (e77c5)magic-string
tooptimizeDeps.include
- by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/5278 (8f04e)reportsDirectory
from removing user's project - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5376 (07ec3)toContain/toMatch
assertion error - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/5267 (8ee59)defines
to supportundefined
values - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5284 (5b58b)onConsoleLog
return type - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/5337 (6d1b1)beforeAll
andafterAll
- by @fenghan34 in https://github.com/vitest-dev/vitest/issues/5288 (ce5ca)@vitest/coverage-v8
are used - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5250 (29f98)View changes on GitHub
v1.3.1
Compare Source
🚀 Features
🐞 Bug Fixes
View changes on GitHub
v1.3.0
Compare Source
🚀 Features
snapshotSerializers
option - by @fenghan34 in https://github.com/vitest-dev/vitest/issues/5092 (5b102)🐞 Bug Fixes
poolOptions
- by @penalosa in https://github.com/vitest-dev/vitest/issues/5221 (bc5b2)coverage.reportsDirectory
with multiple directories - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5056 (ae73f)--browser=<name>
correctly - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5179 (656e2).tmp
directory conflicts with--shard
option - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5184 (5749d)defineWorkspace
- by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/5089 (0bf52)jsdom
variable - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/5164 (0f898)optimizeDeps.disabled
warnings on Vite 5.1 - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/5215 (1aecd)disableConsoleIntercept
config - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/[50](https://redirect.github.com/vitest-dev/vitest/actions/runs/7934052979/job/21664152574#step:8:51)74 (a55ad)View changes on GitHub
v1.2.2
Compare Source
🐞 Bug Fixes
coverage/.tmp
files after run - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5008 (d53b8)toThrow(asymmetricMatcher)
failure message - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/5000 (a199a)VITEST_POOL_ID
- by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5002 (7d0a4)ignoreSourceErrors
in run mode - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/5044 (6dae3)useFakeTimers
to fakerequestIdleCallback
on non browser - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/5028 (a9a48)import.meta.resolve
- by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5045 (cf564)View changes on GitHub
v1.2.1
Compare Source
🐞 Bug Fixes
thresholds.autoUpdate
to work with arrow function configuration files - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/4959 (4b411)AsymmetricMatcher
- by @hi-ogawa and @sheremet-va in https://github.com/vitest-dev/vitest/issues/4942 (06bae)await vi.hoisted
- by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4962 (dcf2e)View changes on GitHub
v1.2.0
Compare Source
🚀 Features
--disable-console-intercept
option to allow opting-out from automatic console log interception - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4786 (43fa6)🐞 Bug Fixes
server.headers
- by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4890 (55f53)testNamePattern
config - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4909 (4add9)objDisplay
default truncate option fortest.each
title - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/4917 (9ae9d)process.exit
is called inside the test - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/4903 (8e6c1)Configuration
📅 Schedule: Branch creation - "" (UTC), 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.