# GHSA-8VM3-RXFW-5867: Authorization bypass

- Database: GitHub
- Severity: CVSS 8.1 (High)
- Published: 2026-11-17
- Modified: 2026-11-19

## Tracked as

- [CVE-2026-132264](https://cve.now/CVE-2026-132264.md): AutoGPT authorization bypass in AutoPilotBlock

## Description

The external API's direct block-execution route ran any enabled block for an API key or OAuth token holder, checking only the key's `EXECUTE_BLOCK` permission and the block's `disabled` flag before handing the block the key owner's full identity. One block it could run this way was `AutoPilotBlock`, which turned a single `EXECUTE_BLOCK`-scoped request into a full, unattended AutoPilot turn for the key owner, without the narrower permissions that guard the owner's stored credentials, agents and workspace everywhere else in the external API. Upgrade to v0.11.0 or later.

### Impact

Whoever held an account's narrowest block-execution key or OAuth token could act with that account's full AutoPilot: use the owner's stored third-party credentials against their hosts and read the responses, list and run the owner's library agents, read and write the owner's workspace files, and run AutoPilot's sandboxed shell, all of which the same key was refused when it asked directly. It needed only a key or OAuth authorization the owner had issued with `EXECUTE_BLOCK`; no other account was reached.

### Fix

**Fixed in [AutoGPT Platform v0.11.0](https://github.com/Significant-Gravitas/AutoGPT/releases/tag/autogpt-platform-beta-v0.11.0).**

The external API's block-execute route now refuses blocks that only make sense inside a workflow or a chat, AutoPilot's block among them, and runs the blocks it does allow under the organization scope the key or token was issued for.

Fix evidence: [19b7276f70f2](https://github.com/Significant-Gravitas/AutoGPT/commit/19b7276f70f2e053e1c44bee161657afd9d2f60d).

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

Revoke any `EXECUTE_BLOCK`-scoped API key or OAuth authorization issued to a third party you would not trust with the account's full AutoPilot.

---

### Details

`execute_graph_block` (`autogpt_platform/backend/backend/api/external/v1/routes.py:89-133`) answered `POST /external-api/v1/blocks/{block_id}/execute` behind `Security(require_permission(APIKeyPermission.EXECUTE_BLOCK))`. After the paywall check it looked up the block (`:103`), refused only a missing or `disabled` block (`:104-106`), charged the owner, and built an `ExecutionContext` carrying only `user_id` and a timezone (`:125-128`) before calling `obj.execute(data, execution_context=execution_context)` (`:131`). `auth.scopes` was not consulted again, and `auth.organization_id` / `auth.team_id_restriction` were dropped, although the sibling route `execute_graph` (`:198-244`) carried both into its execution path.

For almost every block this was a bounded grant, because `Block.execute` → `_execute` (`blocks/_base.py:837-1044`) hands `run()` only `input_data` and `execution_context`. A block whose `run()` needed a resolved `credentials` object or graph-execution kwargs such as `graph_exec_id`/`node_id`/`graph_version` (`AgentExecutorBlock.run`, `blocks/agent.py:86-93`; `OrchestratorBlock.run`, `blocks/orchestrator.py:2001-2013`) failed with a `TypeError`, a side effect rather than a policy check.

`AutoPilotBlock.run` (`blocks/autopilot.py:569-575`) needed only `execution_context`, so it ran. It opened a chat session for `execution_context.user_id` with `origin="automation"` (`:635-642`) and sent the caller's `prompt` as that user's message through `execute_copilot` (`:700-707`) → `run_copilot_turn_via_queue` → `schedule_turn`/`dispatch_turn`. Because the REST process was not inside a turn, `_admitted_turn_envelope` minted an unrestricted `root_envelope` (`copilot/executor/utils.py:665-679`). The `automation` origin made the turn unattended (`copilot/context.py:208`): `_can_ask_user` was false (`copilot/tools/utils.py:400`), so `find_matching_credential` (`:425-435`) took the owner's first fitting stored credential without asking, and the approval gate was skipped (`copilot/gate/__init__.py:103`). The turn's `permissions` came only from the `tools`/`blocks` fields of the caller's own request (`blocks/autopilot.py:784-789`, `copilot/permissions.py:430-431`), which filter nothing at their defaults, and every tool call and its output was returned to the HTTP caller (`blocks/autopilot.py:658-659`).

The route had no analogue of `COPILOT_EXCLUDED_BLOCK_IDS` (`copilot/capabilities/block_meta.py:26-34`), the set holding `OrchestratorBlock` and `AutoPilotBlock` that AutoPilot's own capability runner already refuses to run standalone. This is supported platform code.

The code was introduced in `4449625801b6` (#13236, 2026-05-29), first released in v0.6.63. The single-container Docker image (`significantgravitas/autogpt`, published from v0.7.1) serves the external API through its public nginx listener under `/_agpt/`, so it was affected the same way.

### Proof of concept

With a platform API key scoped to `EXECUTE_BLOCK` only, issued by an account past the paywall with credits, and the account's own stored credential for a third-party host:

1. Confirm the key is narrow: `GET /integrations/credentials`, `POST /tools/find-agent` and `POST /graphs` each 403 (`READ_INTEGRATIONS`, `USE_TOOLS`, `WRITE_GRAPH`/`WRITE_LIBRARY`).
2. Confirm the same key run directly against an ordinary credentialed block (e.g. a block that sends an authenticated web request) fails closed: no request reaches the third party.
3. `POST /external-api/v1/blocks/{AUTOPILOT_BLOCK_ID}/execute` with a prompt asking AutoPilot to run that same credentialed block against the same target. The call returns 200; the third party receives a request carrying the owner's stored credential, and its response is in the body's `tool_calls`.

The reporter's automated reproducer runs this end to end against a stand-in model and a stand-in third-party service with a scripted account owner, and prints `BUG`/`OK`. It needs root only to bind a test loopback address for the stand-in service. Separately observed, outside the automated reproducer: the same key listing the owner's library agents, writing into and reading from the owner's workspace, running AutoPilot's sandboxed shell, and — on the baseline engine — starting a run of the owner's private agent with chosen inputs.

### References

Fix evidence: [19b7276f70f2](https://github.com/Significant-Gravitas/AutoGPT/commit/19b7276f70f2e053e1c44bee161657afd9d2f60d).
Related: [GHSA-x77j-qg2x-fgg6](https://github.com/Significant-Gravitas/AutoGPT/security/advisories/GHSA-x77j-qg2x-fgg6) (external-API authorization bypass in graph execution); [GHSA-r277-3xc5-c79v](https://github.com/Significant-Gravitas/AutoGPT/security/advisories/GHSA-r277-3xc5-c79v) and [GHSA-4crw-9p35-9x54](https://github.com/Significant-Gravitas/AutoGPT/security/advisories/GHSA-4crw-9p35-9x54) (a block runnable from an entry point it should not be).

### Timeline

Reported 2026-10-30 · 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.

## References

- https://github.com/Significant-Gravitas/AutoGPT/security/advisories/GHSA-8vm3-rxfw-5867

Page: https://cve.now/GHSA-8VM3-RXFW-5867

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