OSV 1.4.0 · github-reviewed · 修改于 2026-09-03 22:49
发布时间
2026-09-03 22:49
GitHub 审查时间
2026-09-03 22:49
NVD 发布时间
2026-08-15 01:20
源文件
advisories/github-reviewed/2026/09/GHSA-6f9w-9hf2-5rg3/GHSA-6f9w-9hf2-5rg3.json
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).
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, ... });
success=false error string (turning otherwise-blind SSRF into a semi-blind/return-value SSRF for any host that reaches the guards).ECONNREFUSED 169.254.169.254:80), which confirm internal reachability and infrastructure, and any stack/path fragments an upstream includes.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.
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
message being reflected to the caller.
ECONNREFUSED 169.254.169.254JSON.stringify(decodedData) in caller-visible errors; cap and
redact any reflected content.error.message from the response data (or
replace with a correlation id) in production.