EEF-CVE-2026-85500: `require_confirmed_with` is not enforced on the action and fails open on an unreadable attribute in AshAuthentication
Summary
Authentication Bypass by Primary Weakness vulnerability in team-alembic AshAuthentication allows an unconfirmed user to obtain a session, defeating a mandatory email confirmation requirement.
AshAuthentication.Strategy.Password.Actions.checkuser/2 decides whether the attribute named by requireconfirmedwith is set using a bare isnil(Map.get(user, value)). When that attribute is not selected on the loaded record Map.get/2 returns %Ash.NotLoaded{}, and when a field policy denies it for the current actor it returns %Ash.ForbiddenField{}. Neither is nil, so the rejection branch is skipped and sign-i
requireconfirmedwith is enforced in two places, and neither holds in every configuration. signinwithtoken and register are checked only inside AshAuthentication.Strategy.Password.Actions, not on the action itself, so any caller that invokes the action directly skips the check. An API layer such as AshGraphql or AshJsonApi invokes the action directly, so this applies to the default configuration. Where a check does run it compares the confirmation attribute against nil. That attribute holds %Ash.NotLoaded{} or %Ash.ForbiddenField{} when it sets selectbydefault?: false, when an API layer narrows the read's select, or when a field policy hides it from the sign-in actor. Neither struct is nil, so those configurations read every user as confirmed.
This issue affects ashauthentication: from 4.3.8 before 4.15.0 and from 5.0.0-rc.0 before 5.0.0-rc.14.
Other sources
Authentication Bypass by Primary Weakness vulnerability in team-alembic AshAuthentication allows an unconfirmed user to obtain a session, defeating a mandatory email confirmation requirement.
AshAuthentication.Strategy.Password.Actions.checkuser/2 decides whether the attribute named by requireconfirmedwith is set using a bare isnil(Map.get(user, value)). When that attribute is not selected on the loaded record Map.get/2 returns %Ash.NotLoaded{}, and when a field policy denies it for the current actor it returns %Ash.ForbiddenField{}. Neither is nil, so the rejection branch is skipped and sign-i
requireconfirmedwith is enforced in two places, and neither holds in every configuration. signinwithtoken and register are checked only inside AshAuthentication.Strategy.Password.Actions, not on the action itself, so any caller that invokes the action directly skips the check. An API layer such as AshGraphql or AshJsonApi invokes the action directly, so this applies to the default configuration. Where a check does run it compares the confirmation attribute against nil. That attribute holds %Ash.NotLoaded{} or %Ash.ForbiddenField{} when it sets selectbydefault?: false, when an API layer narrows the read's select, or when a field policy hides it from the sign-in actor. Neither struct is nil, so those configurations read every user as confirmed.
This issue affects ashauthentication: from 4.3.8 before 4.15.0 and from 5.0.0-rc.0 before 5.0.0-rc.14.
— OSV
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
erlang/ash_authenticationto a version that resolves this vulnerability.Fixed in 4.15.0 - Upgrade
Upgrade
erlang/ash_authenticationto a version that resolves this vulnerability.Fixed in 5.0.0-rc.14
Event History
Frequently Asked Questions
Who is exposed to this issue?
Applications using AshAuthentication password authentication with require_confirmed_with are exposed when an unconfirmed user can reach the relevant sign-in action. AshGraphql and AshJsonApi invoke the action directly, so the issue applies to their default configuration.
What does an attacker need to exploit it?
An attacker needs to be an unconfirmed user attempting to obtain a session through a path that invokes the sign-in action directly, or through a path where the confirmation attribute is unavailable on the loaded record. No existing privileges or user interaction are required.
How can I determine whether my deployment is affected?
Check whether require_confirmed_with is configured for password authentication and whether sign-in is exposed through AshGraphql, AshJsonApi, or another caller that directly invokes the action. Also check whether the configured confirmation attribute can be omitted from the loaded record or blocked by a field policy, which produces Ash.NotLoaded or Ash.ForbiddenField values instead of nil.