CVE-2026-65633: CWE-287 Improper Authentication in team-alembic ash_authentication
CVE-2026-65633 is an improper authentication vulnerability in the team-alembic ash_authentication library. 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 the intended one-time-use and revocation semantics of sign-in tokens. 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. Applications using the default configuration with require_token_presence_for_authentication? set to false and relying on stateless bearer-token verification are vulnerable. Applications enforcing require_token_presence_for_authentication? true or using session-based authentication are not affected.
AI Analysis
Technical Summary
The vulnerability in ash_authentication arises because the bearer-token authentication helper retrieve_from_bearer/3 verifies JWT signatures and rejects tokens with an 'act' claim but does not verify that the token's 'purpose' claim equals 'user' at the bearer boundary. When the resource is configured with require_token_presence_for_authentication? set to false (default), the validate_token/3 helper returns {:ok, nil} without checking the token's purpose. Consequently, any valid, non-expired JWT issued for a narrow purpose (e.g., sign_in tokens used in WebAuthn or Password strategy with sign_in_tokens_enabled?) can be replayed as a general-purpose bearer token, granting full user authentication. This bypasses the intended token-exchange contract where sign_in tokens are single-use and revoked immediately after validation. Exploitation requires that the application uses retrieve_from_bearer/3 on a reachable route and uses WebAuthn or the Password strategy with sign_in_tokens_enabled?. Applications with require_token_presence_for_authentication? set to true or using session-based authentication enforce purpose checks and are not vulnerable. The affected versions are ash_authentication 3.10.5, all versions from 3.10.5 up to but not including 4.14.2, and 5.0.0-rc.0 up to but not including 5.0.0-rc.13.
Potential Impact
An attacker who obtains a valid, not-yet-exchanged sign-in token for a target user can replay it as a bearer token to authenticate as that user, bypassing the intended one-time-use and revocation mechanisms. This allows unauthorized access to the victim's account with full user privileges. The vulnerability requires the attacker to have access to a valid sign-in token (e.g., via log leakage, intercepted magic-link delivery, or compromised intermediaries) and the application to be configured with vulnerable settings. Applications enforcing token presence for authentication or using session-based authentication are not impacted.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. In the meantime, applications should ensure that require_token_presence_for_authentication? is set to true, which enforces purpose checks on tokens and prevents this vulnerability. Using session-based authentication paths also mitigates the issue. Avoid using stateless bearer-token verification with the default require_token_presence_for_authentication? false setting until a fix is available.
CVE-2026-65633: CWE-287 Improper Authentication in team-alembic ash_authentication
Description
CVE-2026-65633 is an improper authentication vulnerability in the team-alembic ash_authentication library. 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 the intended one-time-use and revocation semantics of sign-in tokens. 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. Applications using the default configuration with require_token_presence_for_authentication? set to false and relying on stateless bearer-token verification are vulnerable. Applications enforcing require_token_presence_for_authentication? true or using session-based authentication are not affected.
CVSS v4.0
Score 7.6high
Affected software
pkg: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 arises because the bearer-token authentication helper retrieve_from_bearer/3 verifies JWT signatures and rejects tokens with an 'act' claim but does not verify that the token's 'purpose' claim equals 'user' at the bearer boundary. When the resource is configured with require_token_presence_for_authentication? set to false (default), the validate_token/3 helper returns {:ok, nil} without checking the token's purpose. Consequently, any valid, non-expired JWT issued for a narrow purpose (e.g., sign_in tokens used in WebAuthn or Password strategy with sign_in_tokens_enabled?) can be replayed as a general-purpose bearer token, granting full user authentication. This bypasses the intended token-exchange contract where sign_in tokens are single-use and revoked immediately after validation. Exploitation requires that the application uses retrieve_from_bearer/3 on a reachable route and uses WebAuthn or the Password strategy with sign_in_tokens_enabled?. Applications with require_token_presence_for_authentication? set to true or using session-based authentication enforce purpose checks and are not vulnerable. The affected versions are ash_authentication 3.10.5, all versions from 3.10.5 up to but not including 4.14.2, and 5.0.0-rc.0 up to but not including 5.0.0-rc.13.
Potential Impact
An attacker who obtains a valid, not-yet-exchanged sign-in token for a target user can replay it as a bearer token to authenticate as that user, bypassing the intended one-time-use and revocation mechanisms. This allows unauthorized access to the victim's account with full user privileges. The vulnerability requires the attacker to have access to a valid sign-in token (e.g., via log leakage, intercepted magic-link delivery, or compromised intermediaries) and the application to be configured with vulnerable settings. Applications enforcing token presence for authentication or using session-based authentication are not impacted.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. In the meantime, applications should ensure that require_token_presence_for_authentication? is set to true, which enforces purpose checks on tokens and prevents this vulnerability. Using session-based authentication paths also mitigates the issue. Avoid using stateless bearer-token verification with the default require_token_presence_for_authentication? false setting until a fix is available.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-07-22T13:58:26.233Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a8d50d0acd9273b49e6aa87
Added to database: 08/25/2026, 08:22:40 UTC
Last enriched: 08/25/2026, 08:37:10 UTC
Last updated: 08/25/2026, 09:24:58 UTC
Views: 10
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.