Skip to main content

authentik EUVDEUVD-2026-61062

| CVE-2026-57580 CRITICAL
Interpretation Conflict (CWE-436)
2026-08-18 GitHub_M
9.4
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain account on trusted upstream SAML IdP
  2. Delivery
    Set NameID to victim-value<!--x-->suffix
  3. Exploit
    Authenticate to authentik via SAML
  4. Execution
    Signature validates, comment truncates matched value
  5. Persist
    External identity linked to victim account
  6. Impact
    Full account takeover with persistent link

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V4 - API and Web Service Interpretation consistency
Exploitation Conditions

The affected authentik instance must have an inbound SAML Source configured with the non-default USERNAME_LINK or EMAIL_LINK user-matching mode - the default unique-identifier matching mode is not exploitable, and outbound SAML Provider usage is not affected. The attacker must possess a valid account on the upstream (source) identity provider that authentik trusts, AND must be able to control/set that account's NameID (or a mapped attribute such as email) so it can carry an injected XML comment of the form victim<!--x-->suffix. No authentication to authentik itself and no user interaction from the victim is required (PR:N/UI:N), and the attacker does not need the victim's password or the IdP's signing private key. Limiting factors: exploitation is gated on the non-default matching configuration, on the attacker having an IdP account with attacker-controlled NameID, and on the specific comment-excluding signature canonicalization behavior.

Impact

Signals are mostly aligned toward high priority: the CVSS 4.0 base score is 9.4 with network vector, no UI, and no privileges on the target (AV:N/PR:N/UI:N), high confidentiality and integrity impact, and a scope/subsequent-system impact reflecting full account takeover of a federated identity. The one moderating factor is AT:P (attack requirement) plus the explicit precondition that the SAML Source must be configured in the non-default USERNAME_LINK or EMAIL_LINK matching mode - deployments using the default unique-identifier matching are not affected, and authentik's outbound SAML Provider role is not affected, which meaningfully narrows the exploitable population. There is no CISA KEV listing and no EPSS score supplied, and no public exploit was identified, so this is not confirmed as actively exploited; however, the mechanism is simple and fully documented in the public patch and tests, lowering the barrier to weaponization. The provided 'Denial Of Service' tag is inconsistent with the actual impact (identity takeover) and appears to be a mislabel - the description and patch clearly describe authentication bypass/account hijack, not availability loss. Given that this is an identity provider guarding downstream single sign-on, any operator running the affected matching modes should treat it as urgent and patch immediately, while operators on default matching can prioritize slightly lower after verifying their configuration.

Exploit ScenarioDerived

An attacker registers or controls a normal account on an upstream SAML identity provider that an authentik instance trusts as an inbound Source configured in USERNAME_LINK mode. The attacker sets their account's NameID to 'victim_username<!--x-->random', logs into authentik via SAML, and the signed assertion validates while authentik matches on the truncated 'victim_username', binding the attacker's external identity to the victim's authentik account and granting full takeover. No public proof-of-concept was identified, but the vendor's regression tests demonstrate the exact truncation behavior.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 18, 2026

Account takeover in authentik (goauthentik) identity provider before 2026.2.6 and 2026.5.5 allows an attacker holding an account on an upstream SAML identity provider to hijack a victim's authentik account. By injecting an XML comment into the SAML NameID (e.g. victim<!--x-->attacker), the value authentik reads for user matching is truncated to the text before the comment while the IdP's signed assertion still validates, because comment-excluding canonicalization (xml-exc-c14n) strips the comment before the signature digest is computed. This binds the attacker's external identity to the victim's existing account without the victim's password or the IdP private key, and the malicious link persists across future logins. No public exploit identified at time of analysis; the flaw is fixed upstream and demonstrated by regression tests in the vendor patch.

RemediationAI

Vendor-released patch: upgrade to authentik 2026.2.6 or 2026.5.5 (release tags https://github.com/goauthentik/authentik/releases/tag/version/2026.2.6 and https://github.com/goauthentik/authentik/releases/tag/version/2026.5.5), which change SAML value parsing to read full element text via itertext() (commits 6bd00f09f1f6b5bc5212a10340418fa1b264f02c and 8704a1b89d7bf46bcef0d3c434c821b937fdecc3). If immediate patching is not possible, the most effective compensating control is to switch affected inbound SAML Sources away from USERNAME_LINK/EMAIL_LINK to the default unique-identifier matching mode, which is not vulnerable - the trade-off is that automatic linking to pre-existing local accounts by username/email stops working and users may need re-enrollment or manual linking. As a secondary measure, restrict or audit which upstream identity providers are trusted and review whether users on those IdPs can freely set their own NameID; also audit existing SAML source connections for accounts linked to unexpected external identities, since the malicious binding persists after the initial attack. Consult GHSA-35v6-hv2g-6992 for authoritative guidance.

Affected VersionsENISA

authentik < 2026.2.6
authentik 2026.5.0, < 2026.5.5

Affected Packages

euvd authentik fix: 2026.2.6, 2026.5.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause is a classic XML interpretation-conflict (CWE-436) between two parsers acting on the same signed SAML document. authentik read the NameID and attribute values using lxml's Element.text, which returns only character data up to the first child node; an embedded XML comment is a child node, so admin<!--x-->_user silently truncates to 'admin'. The SAML signature, however, is verified over an exclusive-comment canonicalization (xml-exc-c14n) that removes comments entirely, so the digest is computed over the full, comment-free string and the signature remains valid. The mismatch - signature validates the whole value, application logic consumes a truncated substring - is the same class of 'SAML comment truncation' issue historically seen in other SAML libraries. The vendor fix (authentik/common/saml/utils.py get_element_text) replaces Element.text with ''.join(element.itertext()) so the matching value equals what was actually signed. Affected component per CPE is cpe:2.3:a:goauthentik:authentik across all versions prior to the fixes.

Know when Authentik gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 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
vuln.today AI 10.0 CRITICAL

Network-reachable SSO with no privileges on authentik and no victim interaction (AV:N/PR:N/UI:N); crossing from a foreign IdP account into the victim's authentik account is a scope change (S:C) with high confidentiality and integrity impact but no availability effect.

3.1 AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Aug 18, 2026 - 18:03 EUVD
CVE Published
Aug 18, 2026 - 17:00 cve.org
CRITICAL 9.4

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

Account takeover vulnerability in authentik identity provider (CVE-2026-57580) allows authenticated attackers to hijack victim accounts through SAML comment injection attacks. This critical flaw affects all organizations using authentik for identity management, enabling unauthorized access to all downstream systems and applications without requiring victim action or password compromise.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include: restrict SAML authentication to pre-approved upstream identity providers, implement detailed audit logging of SAML assertions and authentication events, require additional verification for sensitive account operations, and monitor SAML NameID values for XML special characters and comment syntax (<!-- and -->).

Threat Intelligence Overview

EPSS Score
0.4%
Top 63% exploitable
Prevalence
Medium
popular open-source self-hosted identity provider, common but not ubiquitous
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +47
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2023-48228 CRITICAL POC
9.8 Nov 21

authentik is an open-source identity provider. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploi

CVE-2022-23555 HIGH POC
8.8 Dec 28

authentik is an open-source Identity Provider focused on flexibility and versatility. Rated high severity (CVSS 8.8), th

CVE-2022-46172 MEDIUM POC
6.4 Dec 28

authentik is an open-source Identity provider focused on flexibility and versatility. Rated medium severity (CVSS 6.4),

CVE-2026-49448 CRITICAL
9.8 Jun 02

Authentication bypass in authentik identity provider (versions prior to 2025.12.6, 2026.2.4, and 2026.5.1) allows remote

CVE-2024-38371 CRITICAL
9.8 Jun 28

authentik is an open-source Identity Provider. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploi

CVE-2023-46249 CRITICAL
9.8 Oct 31

authentik is an open-source Identity Provider. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploi

CVE-2022-46145 CRITICAL
9.8 Dec 02

authentik is an open-source identity provider. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploi

CVE-2025-52553 CRITICAL
9.6 Jun 27

authentik is an open-source identity provider. After authorizing access to a RAC endpoint, authentik creates a token whi

CVE-2026-42849 CRITICAL
9.3 Jun 02

Cross-site scripting in authentik identity provider versions prior to 2025.12.5 and 2026.2.3 allows remote attackers to

CVE-2026-25227 CRITICAL
9.1 Feb 12

Code injection in authentik identity provider from 2021.3.1 through multiple versions. Users with delegated permissions

CVE-2024-47070 CRITICAL
9.0 Sep 27

authentik is an open-source identity provider. Rated critical severity (CVSS 9.0), this vulnerability is remotely exploi

CVE-2026-94606 HIGH
8.9 Sep 24

Multi-factor authentication bypass in authentik (goauthentik) allows an attacker who already knows a target user's passw

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy