/

CVE-2026-73969

Severity:

CRITICAL RISK

(9.8)

Authentication Bypass (CWE-287) in AnsibleForms Web App

CVE-2026-73969

Received

Vulnerability type

Category:

Authentication Bypass

CWE:

CWE-287, CWE-798, CWE-1188

Impact:

Authentication Bypass and Privileged API Access

Severity:

CRITICAL RISK

(9.8)

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

AnsibleForms may use a publicly known fallback JWT signing secret when its configured access-token secret is unset, allowing an unauthenticated attacker to forge tokens with privileged claims. Because authorization trusts those claims without reloading the user from the database, a forged token may be accepted as an administrator session and grant privileged API access.

Affected context

The issue occurs in AnsibleForms deployments where ACCESS_TOKEN_SECRET is unset and the application falls back to a hard-coded JWT signing secret. Token verification checks the signature, while authorization relies on roles and options in the token rather than reloading the user record from the database.

Exploit preconditions

  • Attack surface: Authentication and API endpoints that accept JWT-based sessions
  • Required access: No prior account or authenticated access is required when the fallback secret is in use
  • Trigger point: A request carrying a token that passes JWT signature verification and authorization checks
  • Why exploitation is possible: The fallback signing secret is public, and authorization trusts token claims without checking the current user record

Why this happens

The application relies on a hard-coded fallback secret for signing JWTs when a deployment secret is absent, which maps to CWE-798: Use of Hard-coded Credentials and CWE-1188: Initialization of a Resource with an Insecure Default. It then treats validly signed token claims as sufficient proof of identity and authorization without reloading the user from a trusted data source, resulting in CWE-287: Improper Authentication. This pattern allows a party who knows the fallback secret to create tokens the application may trust.

Potential impact

  • An attacker may impersonate an administrator
  • An attacker could gain access to privileged API operations
  • Sensitive application data or automation workflows may be exposed or modified
  • Administrative actions performed through the application could be abused

General mitigation guidance

Mitigation generally focuses on eliminating predictable signing credentials and validating identity and authorization against trusted sources.

Common defensive patterns include:

  • Require a strong, deployment-specific signing secret and fail securely if it is missing
  • Avoid hard-coded credentials and insecure fallback values
  • Reload or otherwise validate the user and current privileges when processing authenticated requests
  • Apply least privilege to API roles and restrict sensitive operations
  • Protect signing secrets through controlled storage, access, and rotation practices

How teams detect issues like this

High-level detection approaches include:

  • Static analysis and code review for hard-coded secrets, fallback credentials, and permissive default configuration
  • Reviewing JWT verification and authorization paths to confirm that claims are checked against trusted user state
  • Policy enforcement that rejects deployments missing required authentication secrets
  • Monitoring for unexpected administrator sessions or privileged API activity

Automated code review tools may help identify these patterns in application code and deployment configuration.

Sources

SourceLink
github.comgithub.com/ansibleforms/ansibleforms/commit/a9b4979165c4730b2abe1dbcfd053b4d3f9a5594
github.comgithub.com/ansibleforms/ansibleforms/pull/473
github.comgithub.com/ansibleforms/ansibleforms/releases/tag/6.2.1
github.comgithub.com/ansibleforms/ansibleforms/security/advisories/GHSA-g27f-cjvv-42rf

Frequently asked

questions

Yes. When the fallback secret is active, an unauthenticated attacker may be able to submit a forged token to exposed authentication-protected endpoints.

No prior account is required under the stated conditions. The key condition is that the application uses the publicly known fallback secret.

Require a strong, deployment-specific secret and fail securely when it is not configured. Also validate the user and current permissions against trusted application state.

Avoid hard-coded credentials and insecure defaults, enforce required security configuration at startup, and review token-based authorization so that untrusted claims alone do not determine access.

Find out what's already
exploitable in your codebase.