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.
Published: 2026-08-18
Score: 9.4 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability allows an attacker to forge a SAML assertion that contains an XML comment in the NameID. Because authentik parses the comment differently than the identity provider does, the comment truncates the NameID value to the text before the comment. This enables the attacker to bind an external identity to a victim's existing account, effectively taking over that account without needing the victim’s password or the identity provider’s private key. The weakness is classified as CWE‑436, a defect in the handling of XML comments.

Affected Systems

Affected products are the authentik identity provider from goauthentik. All instances running versions before 2026.2.6 or 2026.5.5 that use an inbound SAML source with the USERNAME_LINK or EMAIL_LINK user‑matching modes are vulnerable. Inbound sources configured with the default unique‑identifier matching mode or the authentik outbound SAML provider are not impacted.

Risk and Exploitability

The CVSS base score of 9.4 marks this as a critical flaw. EPSS data is not available, so the likelihood of exploitation cannot be quantified, but the attack requires an attacker‑controlled identity provider and a victim whose account is linked via the vulnerable matching mode. Because the flaw leads to full account takeover and is exploitable from any network location that can deliver the crafted assertion, the risk is high. The flaw is currently not listed in the CISA KEV catalog, but that does not mitigate the need for a prompt patch.

Generated by OpenCVE AI on August 18, 2026 at 18:55 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade authentik to version 2026.2.6 or later (2026.5.5 and above) to apply the fix that corrects NameID comment parsing.
  • Reconfigure or disable inbound SAML sources that use USERNAME_LINK or EMAIL_LINK modes until the update is applied.
  • Verify that all inbound SAML sources are using the default unique‑identifier matching mode to prevent similar truncation attacks.
  • If an immediate upgrade is not possible, audit external identity providers to ensure the NameID field cannot include XML comments and consider blocking comment injection.

Generated by OpenCVE AI on August 18, 2026 at 18:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 18 Aug 2026 19:15:00 +0000

Type Values Removed Values Added
First Time appeared Goauthentik
Goauthentik authentik
Vendors & Products Goauthentik
Goauthentik authentik

Tue, 18 Aug 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 18 Aug 2026 17:15:00 +0000

Type Values Removed Values Added
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.
Title authentik: Account Takeover via SAML NameID Comment Truncation
Weaknesses CWE-436
References
Metrics cvssV4_0

{'score': 9.4, 'vector': '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'}


Subscriptions

Goauthentik Authentik
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-18T17:45:24.521Z

Reserved: 2026-06-24T18:49:56.208Z

Link: CVE-2026-57580

cve-icon Vulnrichment

Updated: 2026-08-18T17:39:58.012Z

cve-icon NVD

Status : Received

Published: 2026-08-18T17:16:59.667

Modified: 2026-08-18T18:18:38.730

Link: CVE-2026-57580

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-18T19:00:12Z

Weaknesses