NSA MCP Security Advisory (CSI_MCP_SECURITY), CVE-2025-49596 & OAuth CIMD vs. DCR Analysis
Engineering analysis of the NSA and CMU SEI MCP security information sheet, real-world exploits, and why replacing RFC 7591 DCR with Client ID Metadata Documents (CIMD) in MCP 2026-07-28 eliminates table bloat while shifting floods to outbound HTTPS fetches.
- 01The NSA and CMU SEI advisory (
CSI_MCP_SECURITY.PDF) highlights that MCP inverts traditional client-server trust and cannot enforce RBAC exchange, token lifecycles, or payload integrity at the protocol layer. - 02Documented exploits—including
CVE-2025-49596(RCE in MCP Inspector prior to 0.14.1), second-use WhatsApp tool-poisoning exfiltration, and blanket-scope repository leaks—prove protocol-only trust fails. - 03In MCP
2026-07-28, deprecating RFC 7591 DCR (POST /register) in favor of Client ID Metadata Documents (CIMD) eliminates unevictable database row floods, but converts registration spam into outbound HTTPS fetch and SSRF amplification. - 04A single attacker-owned wildcard domain can mint millions of distinct
client_idURLs, pre-authPAR(RFC 9126) flows defeat post-login fetch deferral, and CIMD alone cannot stoplocalhostcallback impersonation.
1. The NSA & CMU SEI Threat Model: Client-Server Inversion and Capability Drift
Released jointly by the US National Security Agency and Carnegie Mellon University's Software Engineering Institute, the 17-page advisory CSI_MCP_SECURITY.PDF warns that Model Context Protocol adoption has outpaced its security model—comparing early MCP deployments to underspecified early web protocols.
Where classic APIs have clients request data from passive servers, MCP frequently expects servers to orchestrate queries and trigger execution flows across connected clients while leaving authentication, RBAC propagation, token revocation, and message signing outside core protocol guarantees.
- Demonstrated Exploits in the Wild:
CVE-2025-49596(remote code execution in MCP Inspector via crafted messages, patched in0.14.1), a bait-and-switch WhatsApp MCP server that behaved benignly at install before exfiltrating chat history on second use, and blanket OAuth scopes exposing private repositories. - Silent Capability Drift & Tool Name Collisions: An already-approved MCP server can quietly expand its tool definitions or backend reach without prompting renewed user consent, while ambiguous tool-name resolution allows external servers to shadow legitimate internal tools.
- Prescribed Defense-in-Depth: OS-level sandboxing (
seccomp,AppArmor,SELinux, WindowsAppContainers), payload-level cryptographic signatures with replay timestamps (OWASP ASVS V7), SIEM invocation hashing, and continuous network scanning (MCP Scanner,Ramparts,CyberMCP,Proximity).
2. CIMD vs. DCR in MCP 2026-07-28: Does Removing /register Stop Flooding?
MCP 2026-07-28 orders client registration preference as Pre-registration -> Client ID Metadata Documents (CIMD, draft-ietf-oauth-client-id-metadata-document) -> Dynamic Client Registration (DCR, RFC 7591, deprecated). Identity-vendor blogs frequently claim that removing DCR's /register "registration desk" eliminates registration flooding. In systems engineering terms, that claim is only half true.
- What Actually Disappears (Unevictable State Bloat): Under open DCR, an attacker floods
POST /registerto fillmcp_clientstables and exhaust SaaS IdP tenant application caps; operators cannot evict rows safely because junk records look identical to real clients. Under CIMD, metadata caching is ephemeral and LRU-evictable. - What Does NOT Disappear (Outbound Fetch Amplification & Reflection): An attacker does not need thousands of domains—one
$10domain with a five-line wildcard route (https://attacker.tld/c/1.json.../c/1000000.json) generates infinite uniqueclient_idURLs, forcing the Authorization Server into expensive outbound DNS, TCP, TLS, and HTTP GET work or turning it into a request-reflection amplifier against third-party hosts. - The 5 KiB Cap, PAR Tension &
localhostImpersonation: The IETF draft's5 KiBresponse ceiling bounds bytes per fetch, not fetch count. Deferring fetches until after user login breaks under Pushed Authorization Requests (PAR, RFC 9126), and because local CLI/desktop MCP clients register127.0.0.1redirect URIs, a rogue local process can supply a legitimate vendor's CIMD URL—displaying the trusted domain on the consent screen while capturing the authorization code locally.
Dimension │ RFC 7591 DCR (POST /register) │ IETF CIMD (HTTPS URL client_id)
───────────────────────┼────────────────────────────────────┼───────────────────────────────────────────
Where state lives │ Permanent row in AS client table │ JSON document hosted at client's HTTPS URL
Open write endpoint │ Yes (unauthenticated POST inserts) │ None (server resolves on demand + caches)
Eviction safety │ Unsafe (evicting breaks real IDs) │ Safe (bounded LRU cache; re-fetch on miss)
Attacker cost │ 1 HTTP POST per fake client │ 1 cheap domain serving *.attacker.tld/* !
Residual flood vector │ Persistent DB & tenant-quota bloat │ Outbound DNS+TLS+HTTP fetch flood & SSRF3. Hardening Enterprise MCP Authorization & Semantic Execution
Production enterprise MCP gateways should combine strict CIMD network controls with ontology-level authorization:
- Explicit Domain Allowlists & RFC 6890 SSRF Guards: Restrict
client_idHTTPS origins to approved enterprise/vendor domains, block private/loopback/link-local IP resolution (169.254.169.254), reject HTTP3xxredirects on metadata fetches, and rate-limit unseen hostnames per caller IP. - Separate Client Identity From User & Data Authority: Knowing which client binary connected never answers which ERP rows or mutations the signed-in employee may touch; enforce caller-scoped RBAC, column masking, and human write approvals inside your enterprise business ontology.
CIMD solves database bloat cleanly, but every protocol that dereferences caller-supplied URLs inherits SSRF and outbound-fetch DoS risk. Pair domain allowlists at the OAuth edge with deterministic governance in the ontology layer.
Glossary Concepts Referenced in This Guide
UPDATE/INSERT statements on ERP/CRM databases, requiring typed action proposals validated against preconditions and approved by a named human role.Free to reference in engineering docs, ADRs, articles, and course syllabi with attribution.
[NSA MCP Security Advisory (CSI_MCP_SECURITY), CVE-2025-49596 & OAuth CIMD vs. DCR Analysis — Ontoloji.org](https://ontoloji.org/en/guides/nsa-mcp-security-advisory-cve-2025-49596-and-oauth-cimd-vs-dcr)