Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privilege resource
-
DeliveryObtain valid sign-in JWT
-
ExploitReplay token to sibling resource's sign-in action
-
ExecutionPath segment dropped, only PK query matched
-
ImpactSigned in as same-PK user of other resource
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 | Requires ALL of: (1) the attacker holds a valid, unexpired sign-in token for at least one authenticated resource (PR:L - must already be a legitimate user of some resource); (2) the application defines two or more authenticated Ash resources whose primary-key FIELD NAMES are identical across resources (e.g. both use 'id'), so the discarded path segment was the only thing distinguishing them; (3) the target resource uses one of the affected token preparations - password SignInWithToken, WebAuthn sign-in, or remember-me. The magic-link sign-in path pins the subject name against the resource and is NOT exploitable. Limiting factors: single-resource applications, resources with distinct PK field names, and deployments not using token/remember-me/WebAuthn sign-in are unaffected, which makes this a targeted, configuration-dependent flaw rather than a universal one. |
| Impact | This is a genuine authentication bypass (CWE-287), not a mislabeled authorization issue, corroborated by the vendor advisory (GHSA-3pr8-f99q-86hp), the ERLEF/EEF CNA record, OSV, and three patch commits - high source agreement. The vendor CVSS 4.0 vector (7.6, AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N) correctly captures that an attacker must already hold a valid sign-in token for SOME authenticated resource (PR:L) and that a specific attack requirement applies (AT:P). The realistic-risk picture is more constrained than 7.6 suggests: exploitation only works when an application registers multiple authenticated Ash resources whose primary-key field names coincide (e.g. both keyed on 'id') AND uses the token-bearing sign-in paths (password sign-in-with-token, WebAuthn, or remember-me) - a non-default multi-resource design, which argues for AC:H over the vendor's AC:L. No EPSS score, no CISA KEV entry, and no public exploit code are present in the intel, so there is no evidence of active or automatable exploitation; priority is driven by impact severity (full cross-resource account takeover) rather than exploitation likelihood. Net: a real, patch-worthy vulnerability for the narrow set of multi-resource AshAuthentication deployments, but low mass-exploitation risk given the niche ecosystem and configuration prerequisites. |
| Exploit ScenarioDerived | An application defines two authenticated resources (say Customer and Admin) that both use integer/UUID 'id' primary keys and enable token-based sign-in. An attacker who legitimately authenticates as a low-value Customer obtains a sign-in token whose 'sub' is like 'customer?id=1', then replays it against the Admin sign-in-with-token action; because only the query string ('id=1') is compared and the 'customer' path segment is discarded, they are signed in as Admin id=1. No public exploit code is identified at time of analysis, but the root cause and fix are fully disclosed in the patch commits. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 17, 2026
Authentication bypass in the AshAuthentication library for Elixir/Ash lets an authenticated attacker who holds a valid sign-in token minted for one Ash resource replay it to be signed in as a user of a different resource, because the JWT 'sub' claim's path segment - the only portion recording which subject the token was issued for - is parsed with URI.parse/1 and thrown away, leaving only the query string. Affected are ash_authentication releases from 3.10.5 before 4.15.0 and from 5.0.0-rc.0 before 5.0.0-rc.14, specifically the Password sign-in-with-token, WebAuthn sign-in and remember-me preparations; the magic-link sign-in path pins the subject against the resource and is not vulnerable. Exploitation is configuration-dependent - it requires two or more authenticated resources whose primary-key field names are identical (for example, both 'id') - and no public exploit code was identified at time of analysis.
RemediationAI
Vendor-released patch: upgrade ash_authentication to 4.15.0 or later on the 4.x line, or to 5.0.0-rc.14 or later on the 5.x pre-release line - these are the first fixed versions for their respective ranges. If an immediate dependency bump is not possible, apply the upstream fixes directly from the referenced commits (eca8cadea0f1595ed2c10a0c177b1da9aa9e5269, 2640e1872e1fef4e4606e601bf00102cff784c03, 7baac243ca651eee127a84d672eee3fcff42e598), which restore the resource/strategy binding in the token preparations and validation path. As a compensating control, disable the token-based flows you do not need - sign-in tokens, WebAuthn token sign-in, and remember-me (the project exposes configuration such as sign_in_tokens_enabled?/sign_in_token_lifetime) - understanding that this removes passwordless/token login and persistent sessions for users; alternatively, rename primary-key fields so they differ between authenticated resources, which removes the field-name collision the bypass depends on but requires a migration of key definitions and dependent code. Finally, keep magic-link sign-in in place where possible, since that path already pins the subject name to the resource and is not affected. Full details and any additional guidance are in the vendor advisory at https://github.com/team-alembic/ash_authentication/security/advisories/GHSA-3pr8-f99q-86hp.
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 an Elixir authentication framework built on the Ash resource DSL, using JWTs as sign-in tokens. In the vulnerable code, AshAuthentication.Strategy.Password.SignInWithTokenPreparation.extract_primary_keys_from_subject/2 takes the token's 'sub' claim (shaped like 'user?id=1'), runs it through URI.parse/1 and retains only the query string, silently dropping the path segment that names the resource the token was issued for. Nothing downstream restores that binding: AshAuthentication.Jwt.verify/3 validates the signature plus the exp, nbf, jti and library-version claims, the purpose check only requires the token to carry the 'sign_in' purpose, and the final comparison is performed over primary-key field names - which are identical across resources when both declare a key named 'id'. Because the resource identity is never re-derived, a token legitimately issued for resource A satisfies the lookups for resource B as long as the PK field names line up. The same helper was copy-pasted into the WebAuthn sign-in and remember-me preparations, which drop the path in the same way, while the magic-link path binds the subject name to the resource and is unaffected. The root cause is CWE-287 (Improper Authentication) - a missing integrity check tying a bearer credential to the audience/subject it was minted for - consistent with the vendor's own classification. The fix commits (eca8cade, 2640e187, 7baac243) propagate strategy/resource context through the token validation and error paths, tightening the subject binding.
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:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
PR:L because the attacker needs a valid token for one resource; AC:H because it depends on a non-default multi-resource design sharing PK field names; full cross-resource takeover gives C:H/I:H, A:N.
Primary rating from Vendor (EEF).
CVSS VectorVendor: EEF
DescriptionCVE.org
Improper Authentication vulnerability in team-alembic AshAuthentication allows an attacker holding a sign-in token for one authenticated resource to be signed in as a user of a different resource.
AshAuthentication.Strategy.Password.SignInWithTokenPreparation.extract_primary_keys_from_subject/2 parses the JWT sub claim (for example user?id=1) with URI.parse/1 and keeps only its query string, discarding the path segment that names the subject the token was issued for. Nothing else restores that binding: AshAuthentication.Jwt.verify/3 checks the signature, exp, nbf, jti and the library-version claims, the purpose check only requires sign_in, and the remaining comparison is over primary-key field names, which are identical across resources. The WebAuthn sign-in and remember-me preparations carry copies of the same helper and drop the path in the same way. The magic link sign-in path pins the subject name against the resource and is not affected.
This issue affects ash_authentication: from 3.10.5 before 4.15.0 and from 5.0.0-rc.0 before 5.0.0-rc.14.
Technical POC Analysis
CWE-287 (Improper Authentication; the advisory also tags CWE-863).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
The AshAuthentication library for Elixir/Ash, used for authentication in applications, contains a high-severity flaw (CVE-2026-80218) that could allow a user with a valid sign-in token for one resource to replay it and gain access as a user of a different resource under certain configurations. Organizations using affected versions (3.10.5 before 4.15.0 or 5.0.0-rc.0 before 5.0.0-rc.14) with multiple authenticated resources that share the same primary-key field name are at risk of unauthorized access and potential data exposure. No public exploit code was identified at time of analysis, and a vendor patch is available; timely remediation is essential to protect sensitive information and maintain trust.
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.
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
Unconfirmed accounts can obtain an authenticated session in the AshAuthentication Elixir library, defeating the mandator
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
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-81484
NVD
CVE.org
EPSS
GitHub
Exploit-DB