CVE-2026-80218: CWE-287 Improper Authentication in team-alembic ash_authentication
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.
AI Analysis
Technical Summary
The vulnerability in ash_authentication's AshAuthentication.Strategy.Password.SignInWithTokenPreparation.extract_primary_keys_from_subject/2 function stems from improper parsing of the JWT 'sub' claim. The function uses URI.parse/1 and retains only the query string, discarding the path segment that specifies the resource subject. Consequently, the binding between the token and the intended resource is lost. Verification checks do not restore this binding, as they only validate signature, expiration, and other claims, and compare primary key field names that are identical across resources. This allows an attacker with a valid token for one resource to authenticate as a user of another resource. The WebAuthn and remember-me sign-in preparations share this flawed helper, while the magic link sign-in path is unaffected due to explicit subject name pinning.
Potential Impact
An attacker holding a valid sign-in token for one resource can impersonate a user of a different resource, bypassing intended authentication boundaries. This could lead to unauthorized access to resources and potential privilege escalation within affected deployments of ash_authentication.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid using affected versions or apply any vendor-provided workarounds if available. Monitor vendor channels for updates addressing this improper authentication vulnerability.
CVE-2026-80218: CWE-287 Improper Authentication in team-alembic ash_authentication
Description
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.
CVSS v4.0
Score 7.6high
Affected software
team-alembic
ash_authentication
team-alembic
ash_authentication
pkg:hex/ash_authenticationpkg:github/team-alembic/ash_authenticationcpe:2.3:a:team-alembic:ash_authentication:*:*:*:*:*:*:*:*Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in ash_authentication's AshAuthentication.Strategy.Password.SignInWithTokenPreparation.extract_primary_keys_from_subject/2 function stems from improper parsing of the JWT 'sub' claim. The function uses URI.parse/1 and retains only the query string, discarding the path segment that specifies the resource subject. Consequently, the binding between the token and the intended resource is lost. Verification checks do not restore this binding, as they only validate signature, expiration, and other claims, and compare primary key field names that are identical across resources. This allows an attacker with a valid token for one resource to authenticate as a user of another resource. The WebAuthn and remember-me sign-in preparations share this flawed helper, while the magic link sign-in path is unaffected due to explicit subject name pinning.
Potential Impact
An attacker holding a valid sign-in token for one resource can impersonate a user of a different resource, bypassing intended authentication boundaries. This could lead to unauthorized access to resources and potential privilege escalation within affected deployments of ash_authentication.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid using affected versions or apply any vendor-provided workarounds if available. Monitor vendor channels for updates addressing this improper authentication vulnerability.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-09-11T18:30:01.333Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6aabe86855bf5e2cf56c51be
Added to database: 09/17/2026, 13:17:28 UTC
Last enriched: 09/17/2026, 13:31:59 UTC
Last updated: 09/18/2026, 02:46:48 UTC
Views: 9
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.