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.
CVE-2026-40165
This high-severity CVE scores 8.7 under NVD CVSS v3. EPSS exploit probability: 0.4%, top 69% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- High severity, but no confirmed exploitation yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 8.7
- EG Score
- 8.7(medium)
- EPSS
- 31.4%
- KEV
- Not listed
Published
May 21, 2026
Last Modified
May 21, 2026
Advisory Details (2)
Auto-updated Jun 3, 2026SAML NameID XML Comment Injection Enables Authentication Bypass via Identifier Truncation · Advisory · goauthentik/authentik · GitHub
https://github.com/goauthentik/authentik/security/advisories/GHSA-9wj8-xv4r-qwrpcommit 47dec5c6b7fb (goauthentik/authentik)
Fix landed in goauthentik/authentik commit 47dec5c6b7fb — awaiting tagged release
https://github.com/goauthentik/authentik/commit/47dec5c6b7fb4a62bfad2ae8bddf002bde7ba774Weakness Classification(3)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 9× in last 7d / 53× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 116 total refreshes for this CVE.
- 2026-07-11 08:27 UTCEPSS rescore
- 2026-07-09 19:10 UTCEPSS rescore
- 2026-07-08 15:15 UTCEPSS rescore
- 2026-07-07 13:46 UTCEPSS rescore
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-05 02:30 UTCEPSS rescore
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-01 15:06 UTCEPSS rescore
- 2026-06-30 23:22 UTCEPSS rescore
- 2026-06-29 20:22 UTCEG score recompute
- 2026-06-29 14:06 UTCEPSS rescore
- 2026-06-28 14:07 UTCEPSS rescore
- 2026-06-28 07:55 UTCEG score recompute
- 2026-06-28 04:56 UTCEPSS rescore
- 2026-06-27 20:06 UTCEG score recompute
- 2026-06-27 07:25 UTCEG score recompute
- 2026-06-27 03:08 UTCEPSS rescore
- 2026-06-26 19:29 UTCEG score recompute
- 2026-06-26 03:43 UTCEG score recompute
- 2026-06-25 14:38 UTCEG score recompute
- 2026-06-25 13:49 UTCEPSS rescore
- 2026-06-25 13:49 UTCEPSS rescore
Show 75 moreShow fewer
- 2026-06-24 14:05 UTCEPSS rescore
- 2026-06-23 21:33 UTCEPSS rescore
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 01:59 UTCEPSS rescore
- 2026-06-19 19:25 UTCEPSS rescore
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-17 22:40 UTCEG score recompute
- 2026-06-17 17:53 UTCEPSS rescore
- 2026-06-17 11:18 UTCEG score recompute
- 2026-06-16 20:04 UTCEG score recompute
- 2026-06-16 17:52 UTCEPSS rescore
- 2026-06-16 02:46 UTCEG score recompute
- 2026-06-15 17:49 UTCEPSS rescore
- 2026-06-15 15:45 UTCEG score recompute
- 2026-06-14 23:10 UTCEG score recompute
- 2026-06-14 12:12 UTCEG score recompute
- 2026-06-14 01:10 UTCEG score recompute
- 2026-06-13 23:00 UTCEPSS rescore
- 2026-06-13 14:09 UTCEG score recompute
- 2026-06-13 01:42 UTCEG score recompute
- 2026-06-12 23:12 UTCEPSS rescore
- 2026-06-12 23:12 UTCEPSS rescore
- 2026-06-12 14:44 UTCEG score recompute
- 2026-06-12 03:43 UTCEG score recompute
- 2026-06-11 16:45 UTCEG score recompute
- 2026-06-11 14:00 UTCEPSS rescore
- 2026-06-11 04:29 UTCEG score recompute
- 2026-06-10 22:18 UTCEPSS rescore
- 2026-06-10 17:31 UTCEG score recompute
- 2026-06-10 13:22 UTCEPSS rescore
- 2026-06-10 13:22 UTCEPSS rescore
- 2026-06-10 06:33 UTCEG score recompute
- 2026-06-09 19:35 UTCEG score recompute
- 2026-06-09 08:37 UTCEG score recompute
- 2026-06-08 21:39 UTCEG score recompute
- 2026-06-08 14:17 UTCEPSS rescore
- 2026-06-08 14:17 UTCEPSS rescore
- 2026-06-08 10:17 UTCEG score recompute
- 2026-06-07 23:19 UTCEG score recompute
- 2026-06-07 15:25 UTCEPSS rescore
- 2026-06-07 15:25 UTCEPSS rescore
- 2026-06-07 12:21 UTCEG score recompute
- 2026-06-07 01:23 UTCEG score recompute
- 2026-06-06 14:24 UTCEG score recompute
- 2026-06-06 13:47 UTCEPSS rescore
- 2026-06-06 13:47 UTCEPSS rescore
- 2026-06-06 03:26 UTCEG score recompute
- 2026-06-05 22:47 UTCEPSS rescore
- 2026-06-05 22:47 UTCEPSS rescore
- 2026-06-05 16:27 UTCEG score recompute
- 2026-06-05 06:10 UTCEPSS rescore
- 2026-06-05 06:10 UTCEPSS rescore
- 2026-06-05 05:29 UTCEG score recompute
- 2026-06-04 18:31 UTCEG score recompute
- 2026-06-04 13:12 UTCEPSS rescore
- 2026-06-04 13:12 UTCEPSS rescore
- 2026-06-04 07:33 UTCEG score recompute
- 2026-06-03 20:35 UTCEG score recompute
- 2026-06-03 09:37 UTCEG score recompute
- 2026-06-02 22:39 UTCEG score recompute
- 2026-06-02 20:13 UTCEPSS rescore
- 2026-06-02 11:41 UTCEG score recompute
- 2026-06-02 00:43 UTCEG score recompute
- 2026-06-01 13:52 UTCEPSS rescore
- 2026-06-01 13:52 UTCEPSS rescore
- 2026-06-01 13:51 UTCEPSS rescore
- 2026-06-01 13:45 UTCEG score recompute
- 2026-06-01 02:46 UTCEG score recompute
- 2026-05-31 22:30 UTCEPSS rescore
- 2026-05-31 22:30 UTCEPSS rescore
- 2026-05-31 00:16 UTCEPSS rescore
Related CVEs(same CWE)
Frequently asked(5)
What is CVE-2026-40165?
When was CVE-2026-40165 disclosed?
Is CVE-2026-40165 actively exploited?
What is the CVSS score of CVE-2026-40165?
How do I remediate CVE-2026-40165?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-40165
Is Your Infrastructure Affected by CVE-2026-40165?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.