Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-57580

authentik: Account Takeover via SAML NameID Comment Truncation
Back to all
CVE

CVE-2026-57580

authentik: Account Takeover via SAML NameID Comment Truncation

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 USERNAMELINK or EMAILLINK 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.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
9.4
-
4.0
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
C
H
U
0
-
C
H
U
-

Related Resources

No items found.

References

https://github.com/goauthentik/authentik/releases/tag/version/2026.2.6, https://github.com/goauthentik/authentik/releases/tag/version/2026.5.5, https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/57xxx/CVE-2026-57580.json, https://github.com/goauthentik/authentik/security/advisories/GHSA-35v6-hv2g-6992, https://nvd.nist.gov/vuln/detail/CVE-2026-57580, https://github.com/goauthentik/authentik/commit/6bd00f09f1f6b5bc5212a10340418fa1b264f02c, https://github.com/goauthentik/authentik/commit/8704a1b89d7bf46bcef0d3c434c821b937fdecc3, https://github.com/goauthentik/authentik/pull/24057, https://github.com/goauthentik/authentik/pull/24062

Severity

0

CVSS Score
0
10

Basic Information

Base CVSS
0
EPSS Probability
0.00441%
EPSS Percentile
0.36687%
Introduced Version
7a71bcfcdc442204b8985ab379b22f7eb9fe321f
Fix Available
8704a1b89d7bf46bcef0d3c434c821b937fdecc3

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading