/

CVE-2026-130169

Severity:

CRITICAL RISK

(10.0)

Hardcoded JWT Verification Key (CWE-798) in AutoGPT Platform

CVE-2026-130169

Deferred

Vulnerability type

Category:

Hardcoded Secret and Authentication Bypass

CWE:

CWE-287, CWE-330, CWE-798

Impact:

Authentication and authorization bypass

Severity:

CRITICAL RISK

(10.0)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

AutoGPT Platform included a publicly known, hardcoded key for verifying HS256 JWTs. Anyone who knows the key may be able to forge tokens for other users or the admin role, bypassing authentication and authorization.

Affected context

The issue affects AutoGPT Platform versions 0.6.26 through 0.7.4, where default environment files include a hardcoded JWT verification key. Deployments using that key to verify HS256 tokens may be at risk, particularly if the key is accessible to people who should not be able to issue trusted tokens.

Exploit preconditions

  • Attack surface: JWT-based authentication in the AutoGPT Platform backend
  • Required access: Knowledge of the hardcoded verification key; the key was publicly known
  • Trigger point: The application verifies a JWT signed with the shared key
  • Why exploitation is possible: HS256 uses the same secret for signing and verification, so someone with the secret can create tokens the application treats as valid

Why this happens

A hardcoded, publicly known secret is used to verify HS256 JWTs. Because HS256 is symmetric, possession of the verification secret enables creation of tokens with attacker-chosen claims, including user or admin identities. This is primarily CWE-798: Use of Hard-coded Credentials; the resulting acceptance of forged tokens also relates to CWE-287: Improper Authentication.

Potential impact

  • An attacker could impersonate users or gain administrative access.
  • Authentication and authorization checks may be bypassed.
  • Sensitive data or platform workflows may be accessed or modified.
  • Compromised accounts or agents could be used for further actions within the deployment.

General mitigation guidance

Defensive patterns include removing embedded secrets from application defaults and using securely provisioned, deployment-specific signing keys. Treat signing keys as sensitive credentials: limit access, avoid reuse across environments, and rotate them when exposure is suspected. Prefer secure-by-default configurations that refuse to start with known default secrets, validate token claims and intended audiences, and apply least-privilege authorization independently of token identity.

How teams detect issues like this

  • Scan source code, packaged artifacts, and environment templates for hardcoded secrets and known default values.
  • Review JWT verification paths to confirm that keys come from protected secret-management mechanisms rather than repository defaults.
  • Check deployment configuration and policy enforcement for rejection of default or shared signing keys.
  • Monitor authentication logs for unusual administrative access, unexpected token issuers, or anomalous account activity.
  • Use automated secret scanning and code review checks as part of development and release workflows.

Sources

SourceLink
github.comgithub.com/Significant-Gravitas/AutoGPT/releases/tag/autogpt-platform-beta-v0.8.0
github.comgithub.com/Significant-Gravitas/AutoGPT/security/advisories/GHSA-24q6-6h89-f9p7

Frequently asked

questions

A party who knows the shared JWT verification key may be able to forge tokens accepted by affected deployments, including tokens claiming elevated roles.

The described issue does not require user interaction or an existing account when the key is known. Reachability depends on the deployment's authentication and network controls.

Remove hardcoded defaults and use securely provisioned, deployment-specific signing keys. Rotate exposed keys and invalidate tokens signed with them as appropriate.

Keep secrets out of source code and packaged defaults, enforce secret-scanning and configuration policies, and verify that authentication and authorization controls are independently applied.

Find out what's already
exploitable in your codebase.