# GHSA-VJ3M-G4CV-8J93: AutoGPT Classic: SSRF in web fetch commands via missing internal/private address validation

- Database: GitHub
- Severity: CVSS 8.6 (High)
- Published: 2026-07-14
- Modified: 2026-10-24

## Affected versions

- autogpt-classic (PyPI): fixed in 0.6.66

## Description

# AutoGPT_SSRF_01 Vulnerability Report

We discovered a SSRF vulnerability in the AutoGPT project.

## Overview

- Vulnerability Type: SSRF
- Affected Location: classic/forge/forge/utils/url_validator.py:27
- Trigger Scenario: Classic forge web URL validator permits SSRF to internal hosts

## Root Cause

AutoGPT applies `@validate_url` before web-fetch commands (`classic/forge/forge/components/web/web_fetch.py:219,328`), but `validate_url` only enforces:

- `http(s)` prefix (`classic/forge/forge/utils/url_validator.py:27`)
- non-empty scheme/netloc (`classic/forge/forge/utils/url_validator.py:31,45-56`)
- `file://` prefix deny-list (`classic/forge/forge/utils/url_validator.py:33,75-90`)
- max length (`classic/forge/forge/utils/url_validator.py:35`)

It does not resolve hostnames or block loopback/private/link-local ranges, so internal targets remain reachable.

## Source-to-Sink Chain

1. Source (user-controlled input)

- Attacker-controlled URL is provided to command handlers:
  - `fetch_webpage(url, ...)`: `classic/forge/forge/components/web/web_fetch.py:220-223`
  - `fetch_raw_html(url, ...)`: `classic/forge/forge/components/web/web_fetch.py:329`

2. Data flow

- Input first passes `@validate_url` (`classic/forge/forge/components/web/web_fetch.py:219,328`).
- Validator accepts internal URLs as long as syntax checks pass (`classic/forge/forge/utils/url_validator.py:27-40`).
- Validated URL is then forwarded into `_fetch_url(url)` (`classic/forge/forge/components/web/web_fetch.py:242,340`).

3. Sink (dangerous execution point)

- Backend request sink:
  - `response = self.client.get(url)`
  - Location: `classic/forge/forge/components/web/web_fetch.py:100`
- Because no internal-address restriction is enforced before this call, attacker input can drive server-side requests to internal services.

## Exploitation Preconditions

1. The attacker can control a URL/host input that reaches backend request construction.
2. The affected service is allowed to make outbound network connections.
3. Destination validation and egress restrictions are insufficient for untrusted targets.

## Risk

This issue enables server-side request forgery by letting attacker-controlled targets reach backend networking sinks.

## Impact

Attackers may access internal services, probe restricted endpoints, and exfiltrate sensitive metadata or responses through backend-initiated requests.

## Remediation

1. Enforce resolver-based SSRF filtering for internal/reserved ranges.
2. Re-validate every redirect target.
3. Canonicalize numeric/alternative IP formats before checks.

## Finder credits (please keep GitHub account association):
- Yuremin (@Yuremin) - https://github.com/Yuremin
- FORIMOC (@FORIMOC) - https://github.com/FORIMOC
- invoke1442 (@invoke1442) - https://github.com/invoke1442

### Release references

The patched-version metadata for this advisory points to the following release(s):

- [autogpt-platform-beta-v0.6.66](https://github.com/Significant-Gravitas/AutoGPT/releases/tag/autogpt-platform-beta-v0.6.66)

## References

- https://github.com/Significant-Gravitas/AutoGPT/security/advisories/GHSA-vj3m-g4cv-8j93

Page: https://cve.now/GHSA-VJ3M-G4CV-8J93

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