CVE-2026-40166
JSON

7.1high

authentik: Non-admin user can retrieve confidential OAuth client_secret via /api/v3/oauth2/access_tokens/

Severity
7.1high CVSS:4.0 by GitHub_M
Exploit likelihood
0.46% (higher than 41% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
BIT-AUTHENTIK-2026-40166GHSA-hhpc-rqgm-pxj4

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.

Affected

Product or packageVersionsReported by
goauthentik authentik< 2025.12.5, >= 2026.2.0-rc1, < 2026.2.3CVE List
authentik (Bitnami)before 2025.12.5, from 2026.2.0 before 2026.2.3Bitnami Vulnerability Database

All scores

GitHub_M7.1high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:L/SI:N/SA:N
Bitnami Vulnerability Databasehigh rating

Classification

CWE-200CWE-863

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

authentik es un proveedor de identidad de código abierto. En versiones anteriores a 2025.12.5 y 2026.2.0-rc1 hasta 2026.2.2, los usuarios autenticados no administradores con al menos un token de acceso OAuth2 pueden recuperar el client_secret de proveedores OAuth2 confidenciales contra los que se han autenticado previamente, exponiendo información sensible a usuarios sin los permisos correctos. Esta lógica es GET /API/v3/oauth2/access_tokens/. La respuesta de la API incluye un objeto de proveedor anidado que contiene client_id y client_secret para proveedores configurados con client_type: confidential, lo cual no debería ser accesible para usuarios con bajos privilegios. Este problema ha sido solucionado en las versiones 2025.12.5 y 2026.2.3.

Bitnami Vulnerability Database

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.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-40166 changed 2026-05-26CVE Terms of Use
NVDCVE-2026-40166 changed 2026-07-23Public domain
Bitnami Vulnerability DatabaseBIT-AUTHENTIK-2026-40166 changed 2026-07-08Apache-2.0