Originally published at naditu.com/blog/cimd-vs-dcr-in-mcp-registration-and-fetch-flood-risks.
Security reviews of the 2026-07-28 Model Context Protocol (MCP) authorization update frequently repeat a bold claim from identity-vendor posts: replacing OAuth 2.0 Dynamic Client Registration (DCR, RFC 7591) with Client ID Metadata Documents (CIMD) eliminates the registration desk and stops registration-flood attacks.
That claim is half right. Deprecating open POST /register removes persistent database bloat, yet it does not stop strangers from forcing your authorization server to perform outbound network work.
What Actually Disappears When /register Goes Away
| Dimension | RFC 7591 Open DCR | OAuth CIMD (2026-07-28 SHOULD) |
|---|---|---|
| Where client metadata lives | One database row per POST /register on the server | A JSON document hosted on the client's HTTPS URL |
| Unauthenticated write endpoint | Yes (POST /register) | None |
| State left behind by a flood | Permanent rows (evicting breaks real issued client_ids) | Throwaway HTTP cache (LRU eviction is safe) |
| Remote redirect trust | Self-asserted strings | Domain-bound HTTPS origin |
Four Attack Vectors That Survive Under CIMD
- One cheap wildcard domain generates unbounded
client_idURLs: An attacker does not need thousands of domains. Because a CIMDclient_idis a full HTTPS URL with a non-root path, a five-line wildcard handler on one domain can servehttps://attacker.example/c/1.jsonthroughhttps://attacker.example/c/1000000.json. Every unseen URL forces outbound DNS resolution, TCP/TLS handshakes, and an HTTPGET—or turns your server into an HTTP reflection amplifier against third-party hosts. - A
5 KiBresponse cap bounds bytes per fetch, not fetch count: The IETFdraft-ietf-oauth-client-id-metadata-document5 KiBlimit and short connect/read timeouts cap single-response payload size, not concurrent unseen-URL volume. - Deferring fetches until after user login breaks on PAR (
RFC 9126): Fetching metadata only after user sign-in blocks anonymous/authorizefloods, but Pushed Authorization Requests (PAR) validateclient_idmetadata before the user authenticates. - Localhost callback impersonation bypasses domain trust: As both the MCP security considerations and the NSA/DoD
CSI_MCP_SECURITYadvisory note, desktop and CLI tools publishhttp://127.0.0.1redirect URIs inside their legitimate CIMD JSON. Any untrusted local process can present a real vendor'sclient_idURL, display the vendor's domain on the consent screen, and intercept the authorization code on loopback.
Practical Production Defenses
- Enforce domain allowlists, RFC 6890 SSRF blocks, and
eTLD+1rate budgets: Reject private/link-local/cloud-metadata IPs (169.254.169.254) on the resolved socket, disable HTTP3xxredirects, cap unseen fetches per registrable root domain (eTLD+1), and negatively cache invalid responses. - Separate OAuth client identity from operational data permissions: OAuth registration only identifies which client binary connected. Enforcing which ERP, CRM, or manufacturing rows the signed-in user may read—and holding operational writes behind human sign-off—belongs in an enterprise business ontology (see the companion vendor-neutral reference guide on NSA MCP Security & OAuth CIMD vs. DCR).


