llamaCVEVulnerability Intelligence
/
authentik

CVE-2026-40166

authentik: Non-admin user can retrieve confidential OAuth client_secret via /api/v3/oauth2/access_tokens/

Specific setups onlyParche disponibleinformation disclosure
Descargar PNG JSON
CVSS 4.0
7.1
Alta
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 Fuente: CNA
ExplotaciónSin evidenciaSSVC: none · no figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche2 versiones2025.12.5 · 2026.2.3
Exposición180 dDesde la divulgación, 22 may 2026, 1:52 p. m.
Detección178 dDesde la divulgación hasta su ingreso al índice
Decisión SSVCSeguir
Remediar en la ventana regular de mantenimiento
Sin explotación conocida, no automatizable e impacto técnico parcial. Hay versiones corregidas disponibles.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Evaluación SSVC +1
Explotación
Remediación
Monitoreo
Detectada
Fuente: OSV +1
22 may 26
26 may 26
17 nov 26
18 nov 26
19 nov 26
22 may 26
6 jul 26
21 ago 26
5 oct 26
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada CVE-2026-40166 divulgada · CVSS 7.1 (CNA)
Divulgación Evaluación SSVC CISA-ADP · explotación ninguna
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Monitoreo Fuente: OSV Registro visto por primera vez en OSV
Monitoreo Verificada Última verificación contra las fuentes
Resumen

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.

¿Qué significa?A non-admin authenticated user can read the client_secret of confidential OAuth2 providers they have previously authenticated against, through the /api/v3/oauth2/access_tokens/ API endpoint. This could allow unauthorized reuse of confidential client credentials.
¿Quién está afectado?Affected are authentik 2025.12.5 and earlier in that branch, and versions from 2026.2.0-rc1 up to but not including 2026.2.3. The bug requires a user who has completed an OAuth2 flow against a confidential provider, so the setup matters as well as the version.
¿Qué hacer?Upgrade to authentik 2025.12.5 if you are on the 2025.12 line, or to 2026.2.3 if you are on the 2026.2 line. The fixed versions are the vendor's patch targets for this vulnerability.
Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
The attacker must have at least one OAuth2 access token object returned by the API, from having previously completed an OAuth2 flow against a confidential provider.“who has previously completed an OAuth2 flow against a confidential provider”
¿Quién debe revisar?Teams running authentik identity provider versions before 2025.12.5 or 2026.2.0 through 2026.2.2, especially those with confidential OAuth2 providers and non-admin users.
MitigaciónRestrict API access to /api/v3/oauth2/access_tokens/ for non-admin users, or review and limit which users are permitted to complete OAuth2 flows against confidential providers until a patched version can be applied.
Vector CVSS 4.0

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
Requisitos de ataqueAT:N
NingunoPresentes
PrivilegiosPR:L
NingunoBajosAltos
InteracciónUI:N
NingunaPasivaActiva
Confid. (sistema)VC:H
AltoBajoNinguno
Integridad (sistema)VI:N
AltoBajoNinguno
Disponib. (sistema)VA:N
AltoBajoNinguno
Confid. (posterior)SC:L
AltoBajoNinguno
Integridad (posterior)SI:N
AltoBajoNinguno
Disponib. (posterior)SA:N
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida
authentik< 2025.12.5
authentik≥ 2026.2.0-rc1 < 2026.2.3
2025.12.5
2026.2.0-rc1
2026.2.3
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
authentik
Corregida 2025.12.5, 2026.2.3 — —
Versiones corregidas2025.12.52026.2.3
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Fabricantehttps://github.com/goauthentik/authentik/security/advisories/GHSA-hhpc-rqgm-pxj4
Otrahttps://github.com/goauthentik/authentik/releases/tag/version%2F2025.12.5
Otrahttps://github.com/goauthentik/authentik/releases/tag/version%2F2026.2.3

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.