Sep 22, 2026·7 min read·5 visits
A Server-Side Request Forgery (SSRF) vulnerability in @aborruso/ckan-mcp-server before v0.4.108 allows low-privilege remote attackers to query local or internal network endpoints, including AWS IMDS, by passing domains that resolve to restricted IPs, bypassing the string-only validation checks.
An input validation bypass in the CKAN MCP Server (NPM package @aborruso/ckan-mcp-server) prior to version 0.4.108 allows remote attackers to perform Server-Side Request Forgery (SSRF). The application's server URL validation mechanism checked hostnames only as literal strings without performing pre-connection DNS resolution. An attacker can bypass these checks using hostnames that resolve to loopback, private, or link-local IP addresses, including the AWS Instance Metadata Service (IMDS). This is the third documented bypass of this protection mechanism, succeeding previous incomplete mitigations in CVE-2026-33060 and CVE-2026-53509.
The CKAN MCP Server is designed as a Model Context Protocol (MCP) server used to query and integrate public data portals configured with the CKAN open-source data management system. Organizations run this server to expose API interaction endpoints for Large Language Model (LLM) agents and orchestration engines. To handle queries dynamically, the application requires the capability to issue outbound HTTP requests to targeted CKAN platforms utilizing parameters supplied by the client.
To restrict the outbound surface to public endpoints and prevent exploitation, the developers implemented an endpoint validation mechanism. This validation routine, known as validateServerUrl, is intended to enforce a boundary that blocks requests directed toward local, loopback, and private network addresses.
However, because the check was implemented strictly at the string level, it failed to account for domain names that resolve to local interfaces. This structural omission exposed a direct path for Server-Side Request Forgery (SSRF), designated as CWE-918. Attackers can exploit this path to target cloud metadata services and internal diagnostic interfaces that are inaccessible from the open internet.
The core technical flaw lies in the sequence of validation and connection within the network logic of src/utils/http.ts. The implementation of the validation function relied on processing string-based hostname literals extracted from user-supplied URLs.
The routine checked if the hostname matched forbidden string arrays (e.g., 'localhost') or private IPv4 address patterns via a basic dotted-decimal regular expression: /^(\d+)\.(\d+)\.(\d+)\.(\d+)$/. If the input value did not match these specific configurations, the validation was bypassed and marked safe. The subsequent execution path then passed the unchecked string directly to standard client libraries like axios or Node's fetch API.
Because the verification process omitted programmatic DNS resolution, any hostname containing alphanumeric characters would pass the regular expression test. For example, the domain name 127.0.0.1.nip.io was parsed as a valid remote hostname because it is not literally equal to 'localhost' and fails to match the strict dotted-decimal format. During the HTTP client connection sequence, the system's underlying resolver mapped this host to the loopback IP (127.0.0.1), allowing an attacker to reach internal-only ports.
This vulnerability represents a Time-of-Check to Time-of-Use (TOCTOU) structural flaw. Because domain name checking occurred without querying actual target resolutions, DNS Rebinding and wildcard resolution techniques bypassed the logical security checks entirely.
Prior to the release of version 0.4.108, the code lacked any dynamic DNS validation layer. The fixed version introduced a structural remediation by introducing safe lookup hooks inside the HTTP client configurations.
The remediation establishes a unified validator function isBlockedIp to check both IPv4 and IPv6 target strings:
export function isBlockedIp(ip: string): boolean {
const v = ip.toLowerCase().trim();
if (v.includes(':')) {
if (v === '::1' || v === '::') return true;
if (v.startsWith('fc') || v.startsWith('fd')) return true;
if (v.startsWith('fe80')) return true;
if (v.startsWith('::ffff:')) return true;
return false;
}
const m = v.match(/^(\d+)\.(\d+)\.(\d+)\.(\d+)$/);
if (!m) return false;
const o1 = Number(m[1]);
const o2 = Number(m[2]);
return (
o1 === 0 ||
o1 === 10 ||
o1 === 127 ||
(o1 === 100 && o2 >= 64 && o2 <= 127) ||
(o1 === 169 && o2 === 254) ||
(o1 === 172 && o2 >= 16 && o2 <= 31) ||
(o1 === 192 && o2 === 168) ||
o1 === 255
);
}To safeguard connections established via HTTP libraries, the patch implements a custom dns lookup function createSsrfSafeLookup. This component resolves the host dynamically and validates each resolved address prior to allowing the TCP handshake to occur:
export function createSsrfSafeLookup(dnsModule: DnsLookupModule) {
return function ssrfSafeLookup(hostname: string, options: any, callback: any): void {
if (typeof options === 'function') {
callback = options;
options = {};
}
const family = options && typeof options === 'object' ? options.family : undefined;
dnsModule.lookup(hostname, { all: true, family: family || 0 }, (err, addresses) => {
if (err) {
callback(err);
return;
}
const list = Array.isArray(addresses) ? addresses : [addresses as ResolvedAddress];
for (const a of list) {
if (isBlockedIp(a.address)) {
callback(new Error(
`Access to private/internal IP addresses is not allowed ("${hostname}" resolves to ${a.address}).`
));
return;
}
}
if (options && options.all) {
callback(null, list);
return;
}
callback(null, list[0].address, list[0].family);
});
};
}Additionally, direct fetch operations (such as SPARQL tooling queries) now execute assertHostnameResolvesSafe prior to initializing the HTTP protocol phase, forcing validation of the actual resolved IP addresses. The mitigation of TOCTOU DNS hazards is accomplished by pinning target addresses.
Exploiting this flaw requires an attacker to interact with the exposed MCP server tools. An attacker sends a formatted request containing a malicious URL parameter designed to exploit DNS resolution.
The primary attack vector uses a wildcard DNS service such as nip.io or lvh.me to point back to the local host or AWS infrastructure addresses. An attacker target configuration can resolve directly to 127.0.0.1 or the link-local metadata address 169.254.169.254:
http://local-test.127.0.0.1.nip.io resolves to 127.0.0.1http://aws-metadata.169.254.169.254.nip.io resolves to 169.254.169.254The exploit is executed by issuing a JSON-RPC request to the MCP server API to run a tool, such as ckan_status_show or ckan_package_search:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "ckan_status_show",
"arguments": {
"server_url": "http://aws-metadata.169.254.169.254.nip.io"
}
}
}The server receives the input parameter and evaluates the host against the regex check. Because the host string contains alphabetical characters (aws-metadata), the check succeeds.
Next, the client HTTP stack resolves the hostname and makes an HTTP connection to the AWS IMDS endpoint. The server reads the response from the link-local address and outputs the resulting session metadata or access tokens in the JSON-RPC response.
The impact of this vulnerability depends on the deployment architecture of the CKAN MCP Server. In cloud environments like AWS, GCP, or Azure, the server can access internal metadata endpoints.
On AWS, an attacker can extract credentials by calling the Instance Metadata Service (IMDS). If IMDSv1 is active or IMDSv2 hop limits allow access, the attacker can extract IAM credentials associated with the server's execution role.
If the server is deployed on-premise, this vulnerability allows attackers to bypass network perimeters. Attackers can scan local network services, communicate with databases, or access admin interfaces running on 127.0.0.1 or local subnets.
The primary remediation for this vulnerability is upgrading @aborruso/ckan-mcp-server to version 0.4.108 or later. This update changes the connection pipeline to validate resolved IP addresses instead of hostname strings.
For systems that cannot be immediately updated, administrators can restrict outgoing network traffic using firewalls. Egress filtering rules should block the server from connecting to loopback (127.0.0.1/8), private networks (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), and local link addresses (169.254.0.0/16).
Administrators can also configure domain restrictions by setting the CKAN_ALLOWED_DOMAINS environment variable. This variable restricts the server's outgoing connections to a defined list of trusted domain names.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N| Attribute | Detail |
|---|---|
| CWE ID | CWE-918 |
| Attack Vector | Network (AV:N) |
| CVSS Severity Score | 5.7 (Medium) |
| EPSS Score | 0.00221 (Percentile: 12.95%) |
| Exploit Status | poc |
| KEV Status | Not Listed |
CVE-2026-58272 is a timing side-channel vulnerability in the authentication endpoint of Sync-in Server before version 2.4.1. Unauthenticated remote attackers can distinguish between valid and invalid usernames due to asymmetric execution paths. When processing invalid usernames, the database query returns early, skipping the computationally expensive bcrypt verification path that is normally triggered for valid accounts.
A security feature bypass vulnerability in the Falco k8saudit plugin (and its cloud-specific variants) allowed privileged workloads to run undetected. This bypass occurred because the plugin's default extraction logic and rules only evaluated standard containers, completely omitting initContainers and ephemeralContainers.
nginx-ignition is a web-based user interface for managing the Nginx web server. In versions 2.33.0 through 2.35.0, the application is vulnerable to an improper authentication flaw (CWE-287) in its Multi-Factor Authentication (MFA) implementation. The stateless validation of Time-Based One-Time Passwords (TOTP) allows an attacker to reuse a captured, active verification code multiple times within the standard 30-second validity window, successfully bypassing secondary authentication checks if primary credentials are known.
A vulnerability exists in the i18n middleware of nginx-ignition, enabling CPU amplification attacks. By transmitting a crafted Accept-Language header containing malformed tags separated by underscores, an unauthenticated remote attacker can bypass the length-guard threshold of the underlying Go parsing library. Normalization of underscores to hyphens occurs after the initial validation checks, forcing the parser into expensive quadratic-time loops that consume 100% of available CPU resources. This leads to a complete denial of service for the administrative API and potentially degrades the availability of the hosting system. This vulnerability has been resolved in version 2.40.1.
Nginx Ignition prior to version 2.41.1 contains a Time-of-Check to Time-of-Use (TOCTOU) race condition in its unauthenticated onboarding API endpoint. This flaw allows remote, unauthenticated attackers to register an administrative account by sending concurrent HTTP requests during the initial system configuration phase, bypassing the check meant to restrict onboarding to a single initial administrator.
A logic error in Hatchet's OAuth state validation mechanism allows unauthenticated remote attackers to bypass state parameter verification. By submitting an empty state parameter, attackers can exploit an equality collision with cleared session keys, facilitating Login Cross-Site Request Forgery (Login CSRF) or Session Fixation.