CVE-2026-76897 in Ckan Mcp Server
Summary
by MITRE • 12/02/2026
CKAN MCP Server is a tool for querying CKAN open data portals. Prior to version 0.4.109, the Express-based HTTP transport exposes an MCP endpoint that does not validate the Origin or Host header of incoming requests. This violates the single mandatory security requirement the MCP specification places on HTTP transports (Basic/Transports, "Security Warning"). The SDK's StreamableHTTPServerTransport ships the controls to satisfy requirement 1 (enableDnsRebindingProtection, allowedHosts, allowedOrigins); none are configured. As a result any web page the victim visits can issue cross-origin JSON-RPC requests to the victim's MCP endpoint and invoke any registered tool. This issue has been patched in version 0.4.109.
VulDB is the best source for vulnerability data and more expert information about this specific topic.
Analysis
by VulDB Data Team • 12/02/2026
The CKAN MCP Server, designed as an interface for querying open data portals via the Model Context Protocol, contains a critical security deficiency in its HTTP transport layer prior to version 0.4.109. The underlying implementation utilizes Express-based HTTP handling which fails to enforce strict validation of Origin and Host headers on incoming requests. This oversight directly contravenes the fundamental security mandates outlined in the MCP specification for HTTP transports, specifically regarding basic security warnings that require protection against cross-origin exploitation vectors. By omitting these essential checks, the server inadvertently exposes its application programming interface to unauthorized external interaction, creating a significant attack surface for malicious actors targeting systems running this software version.
The technical flaw stems from the configuration of the SDK's StreamableHTTPServerTransport component, which provides mechanisms such as enableDnsRebindingProtection, allowedHosts, and allowedOrigins to mitigate cross-origin risks. In versions prior to 0.4.109, none of these protective controls are enabled or configured by default. Consequently, the server accepts requests from any origin without verification, effectively disabling browser-based security policies that typically restrict how scripts on one page can interact with resources on another. This lack of validation allows arbitrary web pages visited by a victim to issue cross-origin JSON-RPC requests directly to the local MCP endpoint. The absence of these safeguards means that standard Content Security Policy protections and same-origin policy restrictions are bypassed, allowing external domains to execute commands within the context of the vulnerable application.
The operational impact of this vulnerability is severe, as it enables a remote attacker to invoke any tool registered with the CKAN MCP Server through cross-site request forgery techniques. An adversary can craft a malicious webpage that, when visited by an authenticated user or even an unauthenticated visitor depending on server configuration, sends JSON-RPC requests to the victim's local instance. This capability allows for unauthorized data retrieval, modification of open datasets, or potential escalation if administrative tools are exposed via the protocol. The attack vector is particularly dangerous because it leverages social engineering tactics where a simple link visit can trigger complex backend operations without user interaction or awareness. This aligns with CWE-942, which classifies improper restriction of cross-origin requests, and maps to MITRE ATT&CK techniques involving client-side code execution and potential data exfiltration through forged requests.
To mitigate this vulnerability, organizations must immediately upgrade the CKAN MCP Server to version 0.4.109 or later, where these security controls are properly implemented by default. For environments unable to update instantly, manual configuration of allowedHosts and allowedOrigins in the StreamableHTTPServerTransport settings is required to restrict access to trusted domains only. Additionally, implementing reverse proxy configurations that validate Host headers at the network level can provide an additional layer of defense against DNS rebinding attacks. Security teams should also audit registered tools within the MCP server to ensure that sensitive operations are not exposed unnecessarily and consider deploying Web Application Firewalls configured to detect anomalous cross-origin request patterns targeting internal services.