Incorrect authorization in authentik - CVE-2026-40166
Published: May 12, 2026
authentik
Detailed vulnerability description
The vulnerability allows a remote user to disclose sensitive information.
The vulnerability exists due to improper access control in the /api/v3/oauth2/access_tokens/ endpoint when handling authenticated GET requests for OAuth2 access tokens. A remote user can retrieve an access token object containing a nested provider object with client_secret values to disclose sensitive information.
Exposure is limited to confidential OAuth2 providers the user has previously authenticated against and for which the user has at least one access token.