Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Primary weakness mitigation
|
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 17, 2026
Unconfirmed accounts can obtain an authenticated session in the AshAuthentication Elixir library, defeating the mandatory email-confirmation gate configured through the password strategy's require_confirmed_with option. The check in AshAuthentication.Strategy.Password.Actions.check_user/2 compares the confirmation attribute against nil with a bare is_nil(Map.get(user, field)), so Ash's %Ash.NotLoaded{} and %Ash.ForbiddenField{} sentinels - returned when the attribute is not selected on the loaded record or is hidden from the current actor by a field policy - are treated as a confirmed value; the check also exists only inside the strategy's Actions module and is not attached to the sign-in/register action itself, so callers that invoke the action directly, including API layers such as AshGraphql and AshJsonApi in the default configuration, skip it entirely. Unauthenticated per the CVSS 4.0 vector (PR:N, with AT:P indicating the target must actually have require_confirmed_with configured), CVSS 9.1, CWE-305 (Authentication Bypass by Primary Weakness); no public exploit identified at time of analysis, and vendor patches are available in 4.15.0 and 5.0.0-rc.14.
RemediationAI
Vendor-released patch: upgrade ash_authentication to 4.15.0 (for the 4.x line) or 5.0.0-rc.14 (for the 5.0.0 release-candidate line), as documented in GHSA-fc47-6pgw-wh22. The fix is implemented across commits 7d37bc6e4df6697b5813d2f373f0fdb08f813f98 (introduces the require_confirmed_with DSL option and the user_confirmed?/2 check), 17f4c25a372d1778c9cc457759e6357570d83711, and 1076639a9d40213088d110c79ba6735b8cc85b16, and additionally ensures the confirmation attribute is loaded via ensure_selected so the NotLoaded/ForbiddenField sentinel cases cannot silently pass. If an upgrade cannot be applied immediately, compensating controls are: (1) ensure the confirmation attribute is always selected and visible to the sign-in actor - set select_by_default?: true and remove or relax any field policy that hides it - which closes the sentinel-based bypass, at the cost of exposing that attribute more broadly in reads; (2) add an explicit confirmation assertion in your own action wrapper or API-layer resolver for every password sign-in and register action exposed through AshGraphql/AshJsonApi, since the check was never on the action itself, with the trade-off that the assertion must be replicated at each direct entry point and will be bypassed by any new caller you forget to cover; (3) temporarily disable password sign-in for accounts that have not been confirmed at the application/API layer (for example reject requests until an out-of-band confirmation workflow completes), which degrades usability for legitimate new users but does not require library changes. Note that if require_confirmed_with is left unset and no confirmation field is required, behavior is unchanged - the risk only materializes when the application intends to enforce confirmation.
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, an Elixir resource/domain framework. Applications configure authentication strategies - including a password strategy - in a DSL, and the option require_confirmed_with names the user attribute (typically confirmed_at) that must be set before sign-in succeeds. The root cause is CWE-305, Authentication Bypass by Primary Weakness: the security decision relies on a comparison that cannot represent the unconfirmed state under common configurations. Specifically, check_user/2 in lib/ash_authentication/strategies/password/actions.ex evaluated the attribute with is_nil(Map.get(user, value)). Ash returns the struct %Ash.NotLoaded{} for attributes that were not selected on the record - which happens when the field is declared with select_by_default?: false or when an API layer narrows the read's select list - and returns %Ash.ForbiddenField{} when a field policy denies the attribute to the acting user. Neither struct is nil, so the rejection branch was skipped and every such user was read as confirmed. Compounding this, enforcement lived in two places (sign_in_with_token and register) inside AshAuthentication.Strategy.Password.Actions rather than on the action definitions themselves, so any caller that invokes the action directly bypasses the check; AshGraphql and AshJsonApi do exactly that, making the bypass reachable in a default API-exposed deployment. The upstream fix adds a DSL option require_confirmed_with (atom or nil), preloads the attribute via Query.ensure_selected, and replaces the nil check with a user_confirmed?/2 helper that treats %Ash.NotLoaded{}, %Ash.ForbiddenField{} and nil as unconfirmed, raising a new AshAuthentication.Errors.UnconfirmedUser error instead.
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
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
Primary rating from Vendor (EEF) · only source for this CVE.
CVSS VectorVendor: EEF
DescriptionCVE.org
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.check_user/2 decides whether the attribute named by require_confirmed_with is set using a bare is_nil(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
require_confirmed_with is enforced in two places, and neither holds in every configuration. sign_in_with_token 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 select_by_default?: 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 ash_authentication: from 4.3.8 before 4.15.0 and from 5.0.0-rc.0 before 5.0.0-rc.14.
Technical POC Analysis
Authentication bypass caused by improper handling of Ash sentinel values - a CWE-754 defect.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A critical flaw in the AshAuthentication library can allow users who never verified their email address to obtain a fully authenticated session in applications built on it, undermining the email-confirmation gate that many organizations rely on for anti-fraud, onboarding integrity, and compliance. Because the weakness also applies when sign-in is exercised through the default GraphQL and JSON:API layers, teams may not realize their customer-facing authentication flows are affected until abuse is observed. A vendor patch is available now, so this is a remediation-tracking issue rather than an open-ended exposure.
Apply vendor patch. Until deployment completes, enforce the confirmation requirement at the action/caller layer rather than relying solely on the strategy's Actions module, and restrict or disable direct invocation of sign-in and register actions through AshGraphql and AshJsonApi entry points.
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.
More in Ash Authentication
View allAccount 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
Ash Authentication is an authentication framework for Elixir applications. Rated medium severity (CVSS 6.3), this vulner
Revoked sessions continue to be treated as fully authenticated on affected AshAuthentication and AshAuthentication Phoen
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
Authentication bypass in the Elixir library ash_authentication lets an attacker who operates one federated identity-prov
Reusing a leaked single-use magic-link token is possible in the Elixir library ash_authentication because its validity c
Denial of service in the AshAuthentication API-key sign-in strategy lets an unauthenticated, remote attacker exhaust ser
An authenticated account-takeover primitive exists in the Elixir library AshAuthentication (ash_authentication) versions
JWT token replay in AshAuthentication exposes any application using the stateless bearer-token path to full account take
An authenticated account holder can bind a TOTP authenticator secret they control onto another user's account in AshAuth
Authentication bypass in the AshAuthentication library for Elixir/Ash lets an authenticated attacker who holds a valid s
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
EUVD-2026-81487
NVD
CVE.org
EPSS
GitHub
Exploit-DB