Skip to content

Close the authz/audit blind spot for batch JSON-RPC requests #5745

Description

@JAORMX

Part of #5743 (Workstream B: 2025-11-25 compliance).

Gap

JSON-RPC batch requests execute but bypass MCP middleware inspection: the streamable proxy accepts and executes batches (streamable_proxy.go batch handler), but the parser middleware skips them (pkg/mcp/parser.go — IsBatch: false // TODO). Authz, audit, and telemetry are blind to everything inside a batch — a request smuggling vector around tool filtering and Cedar policies.

Spec context: batching was removed from MCP in the 2025-06-18 revision; only 2025-03-26-and-earlier clients may legitimately send batches.

Proposed work

Decide and enforce a stance:

  • Recommended: reject batches when the negotiated/declared protocol version is ≥ 2025-06-18 (spec-conformant), and for older versions either parse every batch entry through the middleware chain or reject batches outright.
  • At minimum: make the parser batch-aware so authz/audit see the contents of every batched call.

Priority: High — security/audit blind spot.

Activity

  1. added
    needs-triage
    on Jul 8, 2026
  2. removed
    needs-triage
    on Jul 13, 2026
  3. self-assigned this
    on Jul 23, 2026
  4. added a commit that references this issue on Jul 23, 2026
    a18f17e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions