mediumCVSS 5.3Vulnerability

CVE-2026-73845

## Summary The `ckan_get_mqa_quality` and `ckan_get_mqa_quality_details` tools restrict their `server_url` argument to `dati.gov.it` via a regular expression. The regex is anchored only at the start and places no boundary after the host, so any URL whose host merely **begins with** `dati.gov.it` — or that uses `dati.gov.it` as URL *userinfo* before an `@` — passes validation while actually targeting an attacker-controlled host. ## Affected code ```js // src/tools/quality.ts const ALLOWED_SERVER_PATTERNS = [ /^https?:\/\/(www\.)?dati\.gov\.it/i // <-- no end anchor / host boundary ]; export function isValidMqaServer(serverUrl: string): boolean { return ALLOWED_SERVER_PATTERNS.some(pattern => pattern.test(serverUrl)); } ``` All of the following return `true`: | URL | Real host | |-----|-----------| | `https://dati.gov.it.attacker.com/x` | `dati.gov.it.attacker.com` (attacker) | | `http://dati.gov.it.evil.example/api` | `dati.gov.it.evil.example` (attacker) | | `https://[email protected]/x` | `attacker.com` (userinfo trick) | After passing this check, `server_url` flows into `getMqaQuality`/`getMqaQualityDetails`, which call `makeCkanRequest(serverUrl, "package_show", { id })`. The server therefore issues a request to the attacker-controlled host and returns its (parsed) response to the caller. ## Impact - The intended "dati.gov.it only" trust boundary for the MQA tools is defeated; they can be driven against arbitrary external hosts. - The attacker host receives the request (including the `dataset_id`) and controls the response body that is surfaced back to the model/user — enabling response spoofing and, in an agentic setting, indirect prompt-injection content delivered under the guise of a trusted-portal tool. - Contributes to SSRF surface: while `makeCkanRequest` blocks private/internal IPs, this bypass removes the domain restriction that the code intends to enforce for these tools. The `@`-userinfo variant is the most severe form because

Properties

ghsa_id
GHSA-83x6-42hr-jc76
severity
medium
summary
CKAN MCP Server: MQA server allowlist bypass via unanchored regex (`isValidMqaServer`)
cvss_score
5.3
cve_id
CVE-2026-73845
cvss_vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
is_ghsa_only
false
ghsa_published
2026-09-02T14:52:21Z
source_url
https://github.com/advisories/GHSA-83x6-42hr-jc76
ghsa_updated
2026-09-02T14:52:22Z

Related Entities (6)

VULNERABLE_TO (1)

[Software]npm/@aborruso/ckan-mcp-server

AFFECTS (1)

[Software]npm/@aborruso/ckan-mcp-server

HAS_WEAKNESS (3)

[Weakness]Improper Input Validation
[Weakness]Server-Side Request Forgery (SSRF)
[Weakness]Permissive Regular Expression

REPORTED_BY (1)

[Source]GitHub Advisory Database

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-73845 (CVSS 5.3) — Ninja Signal Threat Intelligence | Ninja Signal