Skip to content

fix(deps): remove vulnerable Zod 3 from Koishi server dependencies - #138

Merged
Eternal-Wanderer-Vegetable merged 1 commit into
mainfrom
codex/dependabot-security-20261203
Dec 3, 2026
Merged

Eternal-Wanderer-Vegetable merged 1 commit into
mainfrom
codex/dependabot-security-20261203

Conversation

@Eternal-Wanderer-Vegetable

Copy link
Copy Markdown
Member

Koishi's mock/server dependency chain still installs koa-body 6.0.1 with zod 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, and npm 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.

@Eternal-Wanderer-Vegetable
Eternal-Wanderer-Vegetable merged commit fadcf53 into main Dec 3, 2026
6 checks passed
@Eternal-Wanderer-Vegetable
Eternal-Wanderer-Vegetable deleted the codex/dependabot-security-20261203 branch December 3, 2026 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant