ontoloji.orgOpen Reference Hub
Verification & Security13 min read·Updated: 2026-12-03·Türkçe sürüm →

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.

Executive Summary — Key Takeaways
  • 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_id URLs, pre-auth PAR (RFC 9126) flows defeat post-login fetch deferral, and CIMD alone cannot stop localhost callback 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 in 0.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, Windows AppContainers), 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 /register to fill mcp_clients tables 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 $10 domain with a five-line wildcard route (https://attacker.tld/c/1.json ... /c/1000000.json) generates infinite unique client_id URLs, 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 & localhost Impersonation: The IETF draft's 5 KiB response 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 register 127.0.0.1 redirect 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.
RFC 7591 DCR vs. IETF CIMD: What Disappears vs. What Shifts
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 & SSRF

3. 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_id HTTPS origins to approved enterprise/vendor domains, block private/loopback/link-local IP resolution (169.254.169.254), reject HTTP 3xx redirects 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.
Key Takeaway: Stateless Client Metadata != Zero DoS Surface

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

Open License (CC BY 4.0) · Cite This Page

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)

More Guides in This Series

Core Architecture
How AI Uses an Ontology
9 min read
Agent Engineering
Agent Harness vs. Ontology
8 min read
Data Engineering
ERP, CRM & MES Patterns
10 min read
Strategy & Governance
30-Day Ontology Strategy
7 min read
ERP Integration
ERP Ontology Integration Guide
11 min read
ERP Data Engineering
Logo Tiger, Nebim V3 & Turkish Unicode Traps
14 min read
Agent Governance
Adversarial Verification, Permissions & Compaction
13 min read
Verification Engineering
Absence-Aware Gates & Ratio Reconstruction
13 min read
Provenance & Governance
Draft vs. Normative Provenance Hygiene
12 min read
SAP & Protocol Architecture
SAP BTP, Cloud Connector & ORD Ontology
11 min read
ERP Write-Safety
Logo REST, Nebim Integrator & UBL-TR Safety
12 min read
Platform Architecture Comparison
Cortex, Genie, dbt & Cube vs. Ontology
12 min read
Systems Engineering & Forensics
ERP Integrator Anti-Patterns & Forensics
13 min read
Platform Architecture Comparison
Fabric IQ, D365 MCP & SAP Joule vs. Ontology
12 min read
Retrieval & RAG Architecture
PageIndex Vectorless Tree RAG vs. Vector DBs
11 min read
Platform Architecture Comparison
Atlan, Stardog & Neo4j vs. Ontology
12 min read
Statutory & Financial Governance
GİB UBL-TR, VUK/TMS 29 & KVKK Ontology
13 min read
Agent Memory & Ontology Architecture
Cognee & Zep Graphiti vs. Ontology
11 min read
Protocol & Multi-Agent Architecture
MCP vs. OpenAPI & Specialist Agents
12 min read
Protocols & Standards
MCP 2026-07-28: Tasks, Events & Apps
13 min read
Agent Architecture & Governance
Agent Harness Engineering Rubric
12 min read
Agent Architecture & Governance
Multi-Agent Task Boards & Mailboxes
12 min read
Verification & Security
Generate-Evaluate-Repair & Observers
12 min read
Agent Architecture & Governance
OpenTelemetry for AI Agents & MCP
11 min read