CVE Explorer
CVE-2026-40165
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
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 3 assertions
{"cweId":"CWE-287","description":"CWE-287: Improper Authentication","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:e7fbe9d045507fba482bf4f070c568b54555ba95c3193280d241909617ff163c · sha256:1d97649114b11251… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-91","description":"CWE-91: XML Injection (aka Blind XPath Injection)","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:e7fbe9d045507fba482bf4f070c568b54555ba95c3193280d241909617ff163c · sha256:1d97649114b11251… · /containers/cna/problemTypes/1/descriptions/0
{"cweId":"CWE-436","description":"CWE-436: Interpretation Conflict","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:e7fbe9d045507fba482bf4f070c568b54555ba95c3193280d241909617ff163c · sha256:1d97649114b11251… · /containers/cna/problemTypes/2/descriptions/0
Affected products and versions
1 source assertion{"product":"authentik","vendor":"goauthentik","versions":[{"status":"affected","version":"< 2025.12.5"},{"status":"affected","version":">= 2026.2.0-rc1, < 2026.2.3"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:e7fbe9d045507fba482bf4f070c568b54555ba95c3193280d241909617ff163c · sha256:1d97649114b11251… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":8.7,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:e7fbe9d045507fba482bf4f070c568b54555ba95c3193280d241909617ff163c · sha256:1d97649114b11251… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
3 source assertions{"cweId":"CWE-287","description":"CWE-287: Improper Authentication","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:e7fbe9d045507fba482bf4f070c568b54555ba95c3193280d241909617ff163c · sha256:1d97649114b11251… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-91","description":"CWE-91: XML Injection (aka Blind XPath Injection)","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:e7fbe9d045507fba482bf4f070c568b54555ba95c3193280d241909617ff163c · sha256:1d97649114b11251… · /containers/cna/problemTypes/1/descriptions/0
{"cweId":"CWE-436","description":"CWE-436: Interpretation Conflict","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:e7fbe9d045507fba482bf4f070c568b54555ba95c3193280d241909617ff163c · sha256:1d97649114b11251… · /containers/cna/problemTypes/2/descriptions/0
Source references
3 source assertions{"name":"https://github.com/goauthentik/authentik/commit/47dec5c6b7fb4a62bfad2ae8bddf002bde7ba774","tags":["x_refsource_MISC"],"url":"https://github.com/goauthentik/authentik/commit/47dec5c6b7fb4a62bfad2ae8bddf002bde7ba774"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:e7fbe9d045507fba482bf4f070c568b54555ba95c3193280d241909617ff163c · sha256:1d97649114b11251… · /containers/cna/references/1
{"name":"https://github.com/goauthentik/authentik/releases/tag/version%2F2025.12.5","tags":["x_refsource_MISC"],"url":"https://github.com/goauthentik/authentik/releases/tag/version%2F2025.12.5"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:e7fbe9d045507fba482bf4f070c568b54555ba95c3193280d241909617ff163c · sha256:1d97649114b11251… · /containers/cna/references/2
{"name":"https://github.com/goauthentik/authentik/security/advisories/GHSA-9wj8-xv4r-qwrp","tags":["x_refsource_CONFIRM"],"url":"https://github.com/goauthentik/authentik/security/advisories/GHSA-9wj8-xv4r-qwrp"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:e7fbe9d045507fba482bf4f070c568b54555ba95c3193280d241909617ff163c · sha256:1d97649114b11251… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.