SSRF: the unspecified address :: bypasses the request blocklist and reaches loopback services
Description
Docker distribution (2026-10-24)
Docker Hub distribution: significantgravitas/autogpt. GitHub represents this image under ecosystem Other. The earliest currently listed stable Platform image is v0.7.1; affected image versions are subject to the same feature/configuration prerequisites described in this report. The fixed image tag is significantgravitas/autogpt:v0.9.0 (Docker Hub tag). Numeric package versions correspond to image tags prefixed with v. latest is mutable and is not the fixed-version identifier. The separate significantgravitas/auto-gpt repository distributes Classic and is not covered by this Platform image entry.
Release status (2026-10-24)
Fixed in AutoGPT Platform v0.9.0; included in v0.9.0.
The central address validator now rejects the reported IPv6 forms carrying blocked IPv4 destinations, the unspecified address and local-use NAT64. Operator-selected NAT64 prefixes still require network policy. Please use a source/Compose deployment with the routing conditions from your report for validation. Fix: #15926.
Fix evidence: 84e023806d7b.
Upgrade to v0.9.0 or later. Version numbers below identify Platform releases, whose Git tags are autogpt-platform-beta-v<VERSION>, rather than the backend Python package version.
Historical report and evidence
Technical excerpts below describe the code and environment at the time of reporting, unless explicitly identified as a later update.
Summary
backend/util/request.py guards every outbound HTTP request the platform makes on a user's behalf (blocks, web fetch/search, MCP servers, webhooks, OAuth) against SSRF by resolving the host and rejecting private, loopback and link-local IP addresses (BLOCKED_IP_NETWORKS, checked by _is_ip_blocked). The IPv6 unspecified address :: is not in that list, so it is treated as a public address and allowed.
On Linux, connect() to :: connects to ::1 (the same BSD convention by which connecting to 0.0.0.0 reaches 127.0.0.1). 0.0.0.0 is already blocked (via 0.0.0.0/8), but :: is not. A host whose DNS returns a single AAAA record of :: therefore passes validation, is pinned to [::], and the request reaches whatever listens on ::1 or on a dual-stack wildcard (::) on the server — for example an internal service bound to localhost, which resolves to ::1 as well as 127.0.0.1.
No DNS control is needed for two blocks. The SQL Query block (blocks/sql_query_block.py) and the Send Email block (blocks/email_block.py) pass the host the user types straight to resolve_and_check_blocked, without validate_url_host's hostname check, and getaddrinfo returns an IP literal unchanged. So :: typed as the database host or SMTP server passes the check and connects to ::1. URL-based features (blocks that fetch a URL, web fetch, MCP servers, webhooks) reject [::] through the hostname regex, so they need a hostname whose only DNS record is AAAA ::, which any domain owner can publish.
Impact
A signed-up user can reach services listening on IPv6 loopback (::1) or a dual-stack wildcard in the backend's network namespace. Which services those are depends on how the backend is deployed:
- Backend run directly on a host (the local development setup, and self-hosters who run it that way):
PYRO_HOSTdefaults tolocalhost, so the internal RPC services (database manager, execution manager, scheduler, notification manager) also listen on::1. They have no authentication of their own, so a block that fetches a URL, pointed at a hostname whose AAAA record is::, can call them. - Databases on the same host: the SQL Query block connects to any database listening on
::1, such as a host-installed PostgreSQL with its defaultlisten_addresses = 'localhost'. - As shipped, nothing internal is exposed: the provided Docker Compose setup sets
PYRO_HOST=0.0.0.0(IPv4 only), and the single-container image binds its internal services to127.0.0.1. Its only IPv6 listener is the public nginx on[::]:3000.
This is the class of bug the IPv6 (GHSA-4c8v-hwxc-2356) and DNS-rebinding (GHSA-v969-m46r-7f4g) SSRF fixes addressed; :: was missed.
Affected code
autogpt_platform/backend/backend/util/request.py—BLOCKED_IP_NETWORKS/_is_ip_blocked- Identical on
masteranddev; latest releaseautogpt-platform-beta-v0.8.3.
Lower-severity variants (same root cause, fixed together)
_is_ip_blocked normalizes IPv4-mapped IPv6 (::ffff:a.b.c.d) before checking, but not the other IPv6 encodings that embed an IPv4 address Linux will route to that IPv4: 6to4 (2002::/16), NAT64 (64:ff9b::/96, 64:ff9b:1::/48), Teredo, and deprecated IPv4-compatible (::a.b.c.d). On a host that translates those, the embedded private IPv4 is reachable. These require unusual network configuration, so they are lower risk than ::.
Reproduction
In a Linux container, against dev:
- SQL Query block, no DNS:
SQLQueryBlock.check_host_allowed("::")returned["::"](allowed), while::1,localhostand127.0.0.1were blocked. Connecting to the pinned[::]:5432reached a PostgreSQL configured withlisten_addresses = 'localhost', which reported its address as::1. - Request wrapper: with
_resolve_hostreturning["::"](a one-record AAAA for an attacker domain),Requests().get("http://attacker.example/")returned HTTP 200 from a server bound to::1only. - Internal RPC services: a uvicorn server bound to
localhost, as they are by default, was reachable at::.
With the fix, both the SQL Query block and the request wrapper reject ::.
Fix
See the release status above for the shipped remediation and its exact release and commit references.