{"id":"CVE-2026-77315","aliases":["CVE-2026-77315","GHSA-2mr3-rxrq-238c"],"related":[],"kind":"vulnerability","state":"published","title":"Flyto2 Core: http.paginate follows server-supplied next-page URLs (Link header / cursor) without SSRF revalidation","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## 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: <http://127.0.0.3/...>; 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: <http://<cloud-metadata-ip>/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).","format":"markdown","source":"ghsa"}],"published":"2026-11-19T21:38:30.702Z","modified":"2026-11-20T18:18:56.007Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N","score":8.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N","score":8.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N","score":8.5,"rating":"HIGH"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"version":"< 2.26.8","status":"affected"}],"vendor":"flytohub","product":"flyto-core","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.26.8"}],"ecosystem":"PyPI","package":"flyto-core","purl":"pkg:pypi/flyto-core","source":"ghsa"}],"references":[{"url":"https://github.com/flytohub/flyto-core/security/advisories/GHSA-2mr3-rxrq-238c","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/flytohub/flyto-core/commit/bbb6f1cfec22fee1ea0e6ecf1129d7103c85e09f","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/flytohub/flyto-core/releases/tag/v2.26.8","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/flytohub/flyto-core","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-20T16:02:04.363Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-77315","url":"https://www.cve.org/CVERecord?id=CVE-2026-77315","licence":"CVE Terms of Use","modified":"2026-11-20T17:52:51.634Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2mr3-rxrq-238c","url":"https://github.com/advisories/GHSA-2mr3-rxrq-238c","licence":"CC-BY-4.0","modified":"2026-11-20T00:15:06.376Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-77315","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77315","licence":"Public domain","modified":"2026-11-20T18:18:56.007Z"}],"updatedAt":"2026-11-25T22:59:52.248Z","epss":{"score":0.00375,"percentile":0.33565,"date":"2026-12-01T12:00:22.000Z"}}