GHSA-83x6-42hr-jc76 is a medium-severity (CVSS 5.3) Improper Input Validation vulnerability in @aborruso/ckan-mcp-server. O3 Security confirms whether GHSA-83x6-42hr-jc76 is actually reachable in your code before you act, and blocks exploitation at runtime until you patch.
CKAN MCP Server: MQA server allowlist bypass via unanchored regex (`isValidMqaServer`)
Exploitation Status
No confirmed exploitation observed yet
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for GHSA-83x6-42hr-jc76.
EPSS Exploitation Probability
EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.
How urgent is this, really
GHSA-83x6-42hr-jc76 plotted by exploitation likelihood (EPSS) against impact (CVSS). The shaded corner — EPSS 50%+ and CVSS 7.0+ — is where this CVE doesn't sit, though severity or exploitability alone can still warrant action.
Where this sits among everything scored
Of 367,327 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Real counts from FIRST.org, not a sample — log-scaled since the landscape is heavily right-skewed.
Real-World Exposure
@aborruso/ckan-mcp-serverReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects npm packages — download data is not available via public APIs for these ecosystems.
Description
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
// 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
makeCkanRequestblocks 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 validation passes on a string whose actual host is fully attacker-chosen.
Proof of concept
poc/mqa-allowlist-poc.mjs runs the verbatim regex over benign and malicious URLs:
accepted expected_legit url
true true https://dati.gov.it/opendata <- legit
true false https://dati.gov.it.attacker.com/x <- BYPASS
true false http://dati.gov.it.evil.example/api <- BYPASS
true false https://[email protected]/x <- BYPASS
Remediation
Validate the parsed host, not the raw string. For example:
function isValidMqaServer(serverUrl) {
let u; try { u = new URL(serverUrl); } catch { return false; }
if (u.protocol !== "https:") return false;
const h = u.hostname.toLowerCase();
return h === "dati.gov.it" || h === "www.dati.gov.it";
// or: h === "dati.gov.it" || h.endsWith(".dati.gov.it")
}
Anchoring the regex end-to-end (/^https:\/\/(www\.)?dati\.gov\.it(\/|$)/i) also closes the suffix trick, but URL-parsing + exact host comparison is the robust fix and also neutralizes the @-userinfo variant.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | @aborruso/ckan-mcp-server | all versions | 0.4.112 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for @aborruso/ckan-mcp-server. O3's reachability analysis confirms whether the vulnerable code path is actually invoked in your application, so you act on real exposure instead of every transitive match.
Fix
Update @aborruso/ckan-mcp-server to 0.4.112 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-83x6-42hr-jc76 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How O3 protects you
O3 pinpoints whether GHSA-83x6-42hr-jc76 is reachable in your code and exactly where to fix it, then blocks exploitation in production at runtime until the patched version is deployed.
Tailored to GHSA-83x6-42hr-jc76. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Frequently Asked Questions
Is GHSA-83x6-42hr-jc76 in your dependencies?
O3 detects GHSA-83x6-42hr-jc76 across npm dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.