CVE-2026-53509
JSON

5.7medium

@aborruso/ckan-mcp-server: SSRF via base_url allows access to internal networks (Potential fix bypass of CVE-2026-33060)

Severity
5.7medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.23% (higher than 14% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-g84h-j7jj-x32p

Description

CKAN MCP Server is a tool for querying CKAN open data portals. A known vulnerability CVE-2026-33060 indicated tools including ckan_package_search and sparql_query that accept a base_url parameter had the risk of making HTTP requests to arbitrary endpoints without restriction. A fix was applied to filter out ip addresses. However, a method to bypass exists prior to version 0.4.106. CKAN MCP Server validates caller-supplied CKAN server URLs by inspecting only the parsed hostname string before issuing outbound HTTP requests. In `src/utils/http.ts`, hostname aliases such as `ip6-localhost` are not equal to `localhost`, are not dotted IPv4 literals, and are not bracketed IPv6 literals, so they pass the SSRF filter but can resolve to loopback when the server performs the request. A remote MCP caller that can invoke CKAN tools with a `server_url` can therefore make the server connect to local or private addresses and, for CKAN-shaped responses, receive response-derived data. The updated fix in version 0.4.106 replaced the single `hostname === 'localhost'` check with a blocked-hostname `Set` covering `ip6-localhost` and `ip6-loopback`.

Affected

Product or packageVersionsReported by
ondata ckan-mcp-server< 0.4.106CVE List
@aborruso/ckan-mcp-server (npm)before 0.4.106GitHub Advisory Database

All scores

GitHub_M5.7medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
GitHub5.7medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N

Classification

CWE-918

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

CKAN MCP Server is a tool for querying CKAN open data portals. A known vulnerability CVE-2026-33060 indicated tools including ckan_package_search and sparql_query that accept a base_url parameter had the risk of making HTTP requests to arbitrary endpoints without restriction. A fix was applied to filter out ip addresses. However, a method to bypass exists prior to version 0.4.106. CKAN MCP Server validates caller-supplied CKAN server URLs by inspecting only the parsed hostname string before issuing outbound HTTP requests. In `src/utils/http.ts`, hostname aliases such as `ip6-localhost` are not equal to `localhost`, are not dotted IPv4 literals, and are not bracketed IPv6 literals, so they pass the SSRF filter but can resolve to loopback when the server performs the request. A remote MCP caller that can invoke CKAN tools with a `server_url` can therefore make the server connect to local or private addresses and, for CKAN-shaped responses, receive response-derived data. The updated fix in version 0.4.106 replaced the single `hostname === 'localhost'` check with a blocked-hostname `Set` covering `ip6-localhost` and `ip6-loopback`.

GitHub Advisory Database
Summary

A known vulnerability CVE-2026-33060 indicated tools including ckan_package_search and sparql_query that accept a base_url parameter had the risk of making HTTP requests to arbitrary endpoints without restriction. A fix was applied to filter out ip addresses. However, a method to bypass exists.

Details

CKAN MCP Server validates caller-supplied CKAN server URLs by inspecting only the parsed hostname string before issuing outbound HTTP requests. In src/utils/http.ts, hostname aliases such as ip6-localhost are not equal to localhost, are not dotted IPv4 literals, and are not bracketed IPv6 literals, so they pass the SSRF filter but can resolve to loopback when the server performs the request. A remote MCP caller that can invoke CKAN tools with a server_url can therefore make the server connect to local or private addresses and, for CKAN-shaped responses, receive response-derived data.

Fix

Replaced the single hostname === 'localhost' check with a blocked-hostname Set covering ip6-localhost and ip6-loopback. Patched in commit c761045a1b7c5f40d2626540dd2ef1d4feb91f8c.


@aborruso/ckan-mcp-server thanks hibrian827 for responsibly disclosing this issue.

NVD (es)

El Servidor CKAN MCP es una herramienta para consultar portales de datos abiertos CKAN. Una vulnerabilidad conocida CVE-2026-33060 indicaba que herramientas, incluyendo ckan_package_search y sparql_query, que aceptan un parámetro base_url, tenían el riesgo de realizar solicitudes HTTP a puntos finales arbitrarios sin restricción. Se aplicó una corrección para filtrar direcciones IP. Sin embargo, existe un método para eludirlo anterior a la versión 0.4.106. El Servidor CKAN MCP valida las URL de los servidores CKAN proporcionadas por el llamador inspeccionando solo la cadena de nombre de host analizada antes de emitir solicitudes HTTP salientes. En 'src/utils/http.ts', alias de nombre de host como 'ip6-localhost' no son iguales a 'localhost', no son literales IPv4 con puntos y no son literales IPv6 entre corchetes, por lo que pasan el filtro SSRF pero pueden resolverse a loopback cuando el servidor realiza la solicitud. Un llamador MCP remoto que puede invocar herramientas CKAN con una 'server_url' puede, por lo tanto, hacer que el servidor se conecte a direcciones locales o privadas y, para respuestas con formato CKAN, recibir datos derivados de la respuesta. La corrección actualizada en la versión 0.4.106 reemplazó la única verificación 'hostname === 'localhost'' con un 'Set' de nombres de host bloqueados que cubre 'ip6-localhost' y 'ip6-loopback'.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2026-53509 changed 2026-08-21CVE Terms of Use
GitHub Advisory DatabaseGHSA-g84h-j7jj-x32p changed 2026-09-23CC-BY-4.0
NVDCVE-2026-53509 changed 2026-10-12Public domain