Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker mints own remember-me token
-
DeliveryPlant attacker cookie in victim browser
-
ExploitDefault guard skips already-signed-in check
-
ExecutionBrowser plug signs victim into attacker account
-
ImpactVictim's entered data stored under attacker
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Anti-spoofing controls
MITRE ATT&CK
1 technique across 1 tactic: Defense Evasion The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires ash_authentication 4.10.0-<4.15.0 or 5.0.0-rc.0-<5.0.0-rc.14 running the per-request browser pipeline plug at the DEFAULT token setting (require_token_presence_for_authentication? disabled), which is what makes the guard's session key ('<subject_name>_token') never get written and the already-signed-in short-circuit unreachable. Enabling require_token_presence_for_authentication? causes the key to be written and closes the unreachable-guard path, so non-default configs are not exposed. Exploitation further requires the attacker to (a) hold a valid remember-me token for their own account and (b) plant it as a cookie in the victim's browser via a cookie-injection channel (shared/parent-domain cookie write, XSS, or on-path/MITM), and (c) the victim to subsequently enter data while operating in the swapped session for the compromise to have effect - these are the realistic limiting factors beyond the raw score. |
| Impact | Signals conflict on severity. The vendor CVSS 4.0 base score is 9.1 (Critical) with AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H, but the described mechanism is a session-fixation / login-CSRF variant rather than classic account takeover: the attacker does not steal the victim's credentials or session - instead the attacker plants their OWN remember-me cookie, causing the victim to be silently re-authenticated INTO the attacker's account, so data the victim subsequently enters is exposed to the attacker. That materially changes the real-world picture: the AT:P (attack requirement) already concedes a precondition - the attacker must be able to set a cookie in the victim's browser (e.g. via a shared parent domain/subdomain, XSS, an on-path/MITM position, or another cookie-injection primitive), which is a non-trivial gate the headline PR:N/UI:N vector understates. There is no EPSS score, no CISA KEV listing, and no public exploit code in the input (the three referenced GitHub commits are the FIX, not a weaponized PoC), so this is 'no public exploit identified at time of analysis.' Net: a genuinely real logic flaw that triggers on DEFAULT configuration (the guard reads a session key that is only written when require_token_presence_for_authentication? is enabled), which raises its practical footprint among affected deployments, but the impact is subtler than 'critical unauthenticated RCE/takeover' and requires an attacker-controlled cookie-planting channel plus continued victim interaction to cause harm. Priority: patch promptly for anyone on affected versions, but the 9.1 overstates likelihood versus a straight remote unauthenticated compromise. |
| Exploit ScenarioDerived | An attacker obtains a valid remember-me cookie for their own ash_authentication account, then uses a cookie-injection vector (shared-domain cookie write, XSS, or on-path interception) to plant that cookie in a victim's browser. Because the default-config guard reads a session key that is never written, the per-request browser pipeline honours the planted cookie on every request and replaces the victim's live authenticated session with one for the attacker's account; the victim then unknowingly enters data (messages, uploads, form input) into the attacker-controlled account. No public exploit code was identified in the provided sources. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 17, 2026
Session-swapping authentication bypass in the Elixir library AshAuthentication (versions 4.10.0 before 4.15.0 and 5.0.0-rc.0 before 5.0.0-rc.14) allows an attacker who can plant a remember-me cookie in a victim's browser to displace the victim's live authenticated session with one belonging to the attacker's own account, so anything the victim enters afterwards is captured under attacker-controlled state. The root cause is a guard/reader key mismatch: AshAuthentication.Plug.Helpers.sign_in_using_remember_me/3 checks the session for a '<subject_name>_token' key, but store_in_session/2 only writes that key when require_token_presence_for_authentication? is enabled and otherwise writes the bare subject name, leaving the already-signed-in short-circuit unreachable and the remember-me sign-in running on every request through the per-request browser pipeline plug. No public exploit code or confirmed active exploitation was identified at time of analysis, but exploitation is constrained by prerequisites - the attacker needs a remember-me token for their own account, a cookie-injection channel (shared/parent-domain cookie write, XSS, or on-path position), and subsequent victim interaction - which independent assessment reflects with CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N; vendor fixes are available in 4.15.0 and 5.0.0-rc.14.
RemediationAI
Upgrade AshAuthentication to the fixed releases: 4.15.0 for the 4.x line, or 5.0.0-rc.14 for the 5.0.0 prerelease line - these correspond to the upstream fix commits referenced in GHSA-hh34-374j-pfr5 (https://github.com/team-alembic/ash_authentication/security/advisories/GHSA-hh34-374j-pfr5), with the advisory index at https://cna.erlef.org/cves/CVE-2026-76949.html and the OSV entry at https://osv.dev/vulnerability/EEF-CVE-2026-76949; vendor-released patch versions are 4.15.0 and 5.0.0-rc.14. Where an immediate upgrade is not possible, the most effective compensating control is to enable require_token_presence_for_authentication? (with token storage enabled, e.g. store_all_tokens? true) on affected resources, which causes store_in_session/2 to write the '<subject_name>_token' key and restores the reachable already-signed-in branch, closing the bypass on default configurations - the trade-off is mandatory token persistence and per-request token presence checks, adding datastore lookups and requiring token cleanup/migration. Because the attack hinges on cookie injection, also harden the remember-me cookie: omit the Domain attribute so the cookie is host-only and cannot be planted from a sibling or parent domain, set Secure, HttpOnly and SameSite=Lax/Strict (noting SameSite does not defend against same-site subdomain planting), and treat any XSS or on-path/MITM foothold as an enabling condition worth remediating separately. Enable the log_out_everywhere add-on with apply_on_password_change? to revoke outstanding remember-me tokens on credential change, and if RememberMe is not required, disable the strategy entirely until patched; monitoring should treat an unexplained identity switch mid-session as a possible indicator of this technique.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
AshAuthentication is an authentication framework extension for the Elixir Ash ecosystem; its RememberMe strategy, introduced in the 4.10.0 line, issues long-lived (default 30-day) remember-me tokens that are delivered as browser cookies and replayed through the per-request browser pipeline plug. The defect is classified CWE-290 (Authentication Bypass by Spoofing) and is fundamentally a state-key inconsistency rather than a cryptographic break: the sign-in guard in AshAuthentication.Plug.Helpers.sign_in_using_remember_me/3 probes the session for "<subject_name>_token", while the companion store_in_session/2 only writes that suffixed key when the resource is configured with require_token_presence_for_authentication? enabled - under the default setting it writes the bare subject name instead. Consequently the guard's "already signed in" branch is dead code at default configuration, and the remember-me sign-in path executes even when the visitor already holds an authenticated session. The separate read path, authenticate_resource_from_session/4, resolves the correct key, which is precisely why the mismatch went unnoticed: the guard and the reader disagree about which session key represents a signed-in subject. Because the remember-me cookie is honoured unconditionally, a cookie planted by an attacker supersedes the victim's session identity, producing session fixation/substitution with both confidentiality and integrity impact (VC:H/VI:H, no availability impact). The vendor's fix commits (3d3de314692558d06ec13945f857f00514e95a8c, 9a34136b844abe179da1075067cf2835c64dcc12, b9568a53b438247238b1c5a4f49c8d84650f4bba) and GHSA-hh34-374j-pfr5 accompany the corrected releases; the advisory documentation also demonstrates cookie hardening patterns (HttpOnly, Secure, SameSite=Lax) and the log_out_everywhere add-on for revoking remember-me tokens on password change.
Know when Elixir gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
AC:H and UI:R because the attacker must plant a cookie via a separate injection channel and the victim must then interact/enter data; C:H/I:H as victim data flows into the attacker-controlled account, A:N.
Primary rating from Vendor (6b3ad84c-e1a6-4bf7-a703-f496b71e49db).
CVSS VectorVendor: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Lifecycle Timeline
2DescriptionCVE.org
Authentication Bypass by Spoofing vulnerability in team-alembic ash_authentication allows an attacker who can plant a remember-me cookie in a victim's browser to replace that victim's authenticated session with one for the attacker's own account.
AshAuthentication.Plug.Helpers.sign_in_using_remember_me/3 skips re-authenticating an already-signed-in visitor by checking the session for "<subject_name>_token", but store_in_session/2 writes that key only when require_token_presence_for_authentication? is enabled and otherwise writes the bare subject name. At the default setting the guard therefore reads a key that is never written, its already-signed-in branch is unreachable, and the remember-me sign-in runs on every request through the per-request browser pipeline plug. A planted remember-me cookie is consequently honoured even for a visitor holding a live authenticated session, so whatever the victim enters afterwards lands in data the attacker controls. The read path in authenticate_resource_from_session/4 selects the key correctly, so the guard and the reader disagree about which key holds the session.
This issue affects ash_authentication: from 4.10.0 before 4.15.0 and from 5.0.0-rc.0 before 5.0.0-rc.14.
Technical POC Analysis
CWE-290 Authentication Bypass by Spoofing.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
AshAuthentication, an Elixir session-authentication library embedded in customer-facing and internal web applications, carries a critical session-swapping flaw that lets an attacker overwrite a signed-in user's session with one tied to the attacker's own account, so everything the victim does afterwards - data entry, transactions, approvals - is captured in attacker-controlled state while the victim sees a normal signed-in experience. No public exploit identified at time of analysis, but exploitation requires the ability to plant a remember-me cookie in a victim's browser, which narrows the attack path to users whose devices or channels an attacker can influence. Leadership should treat this as a trust and data-integrity issue rather than a routine patch: the affected population is every user of applications running the unpatched library versions, the failure is invisible to those users, and no vendor-released patch was identified at the time of analysis.
No vendor-released patch identified at time of analysis. Interim mitigations: enable require_token_presence_for_authentication? so store_in_session/2 writes the '<subject_name>_token' key and the already-signed-in short-circuit becomes reachable, or disable the remember-me feature and its per-request browser pipeline plug if it is not business-required; set Secure, HttpOnly and appropriate SameSite attributes on session cookies to reduce cookie-planting opportunities; invalidate existing sessions and remember-me cookies and force re-authentication; and instrument mid-session account-identity changes as a detection control.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Unbounded recursion in the Elixir `protobuf` Hex package (versions >= 0.8.0, < 0.16.1) lets unauthenticated remote attac
Improper JWT signature verification in Dashbit's nimble_zta (0.1.2 up to but not including 0.1.3) lets an unauthenticate
Account takeover in AshAuthentication (Elixir/Ash) 4.14.0 through 4.14.x and 5.0.0-rc.10 through 5.0.0-rc.13 lets unauth
Authentication bypass in the Elixir library ash_authentication lets an attacker who operates one federated identity-prov
Server-Side Request Forgery protection bypass in the Elixir safeurl library (versions 0.1.0 and later) allows unauthenti
Unauthenticated remote CPU exhaustion in mtrudel Bandit's HTTP/2 server (versions before 1.14.0) is achievable by holdin
Unbounded per-connection memory and CPU growth in the Elixir Bandit HTTP/2 server (0.3.6 up to 1.14.0) lets an unauthent
Unauthenticated remote denial of service in the Elixir HTTP server Bandit (mtrudel/bandit) from 0.1.0 before 1.14.0 lets
Unauthenticated remote attackers can consume disproportionate server CPU on Bandit (mtrudel/bandit, Elixir/Erlang) by se
Denial of service through CPU exhaustion in the Elixir gRPC stack: grpc_server 1.0.0 through 1.1.0 (exclusive) and the p
Memory-exhaustion denial of service in the elixir-protobuf library (protobuf) from 0.8.0 onward allows an unauthenticate
Memory exhaustion denial-of-service in Elixir Mint affects versions 1.1.0 through 1.10.x and allows a malicious or compr
EUVD-2026-82578
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB