Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessControl OAuth2 identity with chosen verified email
-
DeliveryInitiate OAuth2 sign-in to target app
-
ExploitAccount matched on non-email upsert_identity attribute
-
ExecutionVacuous email_trusted? gate links attacker identity
-
PersistSession issued as victim, victim email rewritten
-
ImpactFull account takeover and recovery hijack
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication mechanism validation
MITRE ATT&CK
2 techniques across 2 tactics: Defense Evasion, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the target application to use AshAuthentication's OAuth2 (or Auth0/Apple) strategy configured with a register-action upsert_identity that matches existing accounts on an attribute OTHER than email, OR to use the registration_enabled? false sign-in path where accounts are matched by the sign-in action's read filter. In those configurations the email_trusted?/2 gate is vacuous. The attacker must control an OAuth2 provider identity whose email_verified claim is true (their own verified email suffices). Applications that match strictly by the provider's iss/sub via a dedicated identity_resource, or that only match by email with a trusted provider, are not exploitable - which is exactly what the fix enforces via the new identity_resource requirement and trust_email_verified?/on_untrusted_email_match settings. |
| Impact | This is a genuinely high-severity account-takeover flaw, not a CVSS-inflated non-issue, but its real-world reach is bounded by a configuration precondition captured by the CVSS 4.0 AT:P (attack-requirement present) metric. The vendor CVSS 4.0 vector (9.1, AV:N/AC:L/PR:N/UI:N/VC:H/VI:H/VA:N) reflects unauthenticated network exploitation with high confidentiality and integrity impact and no availability impact - consistent with an attacker using their own OAuth2 provider account to be issued a session as a victim. No EPSS score, no CISA KEV listing, and no public exploit code are provided in the intelligence, so exploitation likelihood signals are absent; per policy this is treated as no public exploit identified at time of analysis, and the flaw should be judged on impact and reachability rather than on evidence of active abuse. The key nuance defenders must weigh: this only bites applications whose AshAuthentication OAuth2 strategy matches existing accounts by an upsert_identity attribute OTHER than email (or uses the registration_enabled? false sign-in path), so it is high-impact-but-conditionally-reachable rather than universally exploitable. PR:N is defensible because the attacker authenticates only to their own identity provider, never to the victim account. |
| Exploit ScenarioDerived | An attacker registers or controls an OAuth2/OIDC identity (e.g. Auth0, Apple, or a self-controlled provider) with a verified email of their choosing, then signs into the target app whose AshAuthentication OAuth2 strategy matches accounts on a non-email attribute. Because the email_trusted?/2 gate only checks the provider's email_verified boolean and never compares the provider email to the matched account's email, the attacker's identity is linked to a victim's account and a session is issued as that victim. The upsert also rewrites the victim account's email to the attacker's address, so subsequent password-reset/recovery flows are delivered to the attacker; no public exploit code is referenced in the intelligence. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 17, 2026
Account takeover in AshAuthentication (Elixir/Ash) 4.14.0 through 4.14.x and 5.0.0-rc.10 through 5.0.0-rc.13 lets unauthenticated remote attackers obtain a session for another user's account by linking their own OAuth2 provider identity to an account that was matched on an attribute other than email, and the same upsert rewrites the victim's email to the attacker's address so subsequent account recovery flows reach the attacker. Exploitation is conditional: the application must configure the OAuth2/Auth0/Apple strategy with a register-action upsert_identity that matches existing accounts on a non-email attribute, or use the registration_enabled? false sign-in path where accounts are matched by the sign-in action's read filter, and the attacker only needs control of a provider identity whose email_verified claim is true. No public exploit code has been identified at time of analysis and the issue is not confirmed as actively exploited (CISA KEV); vendor patches are available in 4.15.0 and 5.0.0-rc.14.
RemediationAI
Upgrade ash_authentication to the fixed releases: 4.15.0 for the 4.x line, or 5.0.0-rc.14 for the 5.0 pre-release line (vendor-released patches; see the advisory at https://github.com/team-alembic/ash_authentication/security/advisories/GHSA-wc6x-276q-jrf9 and the fix commits https://github.com/team-alembic/ash_authentication/commit/738bf9f32f2aa0d1bb92ce9ca5c2476cb5710459 and https://github.com/team-alembic/ash_authentication/commit/2bd630eef8b7c8ae1e90e8fd43ba12fbc7e256ba). If an immediate upgrade is not possible, the actionable compensating control is to change the OAuth2/Auth0/Apple strategy configuration so accounts are never matched by email or by another non-identity attribute: configure the required identity_resource to persist the provider's iss/sub claims and use those as the sole upsert_identity, which removes the account-match ambiguity the vacuous email_trusted?/2 gate relies on; the trade-off is that existing accounts whose provider identity was previously linked only by email may need re-linking. Alternatively, set trust_email_verified? to false so an as-yet-unknown iss/sub is never matched to a pre-existing account by email, and keep on_untrusted_email_match at its :reject default to refuse such sign-ins outright; choosing :confirm instead requires a confirmation add-on and sends a confirmation to the existing account's email, but the confirmation email must clearly name the provider being linked, because confirming binds whichever provider identity initiated the flow and a user can otherwise be tricked into linking an attacker-controlled provider account. Because the vulnerable upsert also overwrites the matched account's email, administrators should audit accounts in affected deployments for unexpected email changes and invalidate sessions or force credential recovery for any account whose email was altered, since recovery messages sent during the exposure window would have gone to the attacker.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
AshAuthentication is the authentication extension for the Ash framework in Elixir, and this flaw is a CWE-287 improper authentication failure in its OAuth2 strategy layer. AshAuthentication.Strategy.OAuth2.UserResolver.resolve/3 first matches an existing local account using the register action's upsert_identity keys, then decides whether to attach the incoming provider identity to that account by calling email_trusted?/2. That check inspects only the provider's email_verified boolean and never compares the provider's asserted email value against the email on the matched account; it silently assumes the account was matched by its email field. When any other upsert_identity (for example provider iss/sub persisted in a separate identity resource, a username, or another attribute) selected the account, the gate becomes vacuous and an attacker supplying their own provider identity with a verified email is linked to, and issued a session for, a victim account. The identical unguarded gate exists in OAuth2.SignInPreparation on the registration_enabled? false path, where the account is instead selected by the sign-in action's read filter, and the accompanying upsert also overwrites the matched account's email with the attacker's address, redirecting future password/account recovery to the attacker. Applications that match strictly by the provider's iss/sub through a dedicated identity_resource, or that match by email only with a provider whose email assertion is trusted, are not exposed. The vendor fix enforces persisting iss/sub via identity_resource (now required) and introduces trust_email_verified? and on_untrusted_email_match (:reject default, or :confirm requiring a confirmation add-on) controls, matching the root cause described in the commit diffs for the Apple, Auth0, and other OAuth2 strategies.
Know when Oauth2 gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Remote and unauthenticated to the victim account (attacker authenticates only to their own IdP, so PR:N); config precondition is deployment-side, not attacker-side, so AC:L; full account access (C:H) and email/identity rewrite (I:H), no availability impact.
Primary rating from Vendor (EEF).
CVSS VectorVendor: EEF
DescriptionCVE.org
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.
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.
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.
Technical POC Analysis
CWE-287 Improper Authentication.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
AshAuthentication versions 4.14.0 through 4.14.x and 5.0.0-rc.10 through 5.0.0-rc.13 contain a critical account takeover flaw that can let attackers obtain a session for another user's account and rewrite the victim's email under certain OAuth2/Auth0/Apple or registration configurations. Organizations using these versions in customer-facing or workforce authentication should treat this as a high-priority identity risk, because compromise could lead to unauthorized data access, fraudulent account recovery, and erosion of trust. No public exploit identified at time of analysis, but vendor patches are available in 4.15.0 and later.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
All versions of @fastify/oauth2 used a statically generated state parameter at startup time and were used across all req
Bearer token leak in the OAuth2 Ruby gem (ruby-oauth/oauth2) versions 0.4.0 through 2.0.
An OAuth2 authorization flaw in traQ prior to 3.28.3 lets a malicious OAuth client escalate privileges by sending a sile
OAuth2 client secret disclosure in the RabbitMQ Management UI affects versions 4.2.0 through 4.2.8 and 4.3.0 through 4.3
Unauthenticated remote attackers can steal OAuth2 authorization codes from smart-sso deployments running version 2.1.1 o
Expired OAuth2 JWT access tokens are accepted indefinitely by RabbitMQ 4.2.0 through 4.2.8 and 4.3.0 through 4.3.2 when
An issue was discovered in ownCloud owncloud/oauth2 before 0.6.1, when Allow Subdomains is enabled. Rated medium severit
Denial of service via atom exhaustion in RabbitMQ Server when the rabbitmq_auth_backend_oauth2 plugin is enabled and con
EUVD-2026-81619
NVD
CVE.org
EPSS
GitHub
Exploit-DB