OpenConnector: SSRF guard bypass through DNS
OpenConnector SSRF guard - provider URL checks looked only at the URL text, so a public hostname that resolves to an internal address reached cloud metadata and internal services (GHSA-mpjw-xg3p-wwp3)
Fixed in OpenConnector 1.2.0 (2026-07-16) by #97, which routes all provider requests through one guarded fetch that checks every redirect and the addresses a hostname resolves to. A small DNS timing gap remains, which the project documents. Track the fix at oomol-lab/open-connector#97.
- Product
- OpenConnector (self-hosted credential gateway for AI agents) in oomol-lab/open-connector
- Affected versions
- OpenConnector releases before 1.2.0 (1.0.0 to 1.1.0, 2026-07-08 to 2026-07-13). Fixed in 1.2.0 (2026-07-16). The npm package was first published at 1.6.0, so no npm version is affected.
- Severity
- HIGH
- Status
- Patched
- Weaknesses
- CWE-918Server-Side Request Forgery (SSRF)
- CWE-367Time-of-check Time-of-use (TOCTOU) Race Condition
- GitHub advisory
- GHSA-mpjw-xg3p-wwp3
Private; in triage, not yet published by the maintainer - CVE
- Pending (requested via MITRE CNA-LR)
- Published
- Credit
- Finder: Aaron Elijah Mars of Aeon. Tool: Aeon (https://www.aeon.fun).
What users should do now
- Run OpenConnector 1.2.0 or later. If you run the Docker image, pull a current tag; any npm install is already fixed.
- Set a runtime token, so only your own agents can call
/v1and/mcp. - Block the server's outbound access to internal addresses at the network level too, above all the cloud metadata address
169.254.169.254(on AWS, require IMDSv2 with a hop limit of 1). This also covers the small DNS timing gap described below. - If you ran an older version on a cloud host, rotate the cloud role credentials the host could read from its metadata service.
Summary
assertPublicHttpUrl() in src/core/request.ts is the guard provider actions run before they fetch a caller-supplied URL. Before 1.2.0 it parsed the URL and compared the hostname text with block lists: local names, cloud metadata names, private and reserved IPv4 ranges, and any IPv6 address. It never resolved the hostname. The request was then made with the plain fetch, which does its own DNS lookup when it connects. So a public hostname with a DNS record that points at 127.0.0.1, a 10.x address or 169.254.169.254 passed the guard, and the server connected to that internal address.
Correction to our original report: it also listed IP addresses written in hex, octal, as one decimal number or in short form. Those do not get through. Node's URL parser turns them into the normal dotted form before the guard sees them, so the guard blocks them. The DNS path above is the real issue.
Affected versions
OpenConnector 1.0.0 to 1.1.0, self-hosted from source or the Docker image, with any provider action that fetches a caller-supplied URL. Examples are the IMA knowledge-base upload and the YouTube video upload, and about 25 other providers run the same guard on caller input.
Impact
- Reading internal data. The IMA and YouTube upload actions download the bytes at the URL and send them on to a destination the caller controls on that service. Pointed at a cloud metadata service, this could hand the host's cloud role credentials to the caller.
- Requests to internal services. The other providers could be aimed at admin panels and other services that are only reachable from inside the network.
- Who can trigger it. Anyone who can call the runtime API. On a deployment with no runtime token,
/v1and/mcptake requests without one. The more likely path is an AI agent connected to OpenConnector that reads untrusted content and is steered into calling one of these actions with a chosen URL.
Affected code
Permalinks at 367dbfc, the last commit on main before the fix.
- Text-only hostname checks, no DNS lookup: src/core/request.ts#L195-L238
- IMA upload checks the URL, then downloads it with the plain fetch: src/providers/ima/runtime.ts#L595-L598 and #L876-L885
- YouTube upload source fetch: src/providers/youtube/runtime.ts#L906-L915
- Runtime API open when no token is configured: src/server/api/auth.ts#L28-L35
Fix
- #97 ("harden provider egress against SSRF redirect and DNS-rebinding", merged 2026-07-14 as 1195de2) adds one guarded fetch that every provider now uses. It checks the URL and every redirect target with
assertPublicHttpUrl, follows redirects itself and drops credential headers when a redirect goes to another site, and resolves each hostname before each request and blocks it if any address is internal. A failed lookup also blocks the request. It also adds IPv6 parsing for IPv4-mapped and similar forms. Released in 1.2.0. - What remains, as the project documents in src/core/guarded-fetch.ts#L203-L212: the guard looks up the hostname, and
fetchlooks it up again when it connects. A DNS record with a very short lifetime can answer the two lookups differently (DNS rebinding). Closing that fully needs the connection pinned to the checked address, which the standard fetch API cannot express. On a runtime with nonode:dns, the lookup step is skipped and only the URL and redirect checks apply. Network-level egress rules, as in step 3 above, cover this gap.
Timeline
- Reported privately via GitHub PVR (GHSA-mpjw-xg3p-wwp3).
- Maintainers merge #97.
- OpenConnector 1.2.0 released with the fix.
- We review the fix on the advisory and note the remaining DNS timing gap.
- We confirm the fix at HEAD.
- We ask the maintainers to publish the advisory and request a CVE; a CVE ID is reserved with MITRE as a fallback.
- Follow-up on the advisory.
- We tell the maintainers on the advisory that this write-up will go out on 2026-11-25, with a correction to our report. No reply.
- Public write-up; CVE publication requested from MITRE.
Credit
Finder: Aaron Elijah Mars of Aeon. Tool: Aeon.
References
- Fix PR (merged 2026-07-14): oomol-lab/open-connector#97; merge commit 1195de2
- Fixed release: OpenConnector 1.2.0
- GitHub advisory: GHSA-mpjw-xg3p-wwp3 (private; in triage)
- CVE: pending (requested via MITRE CNA-LR)
- Affected repository: oomol-lab/open-connector