{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-49757","assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","state":"PUBLISHED","assignerShortName":"EEF","dateReserved":"2026-06-01T13:45:22.449Z","datePublished":"2026-06-15T10:07:17.781Z","dateUpdated":"2026-11-20T08:46:05.186Z"},"containers":{"cna":{"affected":[{"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:team-alembic:ash_authentication:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.AshAuthentication.Strategy.OAuth2.IdentityChange'","'Elixir.AshAuthentication.Strategy.OAuth2.SignInPreparation'","'Elixir.AshAuthentication.OAuth2Authentication.IdentityChange'","'Elixir.AshAuthentication.OAuth2Authentication.SignInPreparation'"],"packageName":"ash_authentication","packageURL":"pkg:hex/ash_authentication","product":"ash_authentication","programFiles":["lib/ash_authentication/strategies/oauth2/identity_change.ex","lib/ash_authentication/strategies/oauth2/sign_in_preparation.ex","lib/ash_authentication/oauth2_authentication/identity_change.ex","lib/ash_authentication/oauth2_authentication/sign_in_preparation.ex"],"programRoutines":[{"name":"'Elixir.AshAuthentication.Strategy.OAuth2.IdentityChange':change/3"},{"name":"'Elixir.AshAuthentication.Strategy.OAuth2.SignInPreparation':prepare/3"},{"name":"'Elixir.AshAuthentication.OAuth2Authentication.IdentityChange':change/3"},{"name":"'Elixir.AshAuthentication.OAuth2Authentication.SignInPreparation':prepare/3"}],"repo":"https://github.com/team-alembic/ash_authentication","vendor":"team-alembic","versions":[{"lessThan":"4.14.0","status":"affected","version":"0.6.0","versionType":"semver"},{"lessThan":"5.0.0-rc.10","status":"affected","version":"5.0.0-rc.0","versionType":"semver"}]},{"collectionURL":"https://github.com","cpes":["cpe:2.3:a:team-alembic:ash_authentication:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.AshAuthentication.Strategy.OAuth2.IdentityChange'","'Elixir.AshAuthentication.Strategy.OAuth2.SignInPreparation'","'Elixir.AshAuthentication.OAuth2Authentication.IdentityChange'","'Elixir.AshAuthentication.OAuth2Authentication.SignInPreparation'"],"packageName":"team-alembic/ash_authentication","packageURL":"pkg:github/team-alembic/ash_authentication","product":"ash_authentication","programFiles":["lib/ash_authentication/strategies/oauth2/identity_change.ex","lib/ash_authentication/strategies/oauth2/sign_in_preparation.ex","lib/ash_authentication/oauth2_authentication/identity_change.ex","lib/ash_authentication/oauth2_authentication/sign_in_preparation.ex"],"programRoutines":[{"name":"'Elixir.AshAuthentication.Strategy.OAuth2.IdentityChange':change/3"},{"name":"'Elixir.AshAuthentication.Strategy.OAuth2.SignInPreparation':prepare/3"},{"name":"'Elixir.AshAuthentication.OAuth2Authentication.IdentityChange':change/3"},{"name":"'Elixir.AshAuthentication.OAuth2Authentication.SignInPreparation':prepare/3"}],"repo":"https://github.com/team-alembic/ash_authentication","vendor":"team-alembic","versions":[{"changes":[{"at":"64530644f9b37ebb76ca14aeb83a77597a0034b7","status":"unaffected"},{"at":"728b8d28c1b5f465fa1116ef044a815300fc733d","status":"unaffected"}],"lessThan":"*","status":"affected","version":"c5f589058e04239263f50a1430eb17ea6d5dd1a2","versionType":"git"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:team-alembic:ash_authentication:*:*:*:*:*:*:*:*","versionEndExcluding":"4.14.0","versionStartIncluding":"0.6.0","vulnerable":true},{"criteria":"cpe:2.3:a:team-alembic:ash_authentication:*:*:*:*:*:*:*:*","versionEndExcluding":"5.0.0-rc.10","versionStartIncluding":"5.0.0-rc.0","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}],"credits":[{"lang":"en","type":"finder","value":"Jarl André Hübenthal"},{"lang":"en","type":"analyst","value":"Jonatan Männchen / EEF"},{"lang":"en","type":"remediation developer","value":"James Harton"}],"datePublic":"2026-06-15T10:07:17.000Z","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Authentication Bypass by Spoofing vulnerability in team-alembic AshAuthentication allows account takeover of local users via OAuth2/OIDC sign-in.</p>\n<p>AshAuthentication's OAuth2 and OIDC family strategies matched the local user by email address (an upsert on the email field, or a user-defined sign-in filter) rather than by the OpenID Connect <code>iss</code>/<code>sub</code> claim combination. Per OpenID Connect Core §5.7, only <code>iss</code>/<code>sub</code> uniquely and stably identifies an end-user; other claims, including <code>email</code>, MUST NOT be used as unique identifiers.</p>\n<p>A provider login presenting a victim's email, including an unverified email, a reused email, or an account with <code>email_verified: false</code>, resolved to and signed in as the victim's existing local account. An unauthenticated attacker who can register an account on any accepted OAuth provider with the victim's email (or who benefits from provider-side email reuse or reclamation) obtains the victim's full local privileges.</p>\n<p>The fix resolves users by the <code>(strategy, sub)</code> identity stored in a user identity resource, and only links a new <code>sub</code> to an existing local account by email when the provider's <code>email_verified</code> claim is trusted (<code>trust_email_verified?</code>).</p>\n<p>This issue affects ash_authentication: from 0.6.0 before 4.14.0 and from 5.0.0-rc.0 before 5.0.0-rc.10.</p>"},{"base64":false,"type":"text/markdown","value":"Authentication Bypass by Spoofing vulnerability in team-alembic AshAuthentication allows account takeover of local users via OAuth2/OIDC sign-in.\n\nAshAuthentication's OAuth2 and OIDC family strategies matched the local user by email address (an upsert on the email field, or a user-defined sign-in filter) rather than by the OpenID Connect `iss`/`sub` claim combination. Per OpenID Connect Core §5.7, only `iss`/`sub` uniquely and stably identifies an end-user; other claims, including `email`, MUST NOT be used as unique identifiers.\n\nA provider login presenting a victim's email, including an unverified email, a reused email, or an account with `email_verified: false`, resolved to and signed in as the victim's existing local account. An unauthenticated attacker who can register an account on any accepted OAuth provider with the victim's email (or who benefits from provider-side email reuse or reclamation) obtains the victim's full local privileges.\n\nThe fix resolves users by the `(strategy, sub)` identity stored in a user identity resource, and only links a new `sub` to an existing local account by email when the provider's `email_verified` claim is trusted (`trust_email_verified?`).\n\nThis issue affects ash_authentication: from 0.6.0 before 4.14.0 and from 5.0.0-rc.0 before 5.0.0-rc.10."}],"value":"Authentication Bypass by Spoofing vulnerability in team-alembic AshAuthentication allows account takeover of local users via OAuth2/OIDC sign-in.\n\nAshAuthentication's OAuth2 and OIDC family strategies matched the local user by email address (an upsert on the email field, or a user-defined sign-in filter) rather than by the OpenID Connect iss/sub claim combination. Per OpenID Connect Core §5.7, only iss/sub uniquely and stably identifies an end-user; other claims, including email, MUST NOT be used as unique identifiers.\n\nA provider login presenting a victim's email, including an unverified email, a reused email, or an account with email_verified: false, resolved to and signed in as the victim's existing local account. An unauthenticated attacker who can register an account on any accepted OAuth provider with the victim's email (or who benefits from provider-side email reuse or reclamation) obtains the victim's full local privileges.\n\nThe fix resolves users by the (strategy, sub) identity stored in a user identity resource, and only links a new sub to an existing local account by email when the provider's email_verified claim is trusted (trust_email_verified?).\n\nThis issue affects ash_authentication: from 0.6.0 before 4.14.0 and from 5.0.0-rc.0 before 5.0.0-rc.10."}],"impacts":[{"capecId":"CAPEC-21","descriptions":[{"lang":"en","value":"CAPEC-21 Exploitation of Trusted Identifiers"}]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":9.2,"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:H/SC:N/SI:N/SA:N","version":"4.0","vulnAvailabilityImpact":"HIGH","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-290","description":"CWE-290 Authentication Bypass by Spoofing","lang":"en","type":"CWE"}]}],"providerMetadata":{"orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","shortName":"EEF","dateUpdated":"2026-11-20T08:46:05.186Z"},"references":[{"name":"OAuth2/OIDC account takeover via email-based user matching","tags":["vendor-advisory","related"],"url":"https://github.com/team-alembic/ash_authentication/security/advisories/GHSA-777c-2fxx-qr28"},{"name":"EEF CNA record for CVE-2026-49757","tags":["related"],"url":"https://cna.erlef.org/cves/CVE-2026-49757.html"},{"name":"OSV record EEF-CVE-2026-49757","tags":["related"],"url":"https://osv.dev/vulnerability/EEF-CVE-2026-49757"},{"name":"Introducing commit c5f5890 in team-alembic/ash_authentication","tags":["related"],"url":"https://github.com/team-alembic/ash_authentication/commit/c5f589058e04239263f50a1430eb17ea6d5dd1a2"},{"name":"Fix commit 6453064 in team-alembic/ash_authentication","tags":["patch"],"url":"https://github.com/team-alembic/ash_authentication/commit/64530644f9b37ebb76ca14aeb83a77597a0034b7"},{"name":"Fix commit 728b8d2 in team-alembic/ash_authentication","tags":["patch"],"url":"https://github.com/team-alembic/ash_authentication/commit/728b8d28c1b5f465fa1116ef044a815300fc733d"}],"source":{"discovery":"EXTERNAL"},"title":"OAuth2/OIDC account takeover in AshAuthentication via email-based user matching"},"adp":[{"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-06-15T12:35:13.009558Z","id":"CVE-2026-49757","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2026-06-15T12:35:41.459Z"}}]}}