Host-scoped credential headers leaked to other hosts through HTTP redirects
Description
SendAuthenticatedWebRequestBlock attaches a host-scoped credential's headers to a request, but once a redirect took that request to a different origin, only three fixed header names (Authorization, Proxy-Authorization, Cookie) were removed. A host-scoped credential's header names are free-form (the UI suggests X-API-Key), so a credential carried under any other name followed the redirect to the new origin. Upgrade to v0.11.0 or later.
Impact
Whoever controlled the destination of a redirect from the credential's own host received the credential's value, as long as it used a header other than the three fixed ones, through a shared agent whose node URL pointed at a redirecting endpoint or through a URL built at run time from untrusted input. It required the credential's host to answer some request with a redirect to a location the other party influenced, such as an open redirect.
Fix
Fixed in AutoGPT Platform v0.11.0.
A host-scoped credential's headers are now dropped when a request is redirected to a different origin, whatever those headers are named, rather than only the three fixed names.
Fix evidence: 2151e6972c25.
Upgrade to v0.11.0 or later. Version numbers in this advisory identify Platform releases, whose Git tags are autogpt-platform-beta-v<VERSION>, rather than the backend Python package version. The significantgravitas/autogpt Docker image is tagged v<VERSION>.
Workarounds
Use Authorization, Proxy-Authorization or Cookie as the header name of a host-scoped credential; those are already dropped on a cross-origin redirect. A credential under any other name has no protection short of upgrading.
---
Details
SendAuthenticatedWebRequestBlock.run (autogpt_platform/backend/backend/blocks/http.py:258-294, line numbers at 795ffca2785, before the fix) checked the credential against the node's URL once (credentials.matches_url(input_data.url), line 279), then merged the credential's header dict into the node's ordinary headers:
extra_headers = {}
if credentials.matches_url(input_data.url):
extra_headers.update(credentials.get_headers_dict())
...
base_input.headers = {**extra_headers, **input_data.headers}From that merge (line 290) onward nothing distinguished a credential-sourced header from one the workflow author typed in. SendWebRequestBlock.run (lines 150-207) passed the combined dict to Requests(...).request(...) with redirects followed by default (allow_redirects=True, max_redirects=10).
Requests._request's redirect branch (autogpt_platform/backend/backend/util/request.py:694-727) called _remove_insecure_headers(dict(req_headers), parsed_url, redirect_url) on every 3xx. _remove_insecure_headers (lines 175-182) stripped SENSITIVE_HEADERS (line 151: {"authorization", "proxy-authorization", "cookie"}) only when _is_cross_origin was true, and took no other names. The branch's own drop_headers accumulator (lines 723-724) kept a stripped name from reappearing on a later same-origin hop, but nothing fed a caller-named header into it.
HostScopedCredentials.headers (autogpt_platform/backend/backend/data/model.py:410) is a dict[str, SecretStr] with no fixed key set, and get_headers_dict() (lines 424-426) returns those names with the unwrapped values. matches_url (lines 435-459) was checked once, against the starting URL, and never against a redirect target. blocks/http.py:283 was the only place a host-scoped credential header reached an outbound request.
This is a variant of GHSA-ggcm-93qg-gfhp, whose fixes (#9688, #14419) covered Authorization, Proxy-Authorization and Cookie and left the strip list at those three names. This is supported platform code.
The gap was introduced with host-scoped credentials themselves, in 2f12e8d7310 (#10215, 2025-06-26), first released in v0.6.15. The single-container Docker image (significantgravitas/autogpt, published from v0.7.1) ships the same block and outbound helper, so it was affected the same way.
Proof of concept
The report came with an in-process reproducer (no platform services) against two local HTTP servers: one answers as the credential's host and issues a 302 to the second; the second collects whatever headers arrive. It runs SendAuthenticatedWebRequestBlock().execute(...) directly, the same call shape executor/manager.py uses, with a credential carrying both X-API-Key and Authorization. The second server receives X-API-Key with its original value; Authorization is absent, confirming the fixed list works as designed and the gap is specific to non-fixed names. The report states the same result was reproduced through the real API and executor (POST /api/integrations/http/credentials then POST /api/graphs/{id}/execute/1).
References
Fix evidence: 2151e6972c25. Related: GHSA-ggcm-93qg-gfhp.
Timeline
Reported 2026-10-31 · Triaged 2026-10-31 · Fixed 2026-11-01 · Published 2026-11-17.
A special thank you to Anthropic (@anthropics) for including us in Project Glasswing. Their automated vulnerability scanning and CVP (cyber-enabled inference) access have enabled us to make a leap in our cyber defense capabilities and secure the AutoGPT Platform.