Skip to main content
VulnerabilityPublished

CVE-2026-40165: goauthentik authentik · Improper Authentication

Affects goauthentik authentikSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 8.7 High : upgrade to 2026.2.3 or 2025.12.5 soon.

Data as of 18 Nov 2026, 20:25 UTC

CVSS 3.1 base score
8.7High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.5% chance of exploitation in 30 days – higher than 43% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 2026.2.3, 2025.12.5
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 20 May 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 18 Nov 2026.

What to do

Upgrade authentik to 2026.2.3 or 2025.12.5; goauthentik/authentik to 2025.12.5.

Affected software

ProductAffectedFixed in
goauthentikauthentikAffected
  • >=2026.2.0-rc1 <2026.2.3
Fixed in
  • 2026.2.3
goauthentikauthentikAffected
  • <2025.12.5
Fixed in
  • 2025.12.5
GitHubgoauthentik/authentikpkg:github/goauthentik/authentikOther threatsAffected
  • <2025.12.5
  • =2026.2.0-rc1
  • <=2026.2.2
Fixed in
  • 2025.12.5

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A fix is available and has been released in authentik versions 2025.12.5 and 2026.2.3. Users should upgrade to these or later versions to remediate the vulnerability. No additional mitigations are indicated by the vendor advisory.

Description

authentik is an open-source identity provider. Versions 2025.12.4 and prior, and versions 2026.2.0-rc1 through 2026.2.2 were vulnerable to Authentication Bypass through SAML NameID XML Comment Injection. Due to how authentik extracted the NameID value from a SAML assertion, it was possible for an attacker to trick authentik into only seeing a part of the NameID value, potentially allowing an attacker to gain access to other accounts. This issue could be exploited on an authentik instance with a SAML Source, where the attacker had an account on the SAML Source and the ability to modify their NameID value (commonly username or E-mail), and XML Signing was enabled. The attacker could modify the SAML assertion given to authentik by injecting a comment within the NameID value, which effectively truncated the NameID value to the snippet before the comment, and gave the attacker access to any user account. This issue has been fixed in versions 2025.12.5 and 2026.2.3.

References

Community reviews

Loading reviews…