Skip to content

fix: use Map to store line number mappings in the MCP server#91

Merged
capachino merged 1 commit intomainfrom
mcp_map_fix
Oct 15, 2025
Merged

fix: use Map to store line number mappings in the MCP server#91
capachino merged 1 commit intomainfrom
mcp_map_fix

Conversation

@capachino
Copy link
Collaborator

Fixes #90

@github-actions
Copy link

🤖 Hi @capachino, I've received your request, and I'm working on it now! You can track my progress in the logs for more details.

@capachino capachino merged commit 909c901 into main Oct 15, 2025
2 of 3 checks passed
CallumHYoung pushed a commit to CallumHYoung/security that referenced this pull request Oct 17, 2025
CallumHYoung pushed a commit to CallumHYoung/security that referenced this pull request Oct 20, 2025
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

## 📋 Security Analysis Summary

This pull request refactors the findLineNumbers function to use a Map instead of an object for storing line numbers. The changes are straightforward and improve the code's clarity and performance. The path traversal check remains effective.

🔍 General Feedback

  • The code quality is good, and the change is well-contained.
  • No security vulnerabilities were identified in this pull request.

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.

Prototype Pollution Vulnerability in MCP Server

2 participants