Skip to main content
Menu
Advisories

Summary The Skilled OpenAPI executor's SSRF guard resolves an operation's hostname with dns.lookup() and refuses the request if any address it gets is in a blocked range

GHSA-WF4Q-P4C2-97HRPublished Updated GitHub

Description

The Skilled OpenAPI executor's SSRF guard resolves an operation's hostname with dns.lookup() and refuses the request if any address it gets is in a blocked range. That includes the always-forbidden metadata and link-local ranges, which hold even for a bundle that declares an internal base URL. The executor then calls fetch(req.url) with the hostname, which resolves it again on its own. Nothing pins the connection to the addresses the guard checked.

A hostname whose DNS answer changes between the two lookups therefore passes the guard, and the request goes to the blocked address, carrying any credential the vault injects for the operation. This is DNS rebinding: a short-TTL record that answers a public address first and 169.254.169.254 or 127.0.0.1 next.

Details

All references are to v1.10.13.

  • The check: ssrf-guard.ts:176-195 resolves the name with dns.lookup(literal.address, { all: true }) and checks each address.
  • The use: openapi-runtime.ts:243 calls checkOutboundUrl(req.url, allowedHosts, outbound), and :288 then calls fetchImpl(req.url, …) with the same hostname. undici resolves it independently.
  • What still applies: the host allowlist (allowedHosts). The attacker needs a host on it whose DNS they control: a bundle that declares an attacker-controlled base URL, the case the always-on denylist is meant to cover (as in GHSA-4r57-gvgj-5crm), or an allowed domain whose DNS is compromised.
  • With outbound.egressProxy, the proxy does the second resolution, and the same gap applies.
  • IP-literal hosts are checked directly and aren't affected (ssrf-guard.ts:162-168).
  • Affected versions: since the DNS check was added, in 1.2.0.

PoC

Read in the source; not yet demonstrated against a rebinding resolver. To demonstrate:

  1. Give a bundle an operation whose base URL is a rebinding hostname: one that answers a public address on the first query and 169.254.169.254 on the next, with TTL 0.
  2. Allow that host, and call the operation.
  3. The guard's lookup gets the public address and passes the request; fetch's lookup gets the metadata address and connects to it.

Impact

Bypass of the SSRF guard's always-on metadata and link-local block, and of its private-network block. For an operation whose host the attacker can make resolve differently on two lookups, the response from the internal address is returned to the caller.

Suggested fix

  • Resolve once, and connect to the address that was checked: pass fetch an undici Agent whose connect.lookup returns the address the guard validated, keeping the hostname for Host and SNI. Or check the connected socket's remoteAddress before sending the request.
  • For the egress proxy path, have the proxy enforce the same blocklist.

This gap was noted in one line, without details, in frontmcp.dev's public docs/upstream-issues.md until 2026-10-28.

Affected versions

References

GitHub · agentfront/frontmcp