{"vuln_id":"CVE-2026-77316","aliases":["GHSA-6pm8-6f34-9v3g","CVE-2026-55787","GHSA-pgwh-4jj4-qm8v","GHSA-c9hr-64h3-gxpc","GHSA-794r-5rp2-fpg8"],"description":"Flyto2 Core: SSRF guard bypass via DNS rebinding (validate_url_ssrf resolves-then-connects without pinning)","published_at":"2026-11-19T22:18:44.607000Z","modified_at":"2026-11-20T00:15:05.459159Z","first_seen_at":"2026-11-21T19:15:19.318431Z","severity":"high","severity_source":"nvd","cvss_score":7.1,"cvss_vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N","cwe":["CWE-918"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00347,"epss_percentile":0.2888,"nvd_status":"Received","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-77316"},"matched_alias":null,"items":[{"id":10686,"source":{"id":"osv","name":"OSV.dev"},"title":"GHSA-6pm8-6f34-9v3g: Flyto2 Core: SSRF guard bypass via DNS rebinding (validate_url_ssrf resolves-then-connects without pinning)","summary":"Flyto2 Core: SSRF guard bypass via DNS rebinding (validate_url_ssrf resolves-then-connects without pinning)\n\n# [MEDIUM] SSRF guard bypass via DNS rebinding — validate_url_ssrf resolves-then-connects without pinning\n\n- **CWE:** CWE-918 (SSRF) / CWE-367 (TOCTOU).\n- **CVSS v3.1:** `AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N` = **6.8 Medium** (AC:H — needs attacker-controlled DNS with a low/zero TTL and to flip the answer between the guard's lookup and the connection's lookup; S:C — reaches internal/metadata services the guard is meant to block; C:H — e.g. cloud metadata credentials at 169.254.169.254).\n- **Affected component:** `flyto-core` (PyPI `flyto-core`), HEAD `ae2b38e` (v2.26.7). `src/core/utils.py::validate_url_ssrf` (resolution at `getaddrinfo` ~L512, `is_private_ip` check ~L515) and every consumer: `guarded_aiohttp_request()`, `enforce_outbound_url()`/`validate_url_with_env_config()` — i.e. `http.get/request/batch`, `graphql.query/mutation`, `monitor.http_check`, `notification.{slack,discord,teams}`, `ai.vision_analyze`, `verify.visual_diff`, `browser.proxy_rotate`, etc.\n- **Relationship:** Incomplete hardening of the SSRF-guard family (**GHSA-pgwh-4jj4-qm8v**, **GHSA-c9hr-64h3-gxpc**, **GHSA-794r-5rp2-fpg8**/CVE-2026-55787). Those fixes added per-module coverage, redirect revalidation, and IPv6-transition range-checks — but none pins the resolved address, so the guard's resolve-then-connect gap defeats all of them.\n\n## Root cause\n`validate_url_ssrf()` resolves the hostname with `socket.getaddrinfo()` and rejects the URL if any resolved IP is private. It then returns the **URL string** (hostname intact). The caller (`guarded_aiohttp_request`: `validate_url_with_env_config(url)` then `session.request(method, url, ...)`) hands the hostname to aiohttp, which performs an **independent second DNS resolution** at connect time. The validated IP is never pinned for the connection, so an attacker whose authoritative DNS returns a public A record for the guard's lookup and a private/loopback/metadata address for the connection's lookup reaches internal space. aiohttp resolves via its own resolver, distinct from the guard's `socket.getaddrinfo`, so the two lookups are genuinely separate — one flip is sufficient.\n\n## Reachability\n1. Attacker controls DNS for `rebind.attacker.test` (TTL 0), and drives any guarded HTTP module with `url=http://rebind.attacker.test/` (recipe / MCP `execute_module`).\n2. Guard: `getaddrinfo` → public IP → `is_private_ip` false → **URL allowed**.\n3. Outbound request: aiohttp re-resolves `rebind.attacker.test` → attacker now answers `127.0.0.1` / `169.254.169.254` → connects to the internal target. Redirect revalidation (GHSA-c9hr) does not help — the initial hop already rebinds.\n\n## Executable PoC (benign, local; deterministic)\nThe attacker's TTL=0 flip is modelled by making `socket.getaddrinfo` return public on lookup #1 (the guard's) and loopback on later lookups (the connection's); a raw local TCP sentinel stands in for the internal service. No payload is sent.\n\n```python\n# (full source: findings/flyto-core/raw/poc_dns_rebinding.py)\n# \n\nAffected: PyPI:flyto-core\n\nFixed in: 2.26.8\n\nReferences:\nhttps://github.com/flytohub/flyto-core/security/advisories/GHSA-6pm8-6f34-9v3g\nhttps://github.com/flytohub/flyto-core/commit/bf748df864d348004cf45d830bc59f62c5c4a58a\nhttps://github.com/flytohub/flyto-core\nhttps://github.com/flytohub/flyto-core/releases/tag/v2.26.8","url":"https://osv.dev/vulnerability/GHSA-6pm8-6f34-9v3g","published_at":"2026-11-20T00:11:24Z","updated_at":"2026-11-20T00:15:05.459159Z","fetched_at":"2026-11-21T19:15:55.946103Z","severity":"high","cvss_score":7.1,"epss":0.00347,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"flyto-core","vuln_id":"CVE-2026-77316","vuln_ids":["CVE-2026-55787","CVE-2026-77316","GHSA-6PM8-6F34-9V3G","GHSA-794R-5RP2-FPG8","GHSA-C9HR-64H3-GXPC","GHSA-PGWH-4JJ4-QM8V"],"tags":["osv","pypi","fix-available"],"cluster_id":2095,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/10686","html":"https://vulnwatch.ve1ve2.com/item/10686"}},{"id":2335,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-6pm8-6f34-9v3g / CVE-2026-77316: Flyto2 Core: SSRF guard bypass via DNS rebinding (validate_url_ssrf resolves-then-connects without pinning)","summary":"Flyto2 Core: SSRF guard bypass via DNS rebinding (validate_url_ssrf resolves-then-connects without pinning)\n\n# [MEDIUM] SSRF guard bypass via DNS rebinding — validate_url_ssrf resolves-then-connects without pinning\n\n- **CWE:** CWE-918 (SSRF) / CWE-367 (TOCTOU).\n- **CVSS v3.1:** `AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N` = **6.8 Medium** (AC:H — needs attacker-controlled DNS with a low/zero TTL and to flip the answer between the guard's lookup and the connection's lookup; S:C — reaches internal/metadata services the guard is meant to block; C:H — e.g. cloud metadata credentials at 169.254.169.254).\n- **Affected component:** `flyto-core` (PyPI `flyto-core`), HEAD `ae2b38e` (v2.26.7). `src/core/utils.py::validate_url_ssrf` (resolution at `getaddrinfo` ~L512, `is_private_ip` check ~L515) and every consumer: `guarded_aiohttp_request()`, `enforce_outbound_url()`/`validate_url_with_env_config()` — i.e. `http.get/request/batch`, `graphql.query/mutation`, `monitor.http_check`, `notification.{slack,discord,teams}`, `ai.vision_analyze`, `verify.visual_diff`, `browser.proxy_rotate`, etc.\n- **Relationship:** Incomplete hardening of the SSRF-guard family (**GHSA-pgwh-4jj4-qm8v**, **GHSA-c9hr-64h3-gxpc**, **GHSA-794r-5rp2-fpg8**/CVE-2026-55787). Those fixes added per-module coverage, redirect revalidation, and IPv6-transition range-checks — but none pins the resolved address, so the guard's resolve-then-connect gap defeats all of them.\n\n## Root cause\n`validate_url_ssrf()` resolves the hostname with `socket.getaddrinfo()` and rejects the URL if any resolved IP is private. It then returns the **URL string** (hostname intact). The caller (`guarded_aiohttp_request`: `validate_url_with_env_config(url)` then `session.request(method, url, ...)`) hands the hostname to aiohttp, which performs an **independent second DNS resolution** at connect time. The validated IP is never pinned for the connection, so an attacker whose authoritative DNS returns a public A record for the guard's lookup and a private/loopback/metadata address for the connection's lookup reaches internal space. aiohttp resolves via its own resolver, distinct from the guard's `socket.getaddrinfo`, so the two lookups are genuinely separate — one flip is sufficient.\n\n## Reachability\n1. Attacker controls DNS for `rebind.attacker.test` (TTL 0), and drives any guarded HTTP module with `url=http://rebind.attacker.test/` (recipe / MCP `execute_module`).\n2. Guard: `getaddrinfo` → public IP → `is_private_ip` false → **URL allowed**.\n3. Outbound request: aiohttp re-resolves `rebind.attacker.test` → attacker now answers `127.0.0.1` / `169.254.169.254` → connects to the internal target. Redirect revalidation (GHSA-c9hr) does not help — the initial hop already rebinds.\n\n## Executable PoC (benign, local; deterministic)\nThe attacker's TTL=0 flip is modelled by making `socket.getaddrinfo` return public on lookup #1 (the guard's) and loopback on later lookups (the connection's); a raw local TCP sentinel stands in for the internal service. No payload is sent.\n\n```python\n# (full source: findings/flyto-core/raw/poc_dns_rebinding.py)\n# \n\nAffected packages: pip:flyto-core\nPatched: flyto-core 2.26.8","url":"https://github.com/advisories/GHSA-6pm8-6f34-9v3g","published_at":"2026-11-20T00:11:24Z","updated_at":"2026-11-20T00:11:26Z","fetched_at":"2026-11-21T19:15:18.416758Z","severity":"high","cvss_score":7.1,"epss":0.00347,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"flyto-core","vuln_id":"CVE-2026-77316","vuln_ids":["CVE-2026-55787","CVE-2026-77316","GHSA-6PM8-6F34-9V3G","GHSA-794R-5RP2-FPG8","GHSA-C9HR-64H3-GXPC","GHSA-PGWH-4JJ4-QM8V"],"tags":["ghsa","pip","CWE-918"],"cluster_id":2095,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2335","html":"https://vulnwatch.ve1ve2.com/item/2335"}},{"id":9329,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-77316: Flyto2 Core is an execution kernel for automation and AI-agent workflows. Prior to 2.26.8, validate_url_ssrf() in src/core/utils.py validates one DNS answer an…","summary":"Flyto2 Core is an execution kernel for automation and AI-agent workflows. Prior to 2.26.8, validate_url_ssrf() in src/core/utils.py validates one DNS answer and then returns the hostname, while guarded_aiohttp_request(), enforce_outbound_url(), and validate_url_with_env_config() allow the outbound connection to perform an independent second lookup. A caller with control of the hostname's DNS can make validation see a public address and make the connection see an internal address, bypassing the guard across its outbound consumers and exposing readable internal or metadata-service responses. The attack requires low or zero DNS TTL behavior and a successful timing-dependent answer change; static multiple-address answers are checked and do not provide the same bypass. This issue is fixed in version 2.26.8.\n\nReferences:\nhttps://github.com/flytohub/flyto-core/commit/bf748df864d348004cf45d830bc59f62c5c4a58a\nhttps://github.com/flytohub/flyto-core/releases/tag/v2.26.8\nhttps://github.com/flytohub/flyto-core/security/advisories/GHSA-6pm8-6f34-9v3g","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77316","published_at":"2026-11-19T22:18:44.607000Z","updated_at":"2026-11-19T22:18:44.607000Z","fetched_at":"2026-11-21T19:15:31.484933Z","severity":"high","cvss_score":7.1,"epss":0.00347,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-77316","vuln_ids":["CVE-2026-55787","CVE-2026-77316","GHSA-6PM8-6F34-9V3G","GHSA-794R-5RP2-FPG8","GHSA-C9HR-64H3-GXPC","GHSA-PGWH-4JJ4-QM8V"],"tags":["CWE-918"],"cluster_id":2096,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/9329","html":"https://vulnwatch.ve1ve2.com/item/9329"}}]}