CVE-2026-57580
JSON

9.4critical

authentik: Account Takeover via SAML NameID Comment Truncation

Severity
9.4critical CVSS:4.0 by GitHub_M
Exploit likelihood
0.44% (higher than 40% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
BIT-AUTHENTIK-2026-57580GHSA-35v6-hv2g-6992

Description

authentik is an open-source identity provider. Prior to 2026.2.6 and 2026.5.5, an inbound SAML Source configured with the non-default USERNAME_LINK or EMAIL_LINK user-matching mode interprets an XML comment in a NameID differently from the identity provider's signed assertion. An attacker with an account on the source identity provider who can set the account's NameID can inject an XML comment that truncates the value used by authentik to the text before the comment while the signed assertion remains valid. A crafted NameID can therefore truncate to a victim's username or email and bind the attacker's external identity to the victim's existing account. This grants full takeover without the victim's password or the identity provider's private key, and the malicious link persists so later logins succeed without the comment. Sources using the default unique-identifier matching mode and authentik's outbound SAML Provider role are not affected. This issue is fixed in versions 2026.2.6 and 2026.5.5.

Affected

Product or packageVersionsReported by
goauthentik authentik< 2026.2.6, >= 2026.5.0, < 2026.5.5CVE List
authentik (Bitnami)before 2026.2.6, from 2026.5.0 before 2026.5.5Bitnami Vulnerability Database

All scores

GitHub_M9.4critical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N
Bitnami Vulnerability Databasecritical rating

Classification

CWE-436

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

authentik is an open-source identity provider. Prior to 2026.2.6 and 2026.5.5, an inbound SAML Source configured with the non-default USERNAME_LINK or EMAIL_LINK user-matching mode interprets an XML comment in a NameID differently from the identity provider's signed assertion. An attacker with an account on the source identity provider who can set the account's NameID can inject an XML comment that truncates the value used by authentik to the text before the comment while the signed assertion remains valid. A crafted NameID can therefore truncate to a victim's username or email and bind the attacker's external identity to the victim's existing account. This grants full takeover without the victim's password or the identity provider's private key, and the malicious link persists so later logins succeed without the comment. Sources using the default unique-identifier matching mode and authentik's outbound SAML Provider role are not affected. This issue is fixed in versions 2026.2.6 and 2026.5.5.

NVD (es)

authentik es un proveedor de identidad de código abierto. Antes de 2026.2.6 y 2026.5.5, una fuente SAML entrante configurada con el modo de coincidencia de usuario no predeterminado USERNAME_LINK o EMAIL_LINK interpreta un comentario XML en un NameID de manera diferente a la aserción firmada del proveedor de identidad. Un atacante con una cuenta en el proveedor de identidad de origen que puede establecer el NameID de la cuenta puede inyectar un comentario XML que trunca el valor utilizado por authentik al texto anterior al comentario mientras la aserción firmada sigue siendo válida. Un NameID manipulado puede, por lo tanto, truncarse al nombre de usuario o correo electrónico de una víctima y vincular la identidad externa del atacante a la cuenta existente de la víctima. Esto otorga una toma de control total sin la contraseña de la víctima o la clave privada del proveedor de identidad, y el enlace malicioso persiste para que los inicios de sesión posteriores tengan éxito sin el comentario. Las fuentes que utilizan el modo de coincidencia de identificador único predeterminado y el rol de proveedor SAML saliente de authentik no se ven afectadas. Este problema está solucionado en las versiones 2026.2.6 y 2026.5.5.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-57580 changed 2026-11-03CVE Terms of Use
NVDCVE-2026-57580 changed 2026-10-22Public domain
Bitnami Vulnerability DatabaseBIT-AUTHENTIK-2026-57580 changed 2026-08-24Apache-2.0