Repository navigation
Fix vulnerable dependency paths - #176
Merged
Merged
Conversation
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
Closes #175. Upgrade Zod and the affected body-parser and fast-uri dependency paths. Zod 4 applies bounded parsing to capped arrays, so add explicit limits for previously unbounded mode groups, MCP server lists, custom modes, and queued/message images while preserving deprecated-group handling.
Verification
npm run typecheck— passed.npm run smoke— passed, including the oversized custom-mode regression.TMPDIR=/tmp node --import tsx --test src/rsi/__tests__/cli-boundary.test.ts— 2 passed, including isolated snapshot typecheck against committed source.npm audit --omit=dev— 0 vulnerabilities;npm lsconfirms Zod 4.6.7, body-parser 2.4.0, and fast-uri 3.1.9.npm pack --dry-run— passed; 417 files, 1.3 MB package.src/security/__tests__/supervisor.test.ts— passed from a short/tmpworktree.npm testattempts were not entirely green: the pre-commit run's final snapshot test used pre-change HEAD, and the post-commit run hit the Unix socket path limit in the supervisor test because the scratch path was 130 bytes. The snapshot boundary test passes against committed source, and the supervisor test passes in the short worktree.Security impact
N/A beyond the dependency and schema changes described above.
Test plan
Run
npm ci,npm run typecheck,npm run smoke,npm test, andnpm audit --omit=dev.