chore: resolve open dependabot security alerts#573
Merged
Conversation
- vitest ^3.2.4 -> ^4.1.0 in root and mcp-worker (CRITICAL, GHSA-5xrq-8626-4rwp, alerts #239, #240, #241) - add mcp-worker/vitest.config.ts so the worker no longer inherits the root config under vitest 4 config discovery - fix ably.test.ts ably mock to use a constructable function for vitest 4 compatibility Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
devcycle-mcp-server | 8d45c69 | Jun 02 2026, 01:40 PM |
There was a problem hiding this comment.
Pull request overview
This PR resolves Dependabot CRITICAL security alerts by upgrading vitest to the patched ^4.1.0 across the monorepo, updating the lockfile accordingly, and adjusting mcp-worker test configuration/mocks to remain compatible with Vitest 4’s behavior.
Changes:
- Bump
vitestfrom^3.2.4to^4.1.0in root andmcp-workerworkspaces (lockfile resolves to4.1.8). - Add a dedicated
mcp-worker/vitest.config.tsto prevent inheriting the root Vitest config under Vitest 4 config discovery. - Update the
ablymock inmcp-worker/src/ably.test.tsto use a constructable implementation fornew-able mocking.
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| yarn.lock | Updates dependency graph for Vitest 4.x (and related transitive deps) to resolve security advisory. |
| package.json | Bumps root vitest devDependency to ^4.1.0. |
| mcp-worker/package.json | Bumps worker vitest devDependency to ^4.1.0. |
| mcp-worker/vitest.config.ts | Introduces worker-local Vitest config to avoid root config inheritance. |
| mcp-worker/src/ably.test.ts | Adjusts Ably mock to be constructable under Vitest 4. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+7
to
+8
| include: ['src/**/*.test.ts'], | ||
| watch: false, |
JamieSinn
approved these changes
Jun 2, 2026
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.
Summary
vitestfrom^3.2.4to^4.1.0in both the root andmcp-workerworkspaces to resolve the CRITICAL arbitrary file read/execute advisory (GHSA-5xrq-8626-4rwp, patched in 4.1.0). Resolves to 4.1.8 in the lockfile.mcp-worker/vitest.config.tsso the worker workspace no longer inherits the rootvitest.config.tsunder vitest 4's config discovery.ablymock inmcp-worker/src/ably.test.tsto use a constructable function instead of an arrow function, which vitest 4 requires fornew-able mocks.Dependabot Alerts Resolved
vitestvitestvitestVerification
yarn buildpassesmcp-workervitest suite: 4 tests passyarn format:checkpasses