CVE-2026-57580: authentik: Account Takeover via SAML NameID Comment Truncation

CVE-2026-57580 affects 199 listed versions of authentik in the Dawnsentry catalogue.

9.4CVSS critical
None knownexploitation
under 1%EPSS (next 30 days)
18 August 2026published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

authentik

199 of 214 listed versions are affected. Fixed in 2026.5.5, 2026.2.6. The newest release, 2026.8.7, is not affected.

2026.5.4 2026.5.3 2026.5.2 2026.5.1 2026.5.0 2026.2.5 2026.2.4 2026.2.3 2026.2.2 2026.2.1 2026.2.0 2025.12.6 2025.12.5 2025.12.4 2025.12.3 2025.12.2 2025.12.1 2025.12.0 2025.10.4 2025.10.3 2025.10.2 2025.10.1 2025.10.0 2025.8.6 2025.8.5 2025.8.4 2025.8.3 2025.8.2 2025.8.1 2025.8.0 2025.6.4 2025.6.3 2025.6.2 2025.6.1 2025.6.0 2025.4.4 2025.4.3 2025.4.2 2025.4.1 2025.4.0 2025.2.4 2025.2.3 2025.2.2 2025.2.1 2025.2.0 2024.12.5 2024.12.4 2024.12.3 2024.12.2 2024.12.1 2024.12.0 2024.10.5 2024.10.4 2024.10.3 2024.10.2 2024.10.1 2024.10.0 2024.8.6 2024.8.5 2024.8.4 and 139 more

What it is

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.

CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/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 (GitHub)

Published by GitHub on 18 August 2026. Last changed 22 October 2026.

Sources

Check one version you run: look CVE-2026-57580 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.