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

- Severity: Critical 9.4 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 40% of CVEs (2026-12-01)
- Published: 2026-08-18T17:00:19.209Z
- Modified: 2026-11-03T22:13:28.742Z
- Also known as: BIT-AUTHENTIK-2026-57580, GHSA-35v6-hv2g-6992
- Weaknesses: CWE-436
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- goauthentik authentik: < 2026.2.6; >= 2026.5.0, < 2026.5.5
- authentik (Bitnami): before 2026.2.6; from 2026.5.0 before 2026.5.5

## Every score

- GitHub_M: CVSS:4.0 9.4 Critical `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`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/goauthentik/authentik/security/advisories/GHSA-35v6-hv2g-6992> (web)
- <https://github.com/goauthentik/authentik/pull/24057> (web)
- <https://github.com/goauthentik/authentik/pull/24062> (web)
- <https://github.com/goauthentik/authentik/commit/6bd00f09f1f6b5bc5212a10340418fa1b264f02c> (web)
- <https://github.com/goauthentik/authentik/commit/8704a1b89d7bf46bcef0d3c434c821b937fdecc3> (web)
- <https://github.com/goauthentik/authentik/releases/tag/version/2026.2.6> (web)
- <https://github.com/goauthentik/authentik/releases/tag/version/2026.5.5> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-57580> (web)

## Sources

- CVE List: [CVE-2026-57580](https://www.cve.org/CVERecord?id=CVE-2026-57580), CVE Terms of Use, modified 2026-11-03
- NVD: [CVE-2026-57580](https://nvd.nist.gov/vuln/detail/CVE-2026-57580), Public domain, modified 2026-10-22
- Bitnami Vulnerability Database: [BIT-AUTHENTIK-2026-57580](https://osv.dev/vulnerability/BIT-AUTHENTIK-2026-57580), Apache-2.0, modified 2026-08-24

---

Page: https://cve.day/CVE-2026-57580 · Whole record: https://cve.day/CVE-2026-57580.json · Rebuilt by cve.day 2026-11-25T22:59:33.523Z
