/

CVE-2026-77315

Severity:

HIGH RISK

(8.5)

Second-Order SSRF (CWE-918) in Flyto2 Core Pagination

CVE-2026-77315

Received

Vulnerability type

Category:

Server-Side Request Forgery (SSRF)

CWE:

CWE-918

Impact:

Internal service access and potential disclosure of response data

Severity:

HIGH RISK

(8.5)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Flyto2 Core's http.paginate can follow a server-provided next-page URL without reapplying its SSRF checks. A caller who can invoke pagination may cause a request to an internal or metadata service, and the response may be included in the results returned by the workflow.

Affected context

The issue occurs in Flyto2 Core's HTTP pagination module when it processes a Link: rel="next" header. The initial URL is validated, but a subsequent URL supplied by the responding server is followed without the same SSRF guard. Risk depends on whether a caller can invoke the workflow and whether the runtime can reach sensitive internal services.

Exploit preconditions

  • Attack surface: The http.paginate functionality and its outbound HTTP requests
  • Required access: Ability to invoke a workflow that uses pagination; the description characterizes the caller as low-privileged
  • Trigger point: Processing a response containing a next-page link
  • Why exploitation is possible: The follow-up URL is server-supplied and is not checked against the SSRF guard before the request is made; its response is aggregated into all_items and returned

Why this happens

The pagination flow validates the initial destination but does not apply equivalent destination checks to subsequent URLs derived from response headers. This is a URL validation and trust-boundary failure mapped to CWE-918: Server-Side Request Forgery (SSRF). A server-controlled link is treated as safe to fetch even though it can direct the application to a different, potentially sensitive network destination.

Potential impact

  • The application could make requests to internal or metadata services reachable from its runtime.
  • Responses from those services may be exposed through the aggregated pagination results.
  • Internal endpoints may be accessed in ways not intended by the workflow's caller.
  • The impact may be greater in deployments with broad network access or sensitive services reachable from the application.

General mitigation guidance

Defensive patterns include validating every destination immediately before making an outbound request, including pagination links and redirects. Apply destination allowlists or equivalent URL and network-boundary policies, and reject links that resolve to prohibited hosts, address ranges, or schemes.

Treat response headers and other remote content as untrusted input. Where practical, reduce outbound network access, limit the data exposed to workflow callers, and run the application with least-privilege network permissions.

How teams detect issues like this

Review pagination and redirect code for requests made to URLs derived from response headers or remote content without destination validation. Static analysis can flag outbound request calls whose URLs are not checked at each request boundary.

Tests and policy checks can verify that links to disallowed destinations are rejected, including links that change host or resolve to restricted network ranges. Network egress monitoring may also help identify unexpected requests to internal or metadata services.

Sources

SourceLink
github.comgithub.com/flytohub/flyto-core/commit/bbb6f1cfec22fee1ea0e6ecf1129d7103c85e09f
github.comgithub.com/flytohub/flyto-core/releases/tag/v2.26.8
github.comgithub.com/flytohub/flyto-core/security/advisories/GHSA-2mr3-rxrq-238c

Frequently asked

questions

It can be triggered through a workflow that uses http.paginate, but exploitation depends on the caller being able to invoke that workflow and on the runtime's network access.

The description identifies a low-privileged caller. The key condition is the ability to invoke pagination with a response whose next-page link is followed.

Validate every destination immediately before the corresponding request, including server-supplied pagination links, and enforce restrictions on reachable hosts and address ranges.

Treat URLs from remote responses as untrusted, test destination checks across pagination and redirects, and restrict outbound network access to what the application requires.

Find out what's already
exploitable in your codebase.