Flyto2 checked one DNS answer and connected to another
Flyto2 Core before 2.26.8 contained an SSRF guard bypass tracked as CVE-2026-77316. The validate_url_ssrf function resolved a hostname, checked the answer, and then returned the hostname. Later, guarded_aiohttp_request and related helpers let the connection perform another DNS lookup. An attacker who controls DNS can answer the check with a public address and the connection with an internal one.
This is a time-of-check to time-of-use gap. The validation result describes one address set. The connection uses another. Blocking literal private IPs or checking a URL string is not enough when the resolver can change between decisions.
The affected consumers are broad because they share the helper. The advisory lists HTTP requests, GraphQL queries, monitoring checks, notifications, vision analysis, visual diff, and proxy rotation. A workflow engine can expose more than one route to the same flawed validation function. Fixing a single node definition without updating the library leaves another path open.
Upgrade to 2.26.8 and confirm that the running Python environment imports the patched package. A lockfile can be correct while a stale virtual environment, container layer, or vendored copy keeps the old module in memory. Use the package version reported by the runtime and inspect the build artifact, then restart workers.
The durable control is destination pinning at connection time. Resolve the host, validate every returned address, choose an approved address, and connect to that address while preserving the original host header and TLS server name. Reject redirects that leave the approved scope unless the new target is validated with the same process.
Network egress is the second barrier. A workflow runner should not be able to reach cloud metadata, cluster services, or the administration network when its task only needs a public API. Apply a destination allowlist or an authenticated proxy that performs its own address validation. Log the resolved address and final connected address so a mismatch can be investigated.
Treat user-supplied URLs and webhook destinations as untrusted inputs. Apply the same checks to GraphQL endpoints and notification integrations. Test with a staging DNS zone that can alternate between an approved address and a loopback or private address. Confirm that the request fails at the connection layer and that no redirect or retry path bypasses the decision.
Review existing workflow definitions for URLs that were added after the initial validation. A successful response from an internal service is evidence to preserve, not proof of authorized use. Align the request ID, workflow run, actor, destination, and response size so the investigation can reconstruct what happened.
DNS rebinding defenses are only as strong as the address actually used by the socket. Flyto2's fix closes the gap for the patched package. Deployments need the same property in their proxy and egress layers.
Top comments (0)