{"id":"CVE-2025-53942","published":"2025-07-23T20:35:07Z","modified":"2025-07-23T20:49:29Z","title":"authentik has an insufficient check for account active status during OAuth/SAML authentication","vendor":"goauthentik","product":"authentik","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00844,"percentile":0.5533,"provenance":"source"},"cwes":[{"id":"CWE-269","name":"Improper Privilege Management"}],"references":[{"url":"https://github.com/goauthentik/authentik/security/advisories/GHSA-9g4j-v8w5-7x42","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/goauthentik/authentik/commit/7a4c6b9b50f8b837133a7a1fd2cb9b7f18a145cd","tags":["x_refsource_MISC"]},{"url":"https://github.com/goauthentik/authentik/commit/c3629d12bfe3d32d3dc8f85c0ee1f087a55dde8f","tags":["x_refsource_MISC"]},{"url":"https://github.com/goauthentik/authentik/commit/ce3f9e3763c1778bf3a16b98c95d10f4091436ab","tags":["x_refsource_MISC"]}],"priority":{"score":16.0,"factors":[{"name":"EPSS percentile","points":11.07},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"goauthentik","affectedVersions":[{"vendor":"goauthentik","product":"authentik","versions":["<= 2025.4.3, < 2025.4.4",">= 2025.6.0-rc1, < 2025.6.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-07-23T20:49:20.375492Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"goauthentik.io","vulnerableRanges":["<0.0.0-20250722122105-7a4c6b9b50f8","all versions"],"patched":["0.0.0-20250722122105-7a4c6b9b50f8"],"from":["GHSA-9g4j-v8w5-7x42","GO-2025-3822"],"provenance":"source"}],"summary":{"text":"authentik, an open-source Identity Provider, has an insufficient check of account active status during OAuth/SAML authentication, which lets deactivated users who registered through or linked their accounts to OAuth/SAML providers retain partial access. An attacker who has such a deactivated account, and who knows the URL of an application, can authorize that application despite being unable to use the API, with the attack possible over the network and requiring no privileges or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:34:02Z"},"euvd":{"id":"EUVD-2025-22471","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-53942","published":"2025-07-23","fixed":"0.0.0-20250722122105-7a4c6b9b50f8","kev":false},{"cve":"CVE-2025-64708","published":"2025-11-19","fixed":"0.0.0-20251119135424-6672e6aaa41e","kev":false,"link":{"from":"CVE-2025-53942","to":"CVE-2025-64708","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:goauthentik.io","fromFixed":"0.0.0-20250722122105-7a4c6b9b50f8","toFixed":"0.0.0-20251119135424-6672e6aaa41e","daysApart":119}]}},{"cve":"CVE-2025-64521","published":"2025-11-19","fixed":"0.0.0-20251119140106-9dbdfc3f1be0","kev":false},{"cve":"CVE-2026-47201","published":"2026-06-02","fixed":"0.0.0-20260528144335-a370d76d23c7","kev":false}],"package":"Go:goauthentik.io"}}