---
id: "CVE-2026-119215"
kind: "vulnerability"
aliases: ["CVE-2026-119215"]
title: "ash_authentication: TOTP setup flaw lets users take over other accounts' second factor"
severity: "high"
cvss: 7.6
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["ash-framework", "ash_authentication", "elixir", "package", "totp", "web-apps"]
not_affected_if: ["auth-required-actions-restricted", "no-totp", "version-5.0.0-rc.16-or-later"]
published_at: "2026-11-03T16:17:21+00:00"
first_seen_at: "2026-11-03T16:21:42+00:00"
updated_at: "2026-11-03T16:23:51+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-119215", "first_seen_at": "2026-11-03T16:21:42+00:00"}]
---

# ash_authentication: TOTP setup flaw lets users take over other accounts' second factor

ash_authentication is an Elixir authentication library for the Ash framework. A signed-in user can confirm their own TOTP secret onto another user's account, then sign in as that user or hold their second factor.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Look for `ash_authentication` in `mix.lock` and note the version
- Check whether TOTP is enabled through the `Totp` strategy and whether setup or confirm_setup actions are exposed by record key

## Fix

- `ash_authentication` from `5.0.0-rc.16` onward (fixed in that release, per the affected range given)

## Timeline

- 2026-11-03T16:21:42+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-119215

## Documents

- [advisory] Vendor advisory: github.com https://github.com/team-alembic/ash_authentication/security/advisories/GHSA-gx67-694c-655c
- [fix] Patch: github.com https://github.com/team-alembic/ash_authentication/commit/4058be0f519c2e9b0d2266e90f9c7d8547d54574
- [fix] Patch: github.com https://github.com/team-alembic/ash_authentication/commit/6e7a880698614887527a87df206b4eb0c0fbd8c1

## From the sources

Authorization Bypass Through User-Controlled Key vulnerability in team-alembic ash_authentication allows a user with an account to install a TOTP secret they control on another user's account, and then sign in as that user or hold their second factor.

AshAuthentication.Strategy.Totp.ConfirmSetupChange verified a setup token but did not check that it was issued to the record being confirmed, so an attacker's own pending secret could be confirmed onto another user's record. The TOTP setup changes, ConfirmSetupChange, GeneratePendingSetupChange and GenerateSecretChange, also marked their changesets as AshAuthentication interactions, which the standard AshAuthenticationInteraction policy bypass lets through. A policy limiting setup and confirm_setup to the actor's own record therefore never ran when an application exposed those actions by record key, and a direct setup call on another user's record returned that user's pending secret and setup token.

This issue affects ash_authentication: from 5.0.0-rc.0 before 5.0.0-rc.16.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
