CVE-2025-53942
authentik has an insufficient check for account active status during OAuth/SAML authentication
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
7.1
authentik has an insufficient check for account active status during OAuth/SAML authentication
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.
- Record
CVE-2025-53942- CVSS 4.0
- 7.1 High
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 - Weakness
- CWE-269
- Updated
- 2026-11-02
EUVDEUVD-2025-22471
7.1
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.
- Record
EUVD-2025-22471- CVSS 4.0
- 7.1 High
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 - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-9g4j-v8w5-7x42
7.1
Authentik has insufficient check for account active status when authenticating with OAuth/SAML Sources
Summary
Deactivated users that had either enrolled via OAuth/SAML or had their account connected to an OAuth/SAML account can still partially access authentik even if their account is 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.
Patches
authentik 2025.4.4 and 2025.6.4 fix this issue.
Workarounds
Adding 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 expression will only activate the user login stage when the user is active.
For more information
If you have any questions or comments about this advisory:
- Email us at [email protected].
- Record
GHSA-9g4j-v8w5-7x42- CVSS 4.0
- 7.1 High
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 - Weakness
- CWE-269
- Updated
- 2026-11-02
NVD
7.1
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.
- Record
CVE-2025-53942- CVSS 4.0
- 7.1 High
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - CVSS 3.1
- 7.4 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N - Weakness
- CWE-269
- Updated
- 2026-11-02
OSV
7.1
authentik has an insufficient check for account active status during OAuth/SAML authentication
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.
- Record
CVE-2025-53942- CVSS 4.0
- 7.1 High
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 - Weakness
- CWE-269
- Updated
- 2026-11-02
OSVGHSA-9g4j-v8w5-7x42
7.1
Authentik has insufficient check for account active status when authenticating with OAuth/SAML Sources
Summary
Deactivated users that had either enrolled via OAuth/SAML or had their account connected to an OAuth/SAML account can still partially access authentik even if their account is 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.
Patches
authentik 2025.4.4 and 2025.6.4 fix this issue.
Workarounds
Adding 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 expression will only activate the user login stage when the user is active.
For more information
If you have any questions or comments about this advisory:
- Email us at [email protected].
- Record
GHSA-9g4j-v8w5-7x42- CVSS 4.0
- 7.1 High
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 - Weakness
- CWE-269
- Updated
- 2026-11-02
Show 4 moreShow less
OSVBIT-authentik-2025-53942 No score
authentik has an insufficient check for account active status during OAuth/SAML authentication
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 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.
- Record
BIT-authentik-2025-53942- Updated
- 2026-11-02
OSVGO-2025-3822 No score
Authentik has insufficient check for account active status when authenticating with OAuth/SAML Sources in goauthentik.io
Authentik has insufficient check for account active status when authenticating with OAuth/SAML Sources in goauthentik.io.
NOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.
(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)
The additional affected modules and versions are: goauthentik.io before v0.0.0-20250722122105-7a4c6b9b50f8.
- Record
GO-2025-3822- Updated
- 2026-11-02
OSVopenSUSE-SU-2025:15434-1 No score
govulncheck-vulndb-0.0.20250811T192933-1.1 on GA media
These are all security issues fixed in the govulncheck-vulndb-0.0.20250811T192933-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2025:15434-1- Updated
- 2026-11-02
OSVSUSE-SU-2025:02912-1 No score
Security update for govulncheck-vulndb
This update for govulncheck-vulndb fixes the following issues:
-
Update to version 0.0.20250814T182633 2025-08-14T18:26:33Z (jsc#PED-11136)
Go CVE Numbering Authority IDs added or updated with aliases:
- GO-2025-3765 CVE-2024-44906 GHSA-h4h6-vccr-44h2
- GO-2025-3829 CVE-2025-54410 GHSA-4vq8-7jfc-9cvp
-
Update to version 0.0.20250811T192933 2025-08-11T19:29:33Z (jsc#PED-11136)
Go CVE Numbering Authority IDs added or updated with aliases:
- GO-2025-3822 CVE-2025-53942 GHSA-9g4j-v8w5-7x42
- GO-2025-3829 CVE-2025-54410 GHSA-4vq8-7jfc-9cvp
- GO-2025-3830 CVE-2025-54388 GHSA-x4rx-4gw3-53p4
- GO-2025-3831 CVE-2025-50738 GHSA-hfcf-79gh-f3jc
- GO-2025-3832 CVE-2021-21411 GHSA-652x-m2gr-hppm
- GO-2025-3833 CVE-2025-54576 GHSA-7rh7-c77v-6434
- GO-2025-3834 CVE-2025-54424 GHSA-8j63-96wh-wh3j
- GO-2025-3835 CVE-2025-54386 GHSA-q6gg-9f92-r9wg
- GO-2025-3836 CVE-2025-6037 GHSA-6c5r-4wfc-3mcx
- GO-2025-3837 CVE-2025-5999 GHSA-6h4p-m86h-hhgh
- GO-2025-3838 CVE-2025-6000 GHSA-mr4h-qf9j-f665
- GO-2025-3839 CVE-2025-6011 GHSA-mwgr-84fv-3jh9
- GO-2025-3840 CVE-2025-6004 GHSA-qgj7-fmq2-6cc4
- GO-2025-3841 CVE-2025-6014 GHSA-qv3p-fmv3-9hww
- GO-2025-3842 CVE-2025-6015 GHSA-v6r4-35f9-9rpw
- GO-2025-3843 CVE-2025-8341 GHSA-3c93-92r7-j934
- GO-2025-3844 CVE-2025-53534 GHSA-fm3m-jrgm-5ppg
- GO-2025-3845 CVE-2025-54801 GHSA-qx2q-88mx-vhg7
- GO-2025-3847 CVE-2025-54799 GHSA-q82r-2j7m-9rv4
- GO-2025-3848 CVE-2025-6013 GHSA-7rx2-769v-hrwf
- GO-2025-3851 CVE-2025-44779 GHSA-93jv-pvg8-hf3v
- GO-2025-3852 CVE-2025-7195 GHSA-856v-8qm2-9wjv
- GO-2025-3853 CVE-2025-55000 GHSA-f7c3-mhj2-9pvg
- GO-2025-3854 CVE-2025-54999 GHSA-hh28-h22f-8357
- GO-2025-3855 CVE-2025-54998 GHSA-j3xv-7fxp-gfhx
- GO-2025-3856 CVE-2025-55003 GHSA-rxp7-9q75-vj3p
- GO-2025-3857 CVE-2025-54996 GHSA-vf84-mxrq-crqc
- GO-2025-3858 CVE-2025-54997 GHSA-xp75-r577-cvhp
- GO-2025-3859 CVE-2025-55001 GHSA-2q8q-8fgw-9p6p
-
Update to version 0.0.20250807T150727 2025-08-07T15:07:27Z (jsc#PED-11136)
Go CVE Numbering Authority IDs added or updated with aliases:
- GO-2025-3849 CVE-2025-47907
- Record
SUSE-SU-2025:02912-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
goauthentik.ioGo |
before 0.0.0-20250722122105-7a4c6b9b50f8 | 0.0.0-20250722122105-7a4c6b9b50f8 |
authentikBitnami |
before 2025.4.4, 2025.6.0 up to 2025.6.4 | 2025.4.42025.6.4 |
goauthentik.ioGo |
All versions | None known |
govulncheck-vulndbSUSE:Linux Enterprise Module for Package Hub 15 SP6 From an advisory covering 31 CVEs |
before 0.0.20250814T182633-150000.1.98.1 | 0.0.20250814T182633-150000.1.98.1 |
govulncheck-vulndbopenSUSE:Leap 15.6 From an advisory covering 31 CVEs |
before 0.0.20250814T182633-150000.1.98.1 | 0.0.20250814T182633-150000.1.98.1 |
govulncheck-vulndbopenSUSE:Tumbleweed From an advisory covering 29 CVEs |
before 0.0.20250811T192933-1.1 | 0.0.20250811T192933-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2025-53942 is a high vulnerability (CVSS 7.1) in Goauthentik Authentik, published July 22, 2025. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.58%, the 47th percentile. Fixed in goauthentik.io 0.0.0-20250722122105-7a4c6b9b50f8.
References
github.com/goauthentik/authentik/security/advisories/GHSA-9g4j-v8w5-7x42
github.com/goauthentik/authentik/commit/7a4c6b9b50f8b837133a7a1fd2cb9b7f18a145cd
github.com/goauthentik/authentik/commit/c3629d12bfe3d32d3dc8f85c0ee1f087a55dde8f
github.com/goauthentik/authentik/commit/ce3f9e3763c1778bf3a16b98c95d10f4091436ab
nvd.nist.gov/vuln/detail/CVE-2025-53942
github.com/advisories/GHSA-9g4j-v8w5-7x42
Show 34 moreShow less
github.com/CVEProject/cvelistV5/tree/main/cves/2025/53xxx/CVE-2025-53942.json
github.com/goauthentik/authentik
suse.com/support/update/announcement/2025/suse-su-202502912-1
suse.com/security/cve/CVE-2021-21411
suse.com/security/cve/CVE-2024-44906
suse.com/security/cve/CVE-2025-44779
suse.com/security/cve/CVE-2025-47907
suse.com/security/cve/CVE-2025-50738
suse.com/security/cve/CVE-2025-53534
suse.com/security/cve/CVE-2025-53942
suse.com/security/cve/CVE-2025-54386
suse.com/security/cve/CVE-2025-54388
suse.com/security/cve/CVE-2025-54410
suse.com/security/cve/CVE-2025-54424
suse.com/security/cve/CVE-2025-54576
suse.com/security/cve/CVE-2025-54799
suse.com/security/cve/CVE-2025-54801
suse.com/security/cve/CVE-2025-54996
suse.com/security/cve/CVE-2025-54997
suse.com/security/cve/CVE-2025-54998
suse.com/security/cve/CVE-2025-54999
suse.com/security/cve/CVE-2025-55000
suse.com/security/cve/CVE-2025-55001
suse.com/security/cve/CVE-2025-55003
suse.com/security/cve/CVE-2025-5999
suse.com/security/cve/CVE-2025-6000
suse.com/security/cve/CVE-2025-6004
suse.com/security/cve/CVE-2025-6011
suse.com/security/cve/CVE-2025-6013
suse.com/security/cve/CVE-2025-6014
suse.com/security/cve/CVE-2025-6015
suse.com/security/cve/CVE-2025-6037
suse.com/security/cve/CVE-2025-7195
suse.com/security/cve/CVE-2025-8341