cve.bz

CVE-2026-81637 Replayable OAuth2 CSRF state retained after a failed callback in AshAuthentication

2.3 lowEPSS 0.6%Fix available

Low (2.3) in team-alembic ash authentication. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in ash_authentication 4.15.0, 5.0.0-rc.14.

On this page
Insufficient Session Expiration vulnerability in team-alembic AshAuthentication allows an attacker who obtains a victim's OAuth2 state value to replay the callback and sign that victim into an attacker-controlled account. AshAuthentication.Strategy.OAuth2.Plug.callback/2 clears the stored session_params through a rebinding step inside its with chain, conn <- delete_session(conn, session_key). Elixir evaluates the else block in the scope enclosing the with, so every failure path (the provider returning ?error=access_denied, an invalid code, a token-exchange error, or a registration or sign-in failure) reaches store_authentication_result/2 holding the original connection and the session entry is never removed. The value the module's own comment describes as protection against a CSRF-related attack is therefore consumed only when authentication succeeds, and survives a cancelled or failed attempt until the next request phase or session expiry. This issue affects ash_authentication: from 0.6.0 before 4.15.0 and from 5.0.0-rc.0 before 5.0.0-rc.14.

Severity

CVSS 4.0

2.3 low
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 50th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-09-17. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-613 Insufficient Session Expiration deprecated by MITRE see CWE-1463, CWE-1464
OWASP Top 10
A07:2025 Authentication Failures
Published
Modified
Assigned by
EEF (CNA)
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • ash_authentication (Hex): fixed in 4.15.0, 5.0.0-rc.14

Ask an AI about this CVE

Show the promptExplain CVE-2026-81637 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-81637?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-81637?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-81637 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
team-alembic ash_authenticationfrom 0.6.0 before 4.15.0
team-alembic ash_authenticationfrom 5.0.0-rc.0 before 5.0.0-rc.14

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
EEF-CVE-2026-81637Hexash_authentication>=0.6.0 <4.15.0
>=5.0.0-rc.0 <5.0.0-rc.14
4.15.0, 5.0.0-rc.14
EEF-CVE-2026-81637v4.14.2, v5.0.0-rc.13, v4.14.1, v5.0.0-rc.12, v5.0.0-rc.11 and 167 moreno fix published

References

Check your stackJSON