CVE-2026-40166
highpriority · track · 0OT risk · elevatedEPSS 0.006 · 46 %ileEUUSEPSS · scored 2026-10-22
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 4.9–7.1
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (4)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- BIT-authentik-2026-40166authentik: Non-admin user can retrieve confidential OAuth client_secret via /api/v3/oauth2/access_tokens/2026-06-01vendor · osvUS
authentik is an open-source identity provider. In versions prior to 2025.12.5 and 2026.2.0 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.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (10)
External citations — patches, advisories, analysis.
- https://github.com/goauthentik/authentik/releases/Patchcnnvd
- https://github.com/goauthentik/authentik/releases/tag/version%2F2025.12.5cnnvd
- https://github.com/goauthentik/authentik/releases/tag/version%2F2026.2.3cnnvd
- https://github.com/goauthentik/authentik/security/advisories/GHSA-hhpc-rqgm-pxj4cnnvd
- https://github.com/goauthentik/authentik/releases/tag/version%2F2025.12.5enisa_euvd
- https://github.com/goauthentik/authentik/releases/tag/version%2F2026.2.3enisa_euvd
- https://github.com/goauthentik/authentik/security/advisories/GHSA-hhpc-rqgm-pxj4enisa_euvd
- https://github.com/goauthentik/authentik/releases/tag/version%2F2025.12.5nvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan