All vulnerabilities

Servers and applications

CVE-2026-57580

Account Takeover via SAML NameID Comment Truncation

Severity
Critical 9.4
Published
15 Jul 2026
Last changed
3 Nov 2026
Added to UpHeron
3 Nov 2026
Fixed in
2026.2.6, 2026.5.5
Exploit chance
0.6% in the next 30 daysHigher than 48% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
CWE-436
Attack
Over the network · Only under certain conditions · No login needed · No user action needed
Attacker can
Read data · Change data
CVSS 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
Also known as
GHSA-35v6-hv2g-6992
Sources
CVE Program, Project advisories (GitHub)

Description

On a SAML Source that matches users by username or email, an attacker who inserts an XML comment into a validly signed assertion can bind their external identity to an existing account and authenticate as that user.

Only inbound SAML Sources configured with the non-default USERNAME_LINK or EMAIL_LINK user-matching mode and signed assertions are affected. Sources using the default unique-identifier matching mode are not affected, and the SAML Provider role (issuing assertions to downstream applications) is not affected.

Exploitation requires an attacker who has an account on the source IdP and can set their own NameID. Injecting a comment into the NameID truncates the value used to match accounts to the text before the comment, while the signed assertion stays valid, so a NameID crafted to truncate to a victim's username or email matches that existing account.

From goauthentik/authentik's security advisory. Shortened; the full text is there.

Workarounds

Add a SAML Source property mapping that rejects any assertion whose NameID or attribute values contain an XML comment. This blocks the attack without changing how identities are linked.

Alternatively, switch affected SAML Sources to the default unique-identifier user-matching mode, which uses the full NameID and is not exploitable. This changes how external identities are matched to local accounts.

Workarounds as given by goauthentik/authentik's security advisory.

Affected software

SoftwareAffected versions
authentikServers and applications · cna:goauthentik|authentik
  • Every version before 2026.2.6
  • From 2026.5.0 before 2026.5.5
authentikServers and applications · github:goauthentik/authentik
  • Every version before 2026.5.5
  • Every version before 2026.2.6

About authentik

The authentication glue you need.

From its GitHub repository.
Total installations
1 millionauthentik
GitHub stars
26,351GitHub, 15 Nov 2026
Forks
2,134GitHub, 15 Nov 2026
Latest release
version/2026.8.5GitHub, 15 Nov 2026
Released
21 Oct 2026GitHub
First published on GitHub
30 Dec 2019GitHub

Release lines

ReleaseLatestSecurity fixes
2026.82026.8.5Yes
2026.52026.5.8Yes
2026.22026.2.7Ended 18 Aug 2026
2025.122025.12.6Ended 22 May 2026
2025.102025.10.4Ended 24 Feb 2026
2025.82025.8.6Ended 13 Jan 2026

From endoflife.date.

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-57580
  • GitHub Advisory Database https://github.com/advisories/GHSA-35v6-hv2g-6992
  • github.com https://github.com/goauthentik/authentik/security/advisories/GHSA-35v6-hv2g-6992