Enhance command validation in MCPHandler

feat(mcp): enhance command validation in MCPHandler
Enhance command validation in MCPHandler47bff6-feat-enhance-command-validation-in-mcphandler-cve-2026-34935-cve-2026-41497featenhance command validation mcphandler mcp

Committed by MervinPraison

commit message
feat(mcp): enhance command validation in MCPHandler

Added an allowlist for MCP server commands to improve security by
rejecting disallowed and dangerous commands in the MCPHandler class.
Updated tests to verify the new validation logic and ensure expected
executables are accepted. Bumped version to 1.5.69.

Editor assessment

This commit patches CVE-2026-34935 and CVE-2026-41497. The subject `feat(mcp): enhance command validation in MCPHandler` is vague - `enhance` hides that an allowlist is being introduced - and it names an internal class rather than a user-facing behavior. The body does supply substance: an allowlist rejects disallowed and dangerous MCP server commands, and tests were updated to confirm both rejections and accepted executables. But it is written in past tense, describes only what, and squeezes an unrelated version bump to 1.5.69 into the same paragraph. Nothing explains the threat model or whether configurations relying on custom commands will now break, though two CVEs ride on this change.

Browse categories

More feat examples · Back to search