# GHSA-HP9V-VH5X-5JV3: Credentials followed a redirect off-origin when the Location header hid the new host behind a backslash

- Database: GitHub
- Severity: CVSS 5.3 (Medium)
- Published: 2026-11-17
- Modified: 2026-11-20

## Tracked as

- [CVE-2026-133449](https://cve.now/CVE-2026-133449.md): AutoGPT credential leak in redirect handling via backslash

## Description

The AutoGPT Platform backend's outbound HTTP helper drops a caller's credentials when a redirect leaves the origin, but it decided whether the origin had changed with a different URL parser than the one the following request used. A redirect target whose authority held a backslash was therefore judged same-origin while the request went to another host, so a bearer token, a cookie, a Basic credential or a caller-named credential header reached a host of the redirector's choosing. Upgrade to v0.11.0 or later.

### Impact

A signed-up user who was induced to use a URL someone else chose, together with their own credential for that URL's host, could have the credential delivered to a third party; that covered connecting an MCP server URL and running a shared or marketplace workflow carrying a host-scoped credential. It required the host in the URL to answer with a redirect whose `Location` the other party influenced and which carried a raw backslash, such as a link-out endpoint reflecting a decoded parameter.

### Fix

**Fixed in [AutoGPT Platform v0.11.0](https://github.com/Significant-Gravitas/AutoGPT/releases/tag/autogpt-platform-beta-v0.11.0).**

A redirect target is now parsed once, with the same canonicalization the next hop applies, and that one parse is what the hop receives, so the origin compared is the origin connected to. The single cross-origin answer derived from it gates the header strip and the dropping of credentials and cookies together, instead of being worked out twice. Ordinary and same-origin redirects behave as before.

Fix evidence: [ef7f41cea9db](https://github.com/Significant-Gravitas/AutoGPT/commit/ef7f41cea9dba465d6cdcc2c81ae8b6e3d5b77d8).

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

None. No setting disables redirect following in the outbound HTTP helper. If you cannot upgrade, avoid storing a credential for an MCP server URL, or using a host-scoped credential in a workflow someone else authored, on a host that can be made to redirect off-origin.

---

### Details

`Requests._request` (`autogpt_platform/backend/backend/util/request.py`) follows redirects itself and, on a hop that leaves the origin, drops `Authorization`, `Proxy-Authorization`, `Cookie`, any names the caller passed as `sensitive_headers`, and the `auth=` and `cookies=` keyword arguments. One comparison, `_is_cross_origin` (`:166`), gated all of that. Line numbers are the file before the fix.

The target it compared was built with `urlparse` (`:704`). The hop it then made re-validated that URL through `validate_url_host`, which parsed it with `parse_url` (`:346`), and `parse_url` replaces every backslash with a slash before parsing. For an authority of the form `host-a\@host-b`, `urlparse` reads `host-a\` as userinfo and `host-b` as the host, while `parse_url` ends the authority at the new slash and names `host-a`. The compared origin was therefore `host-b` and the connected origin `host-a`, and the headers had already been settled one frame earlier.

This is supported platform code, and it is the only place in `backend/` and `autogpt_libs/` where redirects are followed by hand. The callers that put a credential in a protected header and follow redirects all passed through it: `MCPClient._post` (`backend/blocks/mcp/client.py`), `MCPToolBlock`, AutoPilot's `run_mcp_tool`, `SendAuthenticatedWebRequestBlock` (`backend/blocks/http.py`), and the vendor blocks that build an `Authorization` header for a fixed host.

The fix parses the redirect target once with `parse_url` and hands the hop that parse's `geturl()`, and `_remove_insecure_headers` now takes the single `_is_cross_origin` answer rather than the two URLs.

The mismatch dates from `f0df4c9174d4`, which added the origin check, first released in v0.6.1. The single-container Docker image (`significantgravitas/autogpt`, published from v0.7.1) runs the same outbound helper for these blocks and AutoPilot, so it was affected the same way.

### Proof of concept

Call `Requests.get` on a host that answers with a redirect whose target carries a raw backslash in the authority, followed by `@` and the requesting host:

```
HTTP/1.1 302 Found
Location: http://host-a.example\@host-b.example/collect
```

With the credential supplied as a header, as `auth=` or as `cookies=`, the second request arrives at `host-a.example` with it intact, on the path `/@host-b.example/collect`. A plain `Location: http://host-a.example/collect` from the same endpoint arrives without it, and a percent-encoded `%5C` is unaffected.

### References

Fix evidence: [ef7f41cea9db](https://github.com/Significant-Gravitas/AutoGPT/commit/ef7f41cea9dba465d6cdcc2c81ae8b6e3d5b77d8).
Related: [GHSA-ggcm-93qg-gfhp](https://github.com/Significant-Gravitas/AutoGPT/security/advisories/GHSA-ggcm-93qg-gfhp), the cross-origin credential leak whose fix introduced this comparison.

### Timeline

Reported 2026-10-30 · Triaged 2026-11-01 · 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.

## References

- https://github.com/Significant-Gravitas/AutoGPT/security/advisories/GHSA-hp9v-vh5x-5jv3

Page: https://cve.now/GHSA-HP9V-VH5X-5JV3

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
