{"id":"CVE-2026-40166","published":"2026-05-22T18:52:46Z","modified":"2026-05-26T18:47:57Z","title":"authentik: Non-admin user can retrieve confidential OAuth client_secret via /api/v3/oauth2/access_tokens/","vendor":"goauthentik","product":"authentik","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0046,"percentile":0.40793,"provenance":"source"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"},{"id":"CWE-863","name":"Incorrect Authorization"}],"references":[{"url":"https://github.com/goauthentik/authentik/security/advisories/GHSA-hhpc-rqgm-pxj4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/goauthentik/authentik/releases/tag/version%2F2025.12.5","tags":["x_refsource_MISC"]},{"url":"https://github.com/goauthentik/authentik/releases/tag/version%2F2026.2.3","tags":["x_refsource_MISC"]}],"priority":{"score":13.1,"factors":[{"name":"EPSS percentile","points":8.16},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"goauthentik","affectedVersions":[{"vendor":"goauthentik","product":"authentik","versions":["< 2025.12.5",">= 2026.2.0-rc1, < 2026.2.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-26T18:47:45.180359Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-31490","exploited":false,"provenance":"source"}}