Skip to main content

Ash Authentication CVE-2026-91039

| EUVDEUVD-2026-81687 CRITICAL
Authentication Bypass by Spoofing (CWE-290)
2026-09-17 EEF
9.1
CVSS 4.0 · Vendor: EEF
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Operate one dynamic_oidc IdP connection
  2. Delivery
    Learn/choose victim's sub from another connection
  3. Exploit
    Mint OIDC token with colliding sub
  4. Execution
    Sign-in matches (uid, strategy) row before email check
  5. Impact
    Session issued as victim account

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Anti-spoofing controls
MITRE ATT&CK

1 technique across 1 tactic: Defense Evasion

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 application to use the dynamic_oidc strategy of ash_authentication (versions 5.0.0-rc.10 through 5.0.0-rc.13) configured with more than one identity-provider connection, and the attacker must be able to operate/control at least one of those connections and mint tokens with a chosen 'sub' claim. The bug is that per-connection namespacing ('<name>/<connection_id>') never persists because __connection_id__ is only set on the ephemeral request struct while IdentityChange.change/3 re-reads the compile-time DSL (yielding the nil defstruct default), so all connections share one identity namespace keyed on (uid, strategy). Limiting factors: single-connection dynamic_oidc deployments and non-dynamic_oidc OAuth2 strategies are not exploitable via this path; the attacker needs a trusted operator position on one federated connection and knowledge (or control) of a target subject value; because sub is unique only within an issuer (OIDC Core 5.7) and neither strategy checks 'iss', two connections numbering subjects independently collide. Not remote-unauthenticated against a default single-provider setup.

Impact

This is a genuine authentication-bypass/account-takeover flaw (CWE-290) but its real-world reach is tightly gated. The vendor CVSS 4.0 base is 9.1 (AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N), and the AT:P (attack requirement 'present') is the single most important signal: exploitation is not universally possible against every install - it requires the dynamic_oidc strategy configured with more than one identity-provider connection, and an attacker who legitimately operates one of those connections. There is no EPSS score, no CISA KEV listing, and no public POC identified, so this reflects a disclosed-and-patched design bug rather than anything under active exploitation. The confidentiality/integrity impact is real (full sign-in as another user, VC:H/VI:H) but availability is unaffected (VA:N). Net: prioritize patching for the specific population running dynamic_oidc with multiple OIDC connections, but this is not a spray-and-pray internet-wide threat. Note a nuance the raw CVSS obscures: PR:N is technically correct because the attacker never authenticates to the victim application, yet in practice the attacker must be a trusted operator of one federated IdP connection - a meaningful precondition captured only by AT:P, so the 9.1 overstates risk for typical single-connection deployments.

Exploit ScenarioDerived

An organization runs an Ash-based app using the dynamic_oidc strategy with two or more IdP connections (e.g. one per tenant/customer), where each connection is meant to live in its own identity namespace. An attacker who controls one connection mints an OIDC token whose 'sub' matches the subject value a victim received from a different connection; because the persisted UserIdentity strategy field collapses to the bare strategy name (connection_id is lost), the identity-match branch keys only on (uid, strategy) and signs the attacker in as the victim's local account. No public exploit code is known, but the mechanics are fully described in the advisory and are straightforward for anyone operating a connection.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 17, 2026

Authentication bypass in the Elixir library ash_authentication lets an attacker who operates one federated identity-provider connection of a dynamic_oidc strategy be signed in as a local user whose identity row was created through a different IdP connection, because the intended per-connection namespacing of the strategy field never persists. Affected are versions 5.0.0-rc.10 through 5.0.0-rc.13 (fixed in 5.0.0-rc.14); the assessed vector is CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N, so the flaw is network-reachable and unauthenticated in the token-presentation sense, but real-world exploitation is tightly gated: the deployment must use dynamic_oidc with more than one identity-provider connection, the attacker must control (or have a trusted operator position on) one of those connections, and must be able to mint tokens with a chosen sub claim that collides with a target subject. No public exploit code was identified at time of analysis, and this CVE is not listed in CISA KEV; patch commits are already public, so the exposure window for unpatched, multi-connection deployments is the operational concern.

RemediationAI

Vendor-released patch: upgrade to ash_authentication 5.0.0-rc.14, which contains the fix; the relevant upstream commits are 73ad16e452670bbf843550a13361bd41e72ad964 (patch) and 64530644f9b37ebb76ca14aeb83a77597a0034b7 (which documents the new trust_email_verified? and on_untrusted_email_match DSL options), and the advisory is at https://github.com/team-alembic/ash_authentication/security/advisories/GHSA-73j9-m294-fvv9. Because the bypass only materialises when one process owns several federated connections, a workable interim control is to run dynamic_oidc with a single identity-provider connection, or to remove the dynamic_oidc strategy entirely, at the cost of losing multi-tenant federated sign-in. If multiple connections must remain, note that this is genuinely hard to work around without the patch: the collision stems from sub being unique only per issuer while iss is not checked, so hardening requires minting sub values that are globally unique across every connection (for example by prefixing subjects at the provider) - an operational change that most external IdPs will not permit. The patched DSL also lets you set trust_email_verified? to false so that sign-ins with unknown iss/sub are never attached to a pre-existing local account by email, and to set on_untrusted_email_match to :reject (refuse the sign-in, the safe default) or :confirm (send a confirmation to the existing account's email and link only after ownership is proven; this requires a confirmation add-on and introduces a linking-phishing risk if the confirmation does not clearly state which provider is being linked). Enabling either option on an older release is not possible, so treat the upgrade to 5.0.0-rc.14 as the primary action. Additionally, requiring identity_resource to be configured (rather than false) is part of the fixed guidance, since matching users purely by email or other provider claims is unsafe.

Affected VersionsENISA

ash_authentication 5.0.0-rc.10 <5.0.0-rc.14
ash_authentication 64530644f9b37ebb76ca14aeb83a77597a0034b7 <73ad16e452670bbf843550a13361bd41e72ad964

Affected Packages

euvd ash_authentication fix: 5.0.0-rc.14

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

ash_authentication is an Elixir authentication library built on the Ash framework, where strategies are declared in a compile-time DSL and runtime structs are derived per request. dynamic_oidc is meant to isolate each identity-provider connection into its own identity namespace by writing every UserIdentity row's strategy as "<name>/<connection_id>". The namespacing is broken: __connection_id__ is populated only on the ephemeral runtime struct built per request in dynamic_oidc/plug.ex, while DynamicOidc.IdentityChange.change/3 re-fetches the strategy from the compile-time DSL through Info.strategy_for_action, returning the persisted struct whose __connection_id__ is its defstruct default of nil. As a result, OAuth2.identity_strategy_name/1 falls back to the bare strategy name for both the identity write and the reads in oauth2/user_resolver.ex and oauth2/sign_in_preparation.ex. Since the identity resource's unique key is (uid, strategy), exactly one row exists per subject across all connections, and the identity-match branch runs before any email check. Neither strategy handles the iss claim, and OpenID Connect Core section 5.7 makes sub unique only within an issuer, so two connections that number subjects independently share a single subject space. This is CWE-290 (Authentication Bypass by Spoofing): an attacker-controlled issuer can present a sub that resolves to an identity row belonging to a different, trusted connection. The upstream fix also adds trust_email_verified? and on_untrusted_email_match DSL options to stop unsafe email-based account attachment.

Know when Ash Authentication 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

Vendor (EEF) PRIMARY 9.1 CRITICAL
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
vuln.today AI 7.4 HIGH

Network-reachable OIDC flow (AV:N); AC:H because it needs a multi-connection dynamic_oidc config plus a controllable/known subject collision; PR:N since the attacker never authenticates to the victim app; full account takeover gives C:H/I:H, A:N.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (EEF).

CVSS VectorVendor: EEF

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

Authentication Bypass by Spoofing vulnerability in team-alembic ash_authentication allows an attacker who operates one identity-provider connection of a dynamic_oidc strategy to be signed in as a local user established through a different connection.

The strategy is meant to keep each connection in its own identity namespace by writing every UserIdentity row's strategy field as "<name>/<connection_id>", but that namespacing never takes effect. __connection_id__ is populated only on the ephemeral runtime struct built per request in dynamic_oidc/plug.ex, and DynamicOidc.IdentityChange.change/3 re-fetches the strategy from the compile-time DSL through Info.strategy_for_action, yielding the persisted struct whose __connection_id__ is its defstruct default of nil. OAuth2.identity_strategy_name/1 therefore falls back to the bare strategy name for both the identity write and the reads in oauth2/user_resolver.ex and oauth2/sign_in_preparation.ex. Since the identity resource's unique key is (uid, strategy), one row exists per sub across every connection, and the identity-match branch runs before any email check. Neither strategy handles iss, so nothing else distinguishes the issuers: OpenID Connect Core section 5.7 makes sub unique only within an issuer, so two connections numbering subjects independently share one subject space.

This issue affects ash_authentication: from 5.0.0-rc.10 before 5.0.0-rc.14.

Technical POC Analysis

CWE-290 Authentication Bypass by Spoofing (CWE-287 also listed).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

A critical authentication-bypass flaw in the Elixir library ash_authentication (release-candidate versions 5.0.0-rc.10 through 5.0.0-rc.13) could let an attacker who controls one federated identity-provider connection be signed in as a local user that was created through a different connection, effectively taking over that user's account and everything it can reach. Exposure is limited to deployments that run the dynamic_oidc strategy with more than one identity-provider connection configured, but for those applications the flaw sits directly in the login path and is network-reachable and unauthenticated per the assessed CVSS vector. Leadership should care because a single compromised federated connection could yield impersonation of legitimate internal or customer identities, with no public exploit identified at time of analysis but a low-cost fix already available.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 66% exploitable
Prevalence
Low
niche Elixir/Ash authentication library, small deployment footprint
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2026-49757 CRITICAL POC
9.2 Jun 15

Account takeover in team-alembic AshAuthentication (0.1.0 to <4.14.0 and 5.0.0-rc.0 to <5.0.0-rc.10) lets an unauthentic

CVE-2025-25202 MEDIUM POC
6.3 Feb 11

Ash Authentication is an authentication framework for Elixir applications. Rated medium severity (CVSS 6.3), this vulner

CVE-2026-86533 CRITICAL
9.1 Sep 17

Revoked sessions continue to be treated as fully authenticated on affected AshAuthentication and AshAuthentication Phoen

CVE-2026-85500 CRITICAL
9.1 Sep 17

Unconfirmed accounts can obtain an authenticated session in the AshAuthentication Elixir library, defeating the mandator

CVE-2026-88952 CRITICAL
9.1 Sep 17

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 unauth

CVE-2026-82761 CRITICAL
9.1 Sep 17

Reusing a leaked single-use magic-link token is possible in the Elixir library ash_authentication because its validity c

CVE-2026-82760 HIGH
8.2 Sep 17

Denial of service in the AshAuthentication API-key sign-in strategy lets an unauthenticated, remote attacker exhaust ser

CVE-2026-82685 HIGH
7.6 Sep 17

An authenticated account-takeover primitive exists in the Elixir library AshAuthentication (ash_authentication) versions

CVE-2026-65633 HIGH
7.6 Aug 25

JWT token replay in AshAuthentication exposes any application using the stateless bearer-token path to full account take

CVE-2026-119215 HIGH
7.6 Nov 03

An authenticated account holder can bind a TOTP authenticator secret they control onto another user's account in AshAuth

CVE-2026-80218 HIGH
7.6 Sep 17

Authentication bypass in the AshAuthentication library for Elixir/Ash lets an authenticated attacker who holds a valid s

CVE-2026-81632 HIGH
7.2 Sep 17

Password sign-in in AshAuthentication Phoenix (ash_authentication_phoenix 1.7.0 to <2.17.4 and 3.0.0-rc.0 to <3.0.0-rc.1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy