Skip to content

SSRF: #889 data loaders fetch endpoints without the shared URL guard #1029

Closed

Description

@AmitoVrito

The new issue-#889 HTTP loaders (graphql, figma, linear, monday, asana, clickup, shopify, box, zoom) route requests through loaders/_http_utils.http_client, which created an httpx.Client(follow_redirects=True) with no SSRF validation.

This is the same fail-open pattern hardened away in #1027 for agents/tools/*. The shared guard loaders/_url_guard.py (validate_public_url / assert_response_url_public / redirect_target) is not applied.

Impact

  • A trusted-looking endpoint that returns a 302/307 to http://169.254.169.254/ (cloud metadata), http://127.0.0.1/, or an internal 10.0.0.0/8 service is followed silently → credential/internal-service exposure.
  • Where an endpoint URL is derived from untrusted/multi-tenant input, it is fetched with no private-range check.

Fix
http_client now yields a _GuardedHTTPClient that disables auto-redirects and re-validates every hop via assert_response_url_public; the library-owned client also validates the initial URL. Hermetic SSRF regression tests added (tests/loaders/test_issue_889_ssrf.py).

Fixed as part of the #1019 review hardening.

Activity

  1. self-assigned this
    on Sep 9, 2026
  2. added
    bug
    security
    on Sep 9, 2026
  3. added a commit that references this issue on Sep 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugsecurity

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions