Skip to content

Conversation

@courtenay
Copy link

@courtenay courtenay commented Feb 2, 2026

Hey, I was checking out this repo to help with compliance and noticed some stuff out of date, so set my claude to update the libraries and then fix the various zod errors and such. There isn't a test suite that I could find, but also fixed a bunch of ESlint errors.

AI slop 100% after this line!


Summary

  • Upgrade all dependencies to resolve 11 security vulnerabilities (now 0)
  • Fix build and lint errors caused by breaking changes in updated packages

Changes

Dependencies updated:

  • @modelcontextprotocol/sdk 1.6.0 → 1.25.3
  • zod 3.x → 4.3.6
  • eslint 8.x → 9.39.2
  • typescript 5.8.2 → 5.9.3
  • Other dev dependencies to latest

Code changes for compatibility:

  • Update Zod type definitions (ZodTypeAnyZodType for v4)
  • Fix type inference for URL params
  • Exclude src/eval from build (requires optional transitive dependency)
  • Fix lint errors flagged by stricter ESLint rules

Security vulnerabilities fixed

Severity Package Issue
Critical qs Prototype pollution
High qs DoS via memory exhaustion
Moderate eslint Stack overflow with circular refs
Moderate js-yaml Prototype pollution
Low brace-expansion ReDoS (multiple instances)

Test plan

  • yarn build passes
  • yarn lint passes
  • yarn audit shows 0 vulnerabilities

🤖 Generated with Claude Code

courtenay and others added 2 commits February 2, 2026 12:57
- Add type cast in registry.ts to handle MCP SDK v1.25 type inference
- Exclude src/eval from build (requires zod-to-json-schema transitive dep)
- Exclude src/eval from ESLint (not part of main build)
- Fix array spread lint errors in utils.ts with explicit type cast
- Remove redundant String() calls flagged by stricter ESLint rules

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Upgrade @modelcontextprotocol/sdk to 1.25.3
- Upgrade eslint and typescript-eslint to latest
- Upgrade zod to v4.3.6
- Update type definitions for Zod v4 compatibility (ZodTypeAny -> ZodType)
- Fix type inference for URL params with unknown types

Resolves all yarn audit vulnerabilities (was 11, now 0)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@socket-security
Copy link

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Action Severity Alert  (click "▶" to expand/collapse)
Warn High
Publisher changed: npm cors is now published by ulisesgascon

Author: ulisesgascon

From: ?npm/@modelcontextprotocol/sdk@1.25.3npm/cors@2.8.6

ℹ Read more on: This package | This alert | What is unstable ownership?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Try to reduce the number of authors you depend on to reduce the risk to malicious actors gaining access to your supply chain. Packages should remove inactive collaborators with publishing rights from packages on npm.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/cors@2.8.6. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn Low
Unmaintained: npm require-from-string was last published 8 years ago

Last Publish: 4/9/2018, 9:49:47 AM

From: ?npm/@modelcontextprotocol/sdk@1.25.3npm/require-from-string@2.0.2

ℹ Read more on: This package | This alert | What are unmaintained packages?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Package should publish periodic maintenance releases if they are maintained, or deprecate if they have no intention in further maintenance.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/require-from-string@2.0.2. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

View full report

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