Repository navigation
fix(deps): remove vulnerable Zod 3 from Koishi server dependencies - #138
Merged
Eternal-Wanderer-Vegetable merged 1 commit intoDec 3, 2026
Merged
Conversation
Eternal-Wanderer-Vegetable
deleted the
codex/dependabot-security-20261203
branch
December 3, 2026 12:06
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.
Koishi's mock/server dependency chain still installs
koa-body 6.0.1withzod 3.25.76, which is affected by GHSA-mrhx-c7xc-m3w5. npm audit reports eight affected nodes from this single advisory even after Dependabot PRs #128, #130, #131 and #132 are merged.Pin the existing server dependency to
koa-body 8.0.1, following the maintained installation sample, so it resolves the compatible Zod 4 API and removes Zod 3. Add an HTTP regression through the actual Koishi server for JSON, URL-encoded and multipart body parsing, and include it in the normal Host tests.Validation on Linux/WSL2 with Node 24.20.0: clean
npm ci, 17 Host tests, 2 MCP tests, dependency-tree inspection, andnpm audit --json(zero vulnerabilities). Reference-client audit is also zero. The combined Dependabot updates passed 25 reference-client tests, 457 Lab tests and 42 focused Hypothesis tests. Windows Node 24.22.1 reproduced the old cross-spawn command injection with a harmless marker file and confirmed that both upgraded 7.1.2 installations preserve arguments without executing it. The ws limit probe terminated after two pending automatic Pong responses.No frozen plugin artifacts or historical experiment reports are modified. This does not rebuild or publish existing release assets.