Account takeover via NameID comment truncation
Published Aug 18, 2026 · Updated Aug 18, 2026
Authentication bypass in authentik before 2026.2.6 and 2026.5.5 lets remote authenticated users take over accounts via NameID comment injection. In affected inbound SAML Sources, the code reads NameID and attribute values with Element.text, which stops at the first child node, so an embedded XML comment truncates the value that authentik matches while the signed assertion still covers the full text. Exploitation requires a signed inbound assertion, the non-default USERNAME_LINK or EMAIL_LINK mode, and an attacker-controlled source IdP account; the malicious external-identity link then persists for later logins.
Summary
What happened
Authentication bypass in authentik before 2026.2.6 and 2026.5.5 lets remote authenticated users take over accounts via NameID comment injection. In affected inbound SAML Sources, the code reads NameID and attribute values with Element.text, which stops at the first child node, so an embedded XML comment truncates the value that authentik matches while the signed assertion still covers the full text. Exploitation requires a signed inbound assertion, the non-default USERNAME_LINK or EMAIL_LINK mode, and an attacker-controlled source IdP account; the malicious external-identity link then persists for later logins.
The record
- CVE
- CVE-2026-57580
- Published
- Aug 18, 2026
- Updated
- Aug 18, 2026
- Vendor
- Authentik Security Inc.
- Product
- authentik
- Classifications
- CWE-436, T1078
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Aug 18, 2026CVE publishedPublication date reported by the CVE source.
- Aug 18, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=< 2026.2.6
- Affected versionversion=>= 2026.5.0, < 2026.5.5
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo