{"id":"CVE-2026-88952","sourceIdentifier":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","published":"2026-09-17T15:16:56.290","lastModified":"2026-11-20T06:17:43.637","vulnStatus":"Deferred","cveTags":[],"descriptions":[{"lang":"en","value":"Improper Authentication vulnerability in team-alembic AshAuthentication allows an attacker to be signed in as another user by linking an OAuth2 identity to an account that is not theirs.\n\nAshAuthentication.Strategy.OAuth2.UserResolver.resolve/3 matches an existing account using the register action's upsert_identity keys, then gates linking the incoming provider identity to it on email_trusted?/2, which reads only the provider's email_verified boolean and never compares the provider's email value with the matched account's email. That gate assumes the account was matched by its email field, so under any other upsert_identity it is vacuous and an attacker presenting their own verified email is attached to, and issued a session for, an account matched on some other attribute. The same unguarded gate applies in OAuth2.SignInPreparation on the registration_enabled? false path, where the account is matched by the sign-in action's read filter instead. The upsert also rewrites the matched account's email to the attacker's address, so later account recovery reaches the attacker rather than the owner.\n\nThis issue affects ash_authentication: from 4.14.0 before 4.15.0 and from 5.0.0-rc.10 before 5.0.0-rc.14."}],"affected":[{"source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","affectedData":[{"vendor":"team-alembic","product":"ash_authentication","defaultStatus":"unaffected","collectionURL":"https://repo.hex.pm","packageName":"ash_authentication","cpes":["cpe:2.3:a:team-alembic:ash_authentication:*:*:*:*:*:*:*:*"],"modules":["'Elixir.AshAuthentication.Strategy.OAuth2.UserResolver'","'Elixir.AshAuthentication.Strategy.OAuth2.SignInPreparation'","'Elixir.AshAuthentication.Strategy.OAuth2.IdentityChange'","'Elixir.AshAuthentication.Strategy.DynamicOidc.IdentityChange'"],"programFiles":["lib/ash_authentication/strategies/oauth2/user_resolver.ex","lib/ash_authentication/strategies/oauth2/sign_in_preparation.ex","lib/ash_authentication/strategies/oauth2/identity_change.ex","lib/ash_authentication/strategies/dynamic_oidc/identity_change.ex"],"programRoutines":[{"name":"'Elixir.AshAuthentication.Strategy.OAuth2.UserResolver':resolve/3"},{"name":"'Elixir.AshAuthentication.Strategy.OAuth2.UserResolver':email_trusted?/2"},{"name":"'Elixir.AshAuthentication.Strategy.OAuth2.SignInPreparation':prepare/3"},{"name":"'Elixir.AshAuthentication.Strategy.OAuth2.IdentityChange':change/3"},{"name":"'Elixir.AshAuthentication.Strategy.DynamicOidc.IdentityChange':change/3"}],"repo":"https://github.com/team-alembic/ash_authentication","packageURL":"pkg:hex/ash_authentication","versions":[{"version":"4.14.0","lessThan":"4.15.0","versionType":"semver","status":"affected"},{"version":"5.0.0-rc.10","lessThan":"5.0.0-rc.14","versionType":"semver","status":"affected"}]},{"vendor":"team-alembic","product":"ash_authentication","defaultStatus":"unaffected","collectionURL":"https://github.com","packageName":"team-alembic/ash_authentication","cpes":["cpe:2.3:a:team-alembic:ash_authentication:*:*:*:*:*:*:*:*"],"modules":["'Elixir.AshAuthentication.Strategy.OAuth2.UserResolver'","'Elixir.AshAuthentication.Strategy.OAuth2.SignInPreparation'","'Elixir.AshAuthentication.Strategy.OAuth2.IdentityChange'","'Elixir.AshAuthentication.Strategy.DynamicOidc.IdentityChange'"],"programFiles":["lib/ash_authentication/strategies/oauth2/user_resolver.ex","lib/ash_authentication/strategies/oauth2/sign_in_preparation.ex","lib/ash_authentication/strategies/oauth2/identity_change.ex","lib/ash_authentication/strategies/dynamic_oidc/identity_change.ex"],"programRoutines":[{"name":"'Elixir.AshAuthentication.Strategy.OAuth2.UserResolver':resolve/3"},{"name":"'Elixir.AshAuthentication.Strategy.OAuth2.UserResolver':email_trusted?/2"},{"name":"'Elixir.AshAuthentication.Strategy.OAuth2.SignInPreparation':prepare/3"},{"name":"'Elixir.AshAuthentication.Strategy.OAuth2.IdentityChange':change/3"},{"name":"'Elixir.AshAuthentication.Strategy.DynamicOidc.IdentityChange':change/3"}],"repo":"https://github.com/team-alembic/ash_authentication","packageURL":"pkg:github/team-alembic/ash_authentication","versions":[{"version":"42edcd8ebb13fafbb168f12591d7518ce0611fec","lessThan":"2bd630eef8b7c8ae1e90e8fd43ba12fbc7e256ba","versionType":"git","status":"affected"},{"version":"64530644f9b37ebb76ca14aeb83a77597a0034b7","lessThan":"738bf9f32f2aa0d1bb92ce9ca5c2476cb5710459","versionType":"git","status":"affected"}]}]}],"metrics":{"cvssMetricV40":[{"source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","type":"Secondary","cvssData":{"version":"4.0","vectorString":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","baseScore":9.1,"baseSeverity":"CRITICAL","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","confidentialityRequirement":"NOT_DEFINED","integrityRequirement":"NOT_DEFINED","availabilityRequirement":"NOT_DEFINED","modifiedAttackVector":"NOT_DEFINED","modifiedAttackComplexity":"NOT_DEFINED","modifiedAttackRequirements":"NOT_DEFINED","modifiedPrivilegesRequired":"NOT_DEFINED","modifiedUserInteraction":"NOT_DEFINED","modifiedVulnConfidentialityImpact":"NOT_DEFINED","modifiedVulnIntegrityImpact":"NOT_DEFINED","modifiedVulnAvailabilityImpact":"NOT_DEFINED","modifiedSubConfidentialityImpact":"NOT_DEFINED","modifiedSubIntegrityImpact":"NOT_DEFINED","modifiedSubAvailabilityImpact":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED"}}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-09-17T19:32:22.090404Z","id":"CVE-2026-88952","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","type":"Secondary","description":[{"lang":"en","value":"CWE-287"}]}],"references":[{"url":"https://cna.erlef.org/cves/CVE-2026-88952.html","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"url":"https://github.com/team-alembic/ash_authentication/commit/2bd630eef8b7c8ae1e90e8fd43ba12fbc7e256ba","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"url":"https://github.com/team-alembic/ash_authentication/commit/42edcd8ebb13fafbb168f12591d7518ce0611fec","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"url":"https://github.com/team-alembic/ash_authentication/commit/64530644f9b37ebb76ca14aeb83a77597a0034b7","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"url":"https://github.com/team-alembic/ash_authentication/commit/738bf9f32f2aa0d1bb92ce9ca5c2476cb5710459","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"url":"https://github.com/team-alembic/ash_authentication/security/advisories/GHSA-wc6x-276q-jrf9","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-88952","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"}]}