As late 2026 sees the standardization of MCP .mcpb Manifest v0.3 bundles across Claude Desktop, Cursor, and Windsurf, alongside the production rollout of Agent2Agent (A2A) Protocol v1.0.1, security audits are uncovering significant design gaps. Developers relying on simple hash verification for tool definitions are vulnerable to silent rug-pulls, while inconsistent JSON parsing between SDKs threatens the integrity of Ed25519 signatures in agent cards.

The MCP Rug-Pull Vector

Many MCP clients and internal gateways currently hash only the (name, description, inputSchema) triplet from the initial tools/list response. This approach fails to account for the .mcpb v0.3 specification, which allows agents to alter behavior without changing these three fields. Attackers can silently flip annotations, such as changing readOnlyHint from true to false, or inject invisible Unicode control characters and HTML comments into outputSchema properties and JSON Schema $defs, effectively bypassing security checks while maintaining the original hash.

A2A Signature Validation Flaws

The transition from A2A v0.3 to v1.0.1 introduced breaking changes, including a shift to Protobuf/ProtoJSON schemas and uppercase Enum values like ROLE_USER. A critical vulnerability, identified as S4-REJECT-005, arises from parser differences. Standard ProtoJSON parsers often accept both camelCase and snake_case keys and ignore unknown fields, whereas strict RFC 8785 JCS validators normalize the entire tree. This discrepancy allows man-in-the-middle attacks to smuggle unverified keys, potentially bypassing Ed25519 signature validation for AgentCards.

Zero-Dependency Defense Tools

To address these issues, independent engineer Khoa Phan released mcp-tool-guard v0.7.0, a zero-dependency Python tool that uses RFC 8785 JSON Canonicalization Scheme (JCS) to create comprehensive hashes of the entire tool envelope. The tool detects permission drift and invisible character injection, exiting with code 2 and generating SARIF v2.1.0 reports upon failure. Additionally, a2a-card-guard allows developers to audit public agent cards and lockfiles for known CVEs and signature mismatches using a single command.

Key Takeaways

  • MCP .mcpb v0.3 bundles allow silent rug-pulls via annotation flips and invisible character injection if only name/description/inputSchema are hashed.
  • A2A v1.0.1 signature validation is vulnerable to key smuggling due to parser differences between ProtoJSON and strict RFC 8785 JCS implementations.
  • Zero-dependency tools like mcp-tool-guard provide full-envelope JCS hashing and 5-layer prompt injection scanning to mitigate these risks.
  • Production environments should enforce strict Ed25519 validation against JWKS endpoints to prevent agent card tampering.

The Bottom Line

Partial hashing is a false sense of security in the current agent landscape. Developers must adopt full-envelope JCS verification immediately to close the gap between specification and implementation, or risk silent exploitation in production.