{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-40166","id":"CVE-2026-40166","title":"authentik: Non-admin user can retrieve confidential OAuth client_secret via /api/v3/oauth2/access_tokens/","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/acces","descriptionLong":"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.","published":"2026-05-22T18:52:46.650Z","updated":"2026-10-28T02:30:37.406900578Z","reserved":"2026-04-09T19:31:56.014Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":7.1,"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","rating":"high","source":"GitHub_M"},"metrics":[{"version":"4.0","score":7.1,"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","rating":"high","source":"GitHub_M"},{"version":"4.0","score":7.1,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"high","source":"github.com"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"}],"rating":"high","products":["goauthentik authentik"],"affectedProducts":[{"vendor":"goauthentik","product":"authentik","defaultStatus":null,"versions":[{"version":"< 2025.12.5","status":"affected"},{"version":">= 2026.2.0-rc1, < 2026.2.3","status":"affected"}],"platforms":[]}],"packages":[],"cwes":["CWE-200","CWE-863"],"aliases":["BIT-authentik-2026-40166","GHSA-hhpc-rqgm-pxj4"],"references":[{"url":"https://github.com/goauthentik/authentik/security/advisories/GHSA-hhpc-rqgm-pxj4","tags":["x_refsource_CONFIRM","advisory"]},{"url":"https://github.com/goauthentik/authentik/releases/tag/version%2F2025.12.5","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/goauthentik/authentik/releases/tag/version%2F2026.2.3","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40166.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40166","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.0046,"epssPercentile":0.40658,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-40166","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40166","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-40166","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-40166","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}