Skip to content
Heist/ feed
Back to feed
High

authentik has an insufficient check for account active status during OAuth/SAML authentication

Type: advisorySources: OSV

authentik is an open-source Identity Provider that emphasizes flexibility and versatility, with support for a wide set of protocols. In versions 2025.4.4 and earlier, as well as versions 2025.6.0-rc1 through 2025.6.3, deactivated users who registered through OAuth/SAML or linked their accounts to OAuth/SAML providers can still retain partial access to the system despite their accounts being deactivated. They end up in a half-authenticated state where they cannot access the API but crucially they can authorize applications if they know the URL of the application. To workaround this issue, developers can add an expression policy to the user login stage on the respective authentication flow with the expression of return request.context["pending_user"].is_active. This modification ensures that the return statement only activates the user login stage when the user is active. This issue is fixed in versions authentik 2025.4.4 and 2025.6.4.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-53942
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 05:01 UTC · Revision 1

Source evidence

authentik has an insufficient check for account active status during OAuth/SAML authentication

core-osv · Original source

Published 23 Jul 2025, 20:35 UTC

authentik is an open-source Identity Provider that emphasizes flexibility and versatility, with support for a wide set of protocols. In versions 2025.4.4 and earlier, as well as versions 2025.6.0-rc1 through 2025.6.3, deactivated users who registered through OAuth/SAML or linked their accounts to OAuth/SAML providers can still retain partial access to the system despite their accounts being deactivated. They end up in a half-authenticated state where they cannot access the API but crucially they can authorize applications if they know the URL of the application. To workaround this issue, developers can add an expression policy to the user login stage on the respective authentication flow with the expression of return request.context["pending_user"].is_active. This modification ensures that the return statement only activates the user login stage when the user is active. This issue is fixed in versions authentik 2025.4.4 and 2025.6.4.

osv:CVE-2025-53942
Complete source record
{
  "id": "24b94d417b3dad5db2716dce5443d94312d5285312a28f7d8a08bdfc176b0939",
  "url": "https://osv.dev/vulnerability/CVE-2025-53942",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "authentik has an insufficient check for account active status during OAuth/SAML authentication",
    "summary": "authentik is an open-source Identity Provider that emphasizes flexibility and versatility, with support for a wide set of protocols. In versions 2025.4.4 and earlier, as well as versions 2025.6.0-rc1 through 2025.6.3, deactivated users who registered through OAuth/SAML or linked their accounts to OAuth/SAML providers can still retain partial access to the system despite their accounts being deactivated. They end up in a half-authenticated state where they cannot access the API but crucially they can authorize applications if they know the URL of the application. To workaround this issue, developers can add an expression policy to the user login stage on the respective authentication flow with the expression of return request.context[\"pending_user\"].is_active. This modification ensures that the return statement only activates the user login stage when the user is active. This issue is fixed in versions authentik 2025.4.4 and 2025.6.4.",
    "evidence": "osv:CVE-2025-53942",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-53942",
      "aliases": [
        "BIT-authentik-2025-53942",
        "CVE-2025-53942",
        "GHSA-9g4j-v8w5-7x42",
        "GO-2025-3822"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/goauthentik/authentik",
              "type": "GIT",
              "events": [
                {
                  "introduced": "45737909f64415de520eaaff28b1a4e177a58e4a"
                },
                {
                  "fixed": "23ffad1c6be80bea223caf5f1cf265b984b76328"
                },
                {
                  "fixed": "7a4c6b9b50f8b837133a7a1fd2cb9b7f18a145cd"
                },
                {
                  "fixed": "c3629d12bfe3d32d3dc8f85c0ee1f087a55dde8f"
                },
                {
                  "fixed": "ce3f9e3763c1778bf3a16b98c95d10f4091436ab"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "2025.6.0-rc1"
                      },
                      {
                        "fixed": "2025.6.4"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "7a4c6b9b50f8b837133a7a1fd2cb9b7f18a145cd"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "c3629d12bfe3d32d3dc8f85c0ee1f087a55dde8f"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "ce3f9e3763c1778bf3a16b98c95d10f4091436ab"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "version/2025.6.3",
            "version/2025.6.2",
            "version/2025.6.1",
            "version/2025.6.0",
            "version/2025.6.0-rc1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-53942.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:33.150955381Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/53xxx/CVE-2025-53942.json",
        "https://github.com/goauthentik/authentik/security/advisories/GHSA-9g4j-v8w5-7x42",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-53942",
        "https://github.com/goauthentik/authentik/commit/7a4c6b9b50f8b837133a7a1fd2cb9b7f18a145cd",
        "https://github.com/goauthentik/authentik/commit/c3629d12bfe3d32d3dc8f85c0ee1f087a55dde8f",
        "https://github.com/goauthentik/authentik/commit/ce3f9e3763c1778bf3a16b98c95d10f4091436ab"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-269"
        ],
        "cna_assigner": "GitHub_M",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "<= 2025.4.3, < 2025.4.4"
                  },
                  {
                    "last_affected": "<= 2025.4.3, < 2025.4.4"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/53xxx/CVE-2025-53942.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-53942",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 500426,
  "published_at": "2025-07-23T20:35:07.243+00:00"
}