CVE-2026-40166
published high CVSS 4.0 · 7.1authentik: Non-admin user can retrieve confidential OAuth client_secret via /api/v3/oauth2/access_tokens/
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| goauthentik | — | authentik< 2025.12.5 · >= 2026.2.0-rc1, < 2026.2.3 | Affected | Not stated | GitHub_M |
Description
authentik is an open-source identity provider. In versions prior to 2025.12.5 and 2026.2.0-rc1 through 2026.2.2, authenticated non-admin users with at least one OAuth2 access token can retrieve the client_secret of confidential OAuth2 providers they have previously authenticated against, exposing sensitive information to users without the correct permissions. This logic is GET /api/v3/oauth2/access_tokens/. The API response includes a nested provider object containing client_id and client_secret for providers configured with client_type: confidential, which should not be accessible to low-privilege users. This issue has been fixed in versions 2025.12.5 and 2026.2.3.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:L/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| goauthentik | authentik | < 2025.12.5 (affected)>= 2026.2.0-rc1, < 2026.2.3 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-200 CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
- CWE-863 CWE-863: Incorrect Authorization
References
3Provider assertions
2GitHub_M · cna
authentik: Non-admin user can retrieve confidential OAuth client_secret via /api/v3/oauth2/access_tokens/
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 0ba139a8a7854977f5c02cb56647e233e59e4ca90dc00317a4f9e3b27c9f7a67
- Ingested
- 23 Sep 2026, 09:13:02 UTC
- Source record
- Official CVE record