{"containers":{"cna":{"affected":[{"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:team-alembic:ash_authentication:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.AshAuthentication.Strategy.OAuth2.UserResolver'","'Elixir.AshAuthentication.Strategy.OAuth2.SignInPreparation'","'Elixir.AshAuthentication.Strategy.OAuth2.IdentityChange'","'Elixir.AshAuthentication.Strategy.DynamicOidc.IdentityChange'"],"packageName":"ash_authentication","packageURL":"pkg:hex/ash_authentication","product":"ash_authentication","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","vendor":"team-alembic","versions":[{"lessThan":"4.15.0","status":"affected","version":"4.14.0","versionType":"semver"},{"lessThan":"5.0.0-rc.14","status":"affected","version":"5.0.0-rc.10","versionType":"semver"}]},{"collectionURL":"https://github.com","cpes":["cpe:2.3:a:team-alembic:ash_authentication:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.AshAuthentication.Strategy.OAuth2.UserResolver'","'Elixir.AshAuthentication.Strategy.OAuth2.SignInPreparation'","'Elixir.AshAuthentication.Strategy.OAuth2.IdentityChange'","'Elixir.AshAuthentication.Strategy.DynamicOidc.IdentityChange'"],"packageName":"team-alembic/ash_authentication","packageURL":"pkg:github/team-alembic/ash_authentication","product":"ash_authentication","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","vendor":"team-alembic","versions":[{"changes":[{"at":"738bf9f32f2aa0d1bb92ce9ca5c2476cb5710459","status":"unaffected"},{"at":"2bd630eef8b7c8ae1e90e8fd43ba12fbc7e256ba","status":"unaffected"}],"lessThan":"*","status":"affected","version":"64530644f9b37ebb76ca14aeb83a77597a0034b7","versionType":"git"},{"changes":[{"at":"738bf9f32f2aa0d1bb92ce9ca5c2476cb5710459","status":"unaffected"},{"at":"2bd630eef8b7c8ae1e90e8fd43ba12fbc7e256ba","status":"unaffected"}],"lessThan":"*","status":"affected","version":"42edcd8ebb13fafbb168f12591d7518ce0611fec","versionType":"git"}]}],"configurations":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>The strategy must have <code>trust_email_verified?</code> enabled, and the account must be matched on something other than the email: a register action whose <code>upsert_identity</code> keys are not the email attribute, or, with <code>registration_enabled? false</code>, a sign-in action whose read filter is not the email.</p>\n<p><code>trust_email_verified?</code> defaults to <code>false</code> on the base <code>oauth2</code> strategy, but the <code>apple</code>, <code>auth0</code>, <code>github</code>, <code>google</code> and <code>slack</code> strategies each set it to <code>true</code> in their own DSL.</p>"},{"base64":false,"type":"text/markdown","value":"The strategy must have `trust_email_verified?` enabled, and the account must be matched on something other than the email: a register action whose `upsert_identity` keys are not the email attribute, or, with `registration_enabled? false`, a sign-in action whose read filter is not the email.\n\n`trust_email_verified?` defaults to `false` on the base `oauth2` strategy, but the `apple`, `auth0`, `github`, `google` and `slack` strategies each set it to `true` in their own DSL."}],"value":"The strategy must have trust_email_verified? enabled, and the account must be matched on something other than the email: a register action whose upsert_identity keys are not the email attribute, or, with registration_enabled? false, a sign-in action whose read filter is not the email.\n\ntrust_email_verified? defaults to false on the base oauth2 strategy, but the apple, auth0, github, google and slack strategies each set it to true in their own DSL."}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:team-alembic:ash_authentication:*:*:*:*:*:*:*:*","versionEndExcluding":"4.15.0","versionStartIncluding":"4.14.0","vulnerable":true},{"criteria":"cpe:2.3:a:team-alembic:ash_authentication:*:*:*:*:*:*:*:*","versionEndExcluding":"5.0.0-rc.14","versionStartIncluding":"5.0.0-rc.10","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}],"credits":[{"lang":"en","type":"finder","value":"James Harton"},{"lang":"en","type":"reporter","value":"James Harton"},{"lang":"en","type":"remediation developer","value":"James Harton"},{"lang":"en","type":"coordinator","value":"Jonatan Männchen / EEF"}],"dateAssigned":"2026-09-17T00:20:23.000Z","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>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.</p>\n<p><code>AshAuthentication.Strategy.OAuth2.UserResolver.resolve/3</code> matches an existing account using the register action's <code>upsert_identity</code> keys, then gates linking the incoming provider identity to it on <code>email_trusted?/2</code>, which reads only the provider's <code>email_verified</code> 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 <code>upsert_identity</code> 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 <code>OAuth2.SignInPreparation</code> on the <code>registration_enabled? false</code> 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.</p>\n<p>This 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.</p>"},{"base64":false,"type":"text/markdown","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\n`AshAuthentication.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."}],"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."}],"impacts":[{"capecId":"CAPEC-115","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>An attacker who controls a provider account with a verified email of their own is signed in as a different local user, holding a session bearing that user's subject, with no interaction from the victim and no need to pre-register. Because the link also rewrites the matched account's email to the attacker's address, account recovery for the victim is redirected to the attacker and the compromise survives the provider identity being unlinked.</p>"},{"base64":false,"type":"text/markdown","value":"An attacker who controls a provider account with a verified email of their own is signed in as a different local user, holding a session bearing that user's subject, with no interaction from the victim and no need to pre-register. Because the link also rewrites the matched account's email to the attacker's address, account recovery for the victim is redirected to the attacker and the compromise survives the provider identity being unlinked."}],"value":"An attacker who controls a provider account with a verified email of their own is signed in as a different local user, holding a session bearing that user's subject, with no interaction from the victim and no need to pre-register. Because the link also rewrites the matched account's email to the attacker's address, account recovery for the victim is redirected to the attacker and the compromise survives the provider identity being unlinked."}]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":9.1,"baseSeverity":"CRITICAL","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","valueDensity":"NOT_DEFINED","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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-287","description":"CWE-287 Improper Authentication","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-09-17T14:15:19.506Z","orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","shortName":"EEF"},"references":[{"name":"GitHub Advisory","tags":["related","vendor-advisory"],"url":"https://github.com/team-alembic/ash_authentication/security/advisories/GHSA-wc6x-276q-jrf9"},{"name":"EEF CNA record for CVE-2026-88952","tags":["related"],"url":"https://cna.erlef.org/cves/CVE-2026-88952.html"},{"name":"OSV record EEF-CVE-2026-88952","tags":["related"],"url":"https://osv.dev/vulnerability/EEF-CVE-2026-88952"},{"name":"Introducing commit 6453064 in team-alembic/ash_authentication","tags":["related"],"url":"https://github.com/team-alembic/ash_authentication/commit/64530644f9b37ebb76ca14aeb83a77597a0034b7"},{"name":"Introducing commit 42edcd8 in team-alembic/ash_authentication","tags":["related"],"url":"https://github.com/team-alembic/ash_authentication/commit/42edcd8ebb13fafbb168f12591d7518ce0611fec"},{"name":"Fix commit 738bf9f in team-alembic/ash_authentication","tags":["patch"],"url":"https://github.com/team-alembic/ash_authentication/commit/738bf9f32f2aa0d1bb92ce9ca5c2476cb5710459"},{"name":"Fix commit 2bd630e in team-alembic/ash_authentication","tags":["patch"],"url":"https://github.com/team-alembic/ash_authentication/commit/2bd630eef8b7c8ae1e90e8fd43ba12fbc7e256ba"}],"solutions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Upgrading prevents new links but does not unpick existing ones. An account already linked through this path stays linked, and a victim's email may already have been rewritten to the attacker's address.</p>\n<p>Operators whose register action or sign-in action matched on anything other than the email should review their <code>UserIdentity</code> rows for links whose provider email does not match the linked account's email, and check affected accounts for a rewritten email address.</p>"},{"base64":false,"type":"text/markdown","value":"Upgrading prevents new links but does not unpick existing ones. An account already linked through this path stays linked, and a victim's email may already have been rewritten to the attacker's address.\n\nOperators whose register action or sign-in action matched on anything other than the email should review their `UserIdentity` rows for links whose provider email does not match the linked account's email, and check affected accounts for a rewritten email address."}],"value":"Upgrading prevents new links but does not unpick existing ones. An account already linked through this path stays linked, and a victim's email may already have been rewritten to the attacker's address.\n\nOperators whose register action or sign-in action matched on anything other than the email should review their UserIdentity rows for links whose provider email does not match the linked account's email, and check affected accounts for a rewritten email address."}],"source":{"discovery":"INTERNAL"},"title":"OAuth2 sign-in attached to an existing account without an email comparison in AshAuthentication","workarounds":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Set <code>trust_email_verified? false</code> on the affected strategy, which refuses the sign-in rather than linking it and closes both the register and the sign-in path.</p>\n<p>Alternatively, key the register action's <code>upsert_identity</code>, or the sign-in action's read filter, on the email attribute, which restores the premise the gate assumes.</p>"},{"base64":false,"type":"text/markdown","value":"Set `trust_email_verified? false` on the affected strategy, which refuses the sign-in rather than linking it and closes both the register and the sign-in path.\n\nAlternatively, key the register action's `upsert_identity`, or the sign-in action's read filter, on the email attribute, which restores the premise the gate assumes."}],"value":"Set trust_email_verified? false on the affected strategy, which refuses the sign-in rather than linking it and closes both the register and the sign-in path.\n\nAlternatively, key the register action's upsert_identity, or the sign-in action's read filter, on the email attribute, which restores the premise the gate assumes."}]}},"cveMetadata":{"assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","assignerShortName":"EEF","cveId":"CVE-2026-88952","datePublished":"2026-09-17T14:15:19.506Z","dateReserved":"2026-09-16T10:30:02.169Z","dateUpdated":"2026-09-17T14:15:19.506Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"}