forked from cardosofelipe/fast-next-template
security(mcp-kb): Add content size limits to prevent DoS attacks #78
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Security Issue
The Knowledge Base MCP server has no content size limits, making it vulnerable to DoS attacks via memory exhaustion.
Vulnerable Endpoints
Attack Vector
An attacker could:
Fix Required
MAX_DOCUMENT_SIZEconfig (e.g., 10MB)MAX_BATCH_SIZEconfig (e.g., 100 documents)MAX_TOTAL_BATCH_SIZEconfig (e.g., 50MB)Implementation
Related