CVE-2026-65633: CWE-287 Improper Authentication in team-alembic ash_authentication
Description
CVE-2026-65633 is an improper authentication vulnerability in the ash_authentication library by team-alembic. It allows purpose-limited JWT tokens, such as sign_in tokens, to be replayed as full bearer API credentials when stateless bearer-token verification is used without strict purpose checks. This bypasses intended one-time-use and revocation semantics, enabling an attacker with a valid sign_in token to authenticate as the token's subject. The issue affects versions from 3.10.5 before 4.14.2 and from 5.0.0-rc.0 before 5.0.0-rc.13. Resources configured with require_token_presence_for_authentication?: true or using session-based authentication are not affected.
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 arises because the AshAuthentication.Plug.Helpers.retrieve_from_bearer/3 function verifies JWT signatures and rejects tokens with an act claim but does not check that the token's purpose claim equals "user" at the bearer boundary. When the resource is configured with require_token_presence_for_authentication?: false (default), the validate_token/3 helper returns {:ok, nil} without consulting the token resource, so no downstream purpose check occurs. Consequently, any valid, non-expired JWT issued for a narrow purpose (e.g., sign_in tokens from WebAuthn or Password strategy) can be used directly as a general-purpose bearer token, granting full current_user authentication. This bypasses the intended token-exchange contract where sign_in tokens are single-use and revoked immediately after validation. Exploitation requires the attacker to obtain a not-yet-exchanged sign_in token and for the application to use retrieve_from_bearer/3 on a reachable route with WebAuthn or Password strategy with sign_in_tokens_enabled?: true. Applications enforcing require_token_presence_for_authentication?: true or using session-based authentication are not vulnerable.
Potential Impact
An attacker who obtains a valid, not-yet-exchanged sign_in JWT token can replay it as a bearer token to authenticate as the token's subject, bypassing the intended one-time-use and revocation mechanisms. This allows unauthorized access to resources as the impersonated user. The vulnerability affects applications using stateless bearer-token verification with the vulnerable ash_authentication versions and specific configurations. Applications using session-based authentication or enforcing require_token_presence_for_authentication?: true are not impacted.
Mitigation Recommendations
No official patch or fix is explicitly stated in the provided data. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. As a mitigation, applications should configure require_token_presence_for_authentication?: true to enforce purpose checks on tokens or use session-based authentication paths that validate token purpose. Avoid using retrieve_from_bearer/3 on reachable routes with WebAuthn or Password strategy sign_in tokens enabled unless the purpose claim is strictly verified. Monitor vendor advisories for updates and patches.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-07-22T13:58:26.233Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a8d50d0acd9273b49e6aa87
Added to database: 08/25/2026, 08:22:40 UTC
Last enriched: 09/10/2026, 06:52:49 UTC
Last updated: 10/09/2026, 06:48:18 UTC
Views: 75
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.