{"id":"CVE-2026-40166","aliases":["CVE-2026-40166","BIT-AUTHENTIK-2026-40166","GHSA-hhpc-rqgm-pxj4"],"related":[],"kind":"vulnerability","state":"published","title":"authentik: Non-admin user can retrieve confidential OAuth client_secret via /api/v3/oauth2/access_tokens/","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"},{"lang":"en","text":"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.","format":"markdown","source":"bitnami"}],"published":"2026-05-22T18:52:46.650Z","modified":"2026-07-23T16:10:00.137Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":7.1,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-200","CWE-863"],"affected":[{"ranges":[{"version":"< 2025.12.5","status":"affected"},{"version":">= 2026.2.0-rc1, < 2026.2.3","status":"affected"}],"vendor":"goauthentik","product":"authentik","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2025.12.5"},{"type":"semver","introduced":"2026.2.0","status":"affected","fixed":"2026.2.3"}],"ecosystem":"Bitnami","package":"authentik","purl":"pkg:bitnami/authentik","source":"bitnami"}],"references":[{"url":"https://github.com/goauthentik/authentik/security/advisories/GHSA-hhpc-rqgm-pxj4","tags":["web","x-refsource-confirm"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/goauthentik/authentik/releases/tag/version%2F2025.12.5","tags":["web","x-refsource-misc"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/goauthentik/authentik/releases/tag/version%2F2026.2.3","tags":["web","x-refsource-misc"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40166","tags":["web"],"sources":["bitnami"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-05-26T18:47:45.180Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-40166","url":"https://www.cve.org/CVERecord?id=CVE-2026-40166","licence":"CVE Terms of Use","modified":"2026-05-26T18:47:57.418Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-40166","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40166","licence":"Public domain","modified":"2026-07-23T16:10:00.137Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-AUTHENTIK-2026-40166","url":"https://osv.dev/vulnerability/BIT-AUTHENTIK-2026-40166","licence":"Apache-2.0","modified":"2026-07-08T08:26:30.016Z"}],"updatedAt":"2026-11-25T22:59:22.202Z","epss":{"score":0.0046,"percentile":0.41605,"date":"2026-12-01T12:00:22.000Z"}}