low

CVE-2026-73844

npm · @aborruso/ckan-mcp-server

Summary

CKAN MCP Server: Information disclosure via verbose error reflection

Severity
low
CVSS
3.7
EPSS
0.2% (p13)
CWE
CWE-209, CWE-210
Also known as
GHSA-6f9w-9hf2-5rg3
Published
2026-09-03
Updated
2026-09-03

Advisory details

Summary

Error paths reflect raw upstream response bodies and internal exception messages back to the caller instead of a sanitized, generic message. When the server is pointed at (or redirected/SSRF'd to) a host that returns a non-CKAN response, or when an internal exception occurs, the caller receives verbatim upstream content and internal detail (hostnames, internal IPs, DB errors, stack fragments).

Affected code

src/utils/http.ts — the entire decoded upstream body is embedded in the thrown error, which formatCkanError returns to the tool result:

} else {
  throw new CkanApiError(
    `CKAN API returned success=false: ${JSON.stringify(decodedData)}`,   // full body reflected
    undefined,
    action
  );
}

src/worker.ts — the catch-all handler returns the raw Error.message in the JSON-RPC data field:

return new Response(JSON.stringify({
  jsonrpc: '2.0',
  error: { code: -32603, message: 'Internal error',
           data: error instanceof Error ? error.message : String(error) },  // raw internal message
  id: null
}), { status: 500, ... });

Impact

Severity is Low on its own (the server holds no credentials of its own and sends no auth upstream), but it meaningfully amplifies the SSRF findings by providing a response-content channel.

Proof of concept

poc/error-disclosure-poc.mjs reproduces both paths and shows an upstream body (containing a simulated DB error with an internal IP) and an internal ECONNREFUSED 169.254.169.254 message being reflected to the caller.

Remediation

References

Related advisories

Is your project exposed to this? Stateward checks every dependency on every pull request and flags it only if your code actually reaches it.

Check my repo

Summarize with AI

ChatGPTClaudePerplexity

Sources: CISA KEV (public domain), OSV.dev & GitHub Advisory Database (CC-BY-4.0), FIRST EPSS, NVD/CWE (public domain). Served live from the Stateward advisory database.