When authenticating with client_id and client_secret to an OAuth provider, authentik creates a service account for the provider. In previous authentik versions, authentication for this account was possible even when the account was deactivated. Other permissions are correctly applied and federation with other providers still take assigned policies correctly into account.
authentik 2025.8.5 and 2025.10.2 fix this issue, for other versions the workaround below can be used.
You can add a policy to your application that explicitly checks if the service account is still valid, and deny access if not.
return request.user.is_active
If you have any questions or comments about this advisory:
{
"severity": "MODERATE",
"cwe_ids": [
"CWE-286",
"CWE-289"
],
"nvd_published_at": "2025-11-19T17:15:52Z",
"github_reviewed_at": "2025-11-19T18:13:03Z",
"github_reviewed": true
}