# CVE-2026-65633: Purpose-limited JWT accepted as full bearer authentication in AshAuthentication

- Severity: High 7.6 (CVSS:4.0, scored by EEF) `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.47%, higher than 42% of CVEs (2026-12-01)
- Published: 2026-08-25T08:03:51.846Z
- Modified: 2026-11-26T17:23:11.203Z
- Also known as: EEF-CVE-2026-65633, GHSA-6vcj-3h59-rrc3
- Weaknesses: CWE-287
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: EEF

## Description

Improper Authentication vulnerability in team-alembic AshAuthentication allows purpose-limited JWTs to be replayed as full bearer API credentials when a resource uses stateless bearer-token verification.

The bearer-token authentication helper AshAuthentication.Plug.Helpers.retrieve_from_bearer/3 verifies an Authorization: Bearer JWT's signature and rejects tokens containing an act claim, but performs no 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 (the DSL default), the follow-on validate_token/3 helper returns {:ok, nil} without consulting the token resource, so no downstream check on purpose takes place either. As a result, any valid, non-expired JWT the library itself issued for a narrow, single-purpose flow (most notably the purpose: sign_in token that WebAuthn always emits during sign-in, and that the Password strategy emits when sign-in tokens are enabled) is accepted directly as a general-purpose bearer credential and resolves to a full current_user assignment.

This bypasses the library's intended token-exchange contract, in which the sign_in token is meant to be presented exactly once to a preparation that validates the purpose claim and immediately revokes the token. The first use of a still-valid sign-in token presented directly in the Authorization header succeeds because the stateless bearer path never scopes it to purpose == "user".

An attacker who obtains a not-yet-exchanged sign-in token for a target subject (for example via log or referrer leakage, an intercepted magic-link delivery channel, or a partially compromised intermediary) can present it as a bearer token and be authenticated as that subject, fully bypassing the intended one-time-use and revocation semantics. Exploitation additionally requires that the host application wire up retrieve_from_bearer/3 on a reachable route and uses either WebAuthn (sign-in tokens are always issued) or the Password strategy with sign_in_tokens_enabled?: true. Resources configured with require_token_presence_for_authentication?: true (including applications scaffolded by the Igniter installer since v4.5.0) and the session-based path (authenticate_resource_from_session/4) enforce purpose == "user" against the stored token record and are not affected.

This issue affects ash_authentication: from 3.10.5 before 4.14.2 and from 5.0.0-rc.0 before 5.0.0-rc.13.

(As written by CVE List.)

## Affected

- ash_authentication: from 3.10.5 before 4.14.2; from 5.0.0-rc.0 before 5.0.0-rc.13
- team-alembic/ash_authentication: from eca8cadea0f1595ed2c10a0c177b1da9aa9e5269 before *
- ash_authentication (Hex): from 3.10.5 before 4.14.2; from 5.0.0-rc.0 before 5.0.0-rc.13
- https://github.com/team-alembic/ash_authentication: from eca8cadea0f1595ed2c10a0c177b1da9aa9e5269 before 124eddd1bbeb40289c3fe8831ac10677a19fcf09; before 8cf8b2d4426172be0900a3505e9491800b951750

## Every score

- EEF: CVSS:4.0 7.6 High `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- Erlang Ecosystem Foundation: CVSS:4.0 `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/team-alembic/ash_authentication/security/advisories/GHSA-6vcj-3h59-rrc3> (advisory, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-65633.html> (related, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-65633> (related)
- <https://github.com/team-alembic/ash_authentication/commit/eca8cadea0f1595ed2c10a0c177b1da9aa9e5269> (related, web)
- <https://github.com/team-alembic/ash_authentication/commit/124eddd1bbeb40289c3fe8831ac10677a19fcf09> (fix, patch)
- <https://github.com/team-alembic/ash_authentication/commit/8cf8b2d4426172be0900a3505e9491800b951750> (fix, patch)
- <https://hex.pm/packages/ash_authentication> (package)

## Sources

- CVE List: [CVE-2026-65633](https://www.cve.org/CVERecord?id=CVE-2026-65633), CVE Terms of Use, modified 2026-11-20
- Erlang Ecosystem Foundation: [EEF-CVE-2026-65633](https://osv.dev/vulnerability/EEF-CVE-2026-65633), CC-BY-4.0, modified 2026-11-26
- NVD: [CVE-2026-65633](https://nvd.nist.gov/vuln/detail/CVE-2026-65633), Public domain, modified 2026-11-20

---

Page: https://cve.day/CVE-2026-65633 · Whole record: https://cve.day/CVE-2026-65633.json · Rebuilt by cve.day 2026-11-26T17:37:09.401Z
