CVE-2026-76895: CKAN MCP Server: Unsanitized portal-controlled fields are emitted verbatim in tool output (injection)
CKAN MCP Server is a tool for querying CKAN open data portals. Prior to version 0.4.109, tool output is assembled from portal-controlled fields without any output-encoding step. ckanpackageshow and the sibling renderers insert dataset title, notes, resource name/description/url and group titles verbatim into the result returned to the MCP client. These fields are free text controlled by whoever published the dataset, and serverurl may point at any portal, including one the attacker operates. A single missing control — neutralization of untrusted content at the rendering boundary — lets an attacker fully determine the content of a tool result. This issue has been patched in version 0.4.109.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
CKAN MCP Serverto a version that resolves this vulnerability.Fixed in 0.4.109
Event History
Frequently Asked Questions
Who is exposed to this issue?
Users of CKAN MCP Server versions before 0.4.109 are exposed when they query portals containing attacker-controlled dataset or group metadata. Exposure can also arise when server_url is configured to point to a portal operated by an attacker.
What does exploitation require?
An attacker needs to control free-text content in a CKAN portal, such as dataset titles, notes, resource names, descriptions, URLs, or group titles. A user must then invoke a tool that returns the affected rendered output to an MCP client.
Is an unauthenticated network attacker able to exploit this directly?
The issue is network-reachable and requires no attacker privileges, but exploitation has high attack complexity and requires user interaction. The attacker must cause affected portal-controlled content to be included in a tool result viewed or processed by the MCP client.
What should be done if patching cannot happen immediately?
Avoid querying untrusted CKAN portals and do not configure server_url to use attacker-controlled portals. Treat dataset, resource, and group metadata returned by affected tools as untrusted content until version 0.4.109 can be deployed.
How can I tell whether my deployment is affected?
Deployments running a version earlier than 0.4.109 are affected. The relevant tool output includes ckan_package_show and sibling renderers that return portal-controlled dataset, resource, or group fields.