· via dev.to (home feed)
Flyto2 Core SSRF guard checked one DNS answer and connected to another (CVE-2026-77316)
Flyto2 Core before 2.26.8 validated SSRF guards against one DNS answer while the connection performed a second lookup, letting attacker-controlled DNS reach internal addresses. The 2.26.8 release closes the gap.

A check and a connection that saw different DNS answers
Flyto2 Core, in releases prior to 2.26.8, contained a server-side request forgery bypass tracked as CVE-2026-77316 and referenced by advisory GHSA-6pm8-6f34-9v3g. According to a write-up on dev.to, the flaw sits in how the platform's URL validation interacted with its HTTP layer. The validate_url_ssrf function resolved a hostname, inspected the resulting address, and then handed back the hostname itself. The actual request, issued later through guarded_aiohttp_request and related helpers, triggered a fresh DNS lookup of its own.
That gap is a textbook time-of-check to time-of-use problem. Whoever controls DNS for a domain can serve a public address when the guard asks and an internal address when the connection asks. The validation verdict describes one set of addresses; the socket dials another.
Many features share the same broken path
Because the vulnerable logic lives in a shared helper, the blast radius is wide. The write-up lists HTTP requests, GraphQL queries, monitoring checks, notifications, vision analysis, visual diffing, and proxy rotation as affected consumers. A workflow engine tends to expose several routes into one validation function, so patching an individual node definition while leaving the library stale keeps the alternate routes open.
Upgrading is step one; verifying is step two
The fix ships in Flyto2 Core 2.26.8. The dev.to author stresses that installing the patch is not the same as running it: a correct lockfile says little if a stale virtual environment, an old container layer, or a vendored copy still holds the previous module. The recommended procedure is to read the package version from the live Python runtime, inspect the build artifact directly, and restart workers afterward.
The durable fix: pin the address at connect time
The structural remedy is destination pinning. Resolve the host, validate every address that comes back, choose one that is approved, and connect to that specific address while keeping the original Host header and TLS server name intact. Redirects that would leave the approved scope should be rejected unless the new destination goes through the same validation. Put simply, the DNS answer the guard approved must be the same answer the socket uses.
Defense in depth and detection
Egress control forms the second barrier. A workflow runner whose task only needs a public API has no business reaching cloud metadata services, cluster-internal services, or administration networks. The write-up recommends a destination allowlist or an authenticated proxy that performs its own address validation, plus logging of both the resolved address and the address actually connected, so mismatches can be investigated.
On the operational side, the post advises treating user-supplied URLs and webhook destinations as untrusted, applying identical checks to GraphQL endpoints and notification integrations, and testing with a staging DNS zone configured to alternate between an approved address and a loopback or private address. Such a test should confirm that the request fails at the connection layer and that no redirect or retry path slips past the decision.
Teams responding to the advisory should also comb existing workflow definitions for URLs introduced after those workflows were first validated. A successful response from an internal service is something to preserve as evidence during an investigation, not proof that the access was authorized. Correlating request ID, workflow run, actor, destination, and response size lets responders reconstruct what happened.
Why it matters
Any DNS rebinding defense ultimately rests on the address the socket dials, not the one a guard approved. CVE-2026-77316 is a clean demonstration of why validating a URL string or blocking literal private IPs falls short when the resolver can answer differently between decision and use. The validate-then-connect pattern the bug exploits is not unique to Flyto2: any application that resolves a name for a security check and then lets the HTTP client resolve it again carries the same latent flaw. The Flyto2 fix closes the gap for the patched package, but the write-up's closing point stands on its own: deployments need the same property in their proxies and egress layers, where a second DNS lookup can quietly undo a first validation.
- #security
- #dns
- #ssrf
- #vulnerability
- #python