CVE-2026-57580: CWE-436: Interpretation Conflict in goauthentik authentik
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.
AI Analysis
Technical Summary
CVE-2026-57580 is a critical vulnerability in the open-source identity provider authentik. It arises from an interpretation conflict (CWE-436) in how authentik processes XML comments within the NameID element of inbound SAML assertions when configured with non-default USERNAME_LINK or EMAIL_LINK user-matching modes. An attacker who controls an account on the source identity provider can inject an XML comment that truncates the NameID value used by authentik, while the signed assertion remains valid. This allows the attacker to link their external identity to a victim's existing account, effectively taking over the victim's account without needing their password or the identity provider's private key. The malicious link persists across logins. The vulnerability does not impact the default unique-identifier matching mode or authentik's outbound SAML Provider role. The issue is resolved in authentik versions 2026.2.6 and 2026.5.5.
Potential Impact
Successful exploitation allows an attacker with an account on the source identity provider to fully take over a victim's account in authentik without requiring the victim's password or the identity provider's private key. This is achieved by injecting a crafted XML comment in the NameID that causes truncation and identity binding to the victim's username or email. The attacker gains persistent access as the malicious link remains valid for subsequent logins.
Mitigation Recommendations
Upgrade authentik to version 2026.2.6 or 2026.5.5 or later, where this vulnerability is fixed. Until patched, avoid configuring inbound SAML Sources with USERNAME_LINK or EMAIL_LINK user-matching modes if possible. No other mitigations are specified. Patch status is confirmed fixed in these versions.
CVE-2026-57580: CWE-436: Interpretation Conflict in goauthentik authentik
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.
CVSS v4.0
Score 9.4critical
Affected software
pkg:github/goauthentik/authentikRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-57580 is a critical vulnerability in the open-source identity provider authentik. It arises from an interpretation conflict (CWE-436) in how authentik processes XML comments within the NameID element of inbound SAML assertions when configured with non-default USERNAME_LINK or EMAIL_LINK user-matching modes. An attacker who controls an account on the source identity provider can inject an XML comment that truncates the NameID value used by authentik, while the signed assertion remains valid. This allows the attacker to link their external identity to a victim's existing account, effectively taking over the victim's account without needing their password or the identity provider's private key. The malicious link persists across logins. The vulnerability does not impact the default unique-identifier matching mode or authentik's outbound SAML Provider role. The issue is resolved in authentik versions 2026.2.6 and 2026.5.5.
Potential Impact
Successful exploitation allows an attacker with an account on the source identity provider to fully take over a victim's account in authentik without requiring the victim's password or the identity provider's private key. This is achieved by injecting a crafted XML comment in the NameID that causes truncation and identity binding to the victim's username or email. The attacker gains persistent access as the malicious link remains valid for subsequent logins.
Mitigation Recommendations
Upgrade authentik to version 2026.2.6 or 2026.5.5 or later, where this vulnerability is fixed. Until patched, avoid configuring inbound SAML Sources with USERNAME_LINK or EMAIL_LINK user-matching modes if possible. No other mitigations are specified. Patch status is confirmed fixed in these versions.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-24T18:49:56.208Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a849468c6e8be03328570e4
Added to database: 08/18/2026, 17:20:40 UTC
Last enriched: 08/18/2026, 17:36:07 UTC
Last updated: 08/18/2026, 22:36:21 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.