🛡️ CVE-2026-40166 — authentik
Description
authentik: Non-admin user can retrieve confidential OAuth client_secret via /api/v3/oauth2/access_tokens/
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.
Affected software
CVE-2026-40166 is recorded against 2 packages.
- authentik
- unknown
Timeline and source
Published on 1 June 2026 and last revised on 8 July 2026. No public exploit is currently recorded for this entry. Record sourced from NVD.
References
github.com (Web)
github.com (Web)
github.com (Web)
nvd.nist.gov (Web)
Details
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| authentik | — | — |
| unknown | — | — |
References
Similar Threats
- Unknown CGA-855q-q8qp-fh5c
- Unknown CGA-77vp-4q83-qrv6
- Unknown CGA-2wxm-m3q3-v24c
- Unknown CGA-5c9q-6m5j-82rh
- Unknown CGA-5q4r-x59p-qcwc
More CVE 2026 advisories
Browse all of CVE 2026 in the advisory index.
Site Security Check
Is authentik part of your stack?
CVE-2026-40166 is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.