# GHSA-X32R-MH7G-Q2RF: SSRF guard bypass: isBlockedIp misses NAT64/6to4/IPv4-compatible IPv6 ranges (CVE-2026-61612 chain incomplete)

- Database: GitHub
- Severity: CVSS 6.8 (Medium)
- Published: 2026-08-20
- Modified: 2026-09-15

## Tracked as

- [CVE-2026-92146](https://cve.now/CVE-2026-92146.md): CKAN MCP Server: SSRF guard bypass - isBlockedIp misses NAT64/6to4/IPv4-compatible IPv6 ranges (CVE-2026-61612 chain incomplete)

## Affected versions

- @aborruso/ckan-mcp-server (npm): through 0.4.118

## Description

## Summary

`isBlockedIp()` in `src/utils/http.ts` decided whether an IP is internal by matching the
*start of the address string*. IPv6 has several ranges that embed an IPv4 address, and none
of them were recognised, so an internal IPv4 host expressed in IPv6 form was classified as
public: `64:ff9b::a9fe:a9fe` is the NAT64 encoding of `169.254.169.254` (the cloud metadata
endpoint) and `2002:c0a8:101::` is the 6to4 encoding of `192.168.1.1`.

This is a single defect: one missing normalization-and-classification pass in `isBlockedIp`.
The affected ranges (`64:ff9b::/96`, `64:ff9b:1::/48`, `2002::/16`, `::/96`) are not
independently fixable — they are the same gap seen from different prefixes, and any patch
that classifies a parsed address correctly closes all of them at once, while any patch that
appends one prefix to the string-matching chain leaves the rest (and the non-canonical
spellings of each) open.

Because `isBlockedIp()` is the single shared decision point for BOTH the literal-URL guard
(`validateServerUrl`) and the connection-time DNS-resolution guard (`createSsrfSafeLookup` /
`assertHostnameResolvesSafe`), the gap applied to both halves: an attacker could pass the
address as an IPv6 literal, or as a hostname whose AAAA record resolves to one.

## Impact

SSRF to internal IPv4 destinations (RFC1918, link-local, cloud metadata) expressed as
IPv6-embedded addresses, defeating the protection built by the
CVE-2026-33060 → 53509 → 61612 → 76811/76812 chain.

Preconditions, stated for accuracy: the HTTP transport's mandatory domain allowlist rejects a
bare IPv6 literal unless the operator explicitly set `CKAN_HTTP_ALLOW_ALL=true`, so the issue
is live mainly on (a) HTTP with that opt-out, or (b) the stdio/local transport; and the
deployment host must route the embedding prefix — NAT64 is active on IPv6-only cloud subnets,
while 6to4 and `::/96` are largely deprecated.

## Affected

- Package: `@aborruso/ckan-mcp-server` (npm)
- Vulnerable: `<= 0.4.118`
- Fixed: `0.4.119`

## Remediation

Fixed in 0.4.119 by classifying on the parsed address rather than on its spelling: a
`parseIpv6` helper expands any form of an address — compressed, expanded, upper-case, leading
zeros, trailing dotted-quad, zone id — into eight 16-bit words, and the classifier decides on
values. Unparseable input containing a colon now fails closed. Ranges blocked: `::/96`,
`::ffff:0:0/96`, `64:ff9b::/96`, `64:ff9b:1::/48`, `2002::/16`, `fc00::/7`, `fe80::/10`.

The DNS half needed no change: `createSsrfSafeLookup` already resolves with `all: true` and
`family: 0` and inspects every returned address, so AAAA records were always seen — the
classifier was accepting them.

### Hardening (not part of the vector)

0.4.119 also blocks Teredo `2001::/32` and IPv4 `198.18.0.0/15`. Both embed *public*
addresses and open no path to internal hosts; they are completeness, not remediation, and are
excluded from the severity assessment.

## Credit

Reported by @0xRomSec, with a precise root-cause analysis and an honest statement of the
routing preconditions.

## References

- https://github.com/ondata/ckan-mcp-server/security/advisories/GHSA-x32r-mh7g-q2rf

Page: https://cve.now/GHSA-X32R-MH7G-Q2RF

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
