Live Exposure Defense: From CVE to Confirmed Exposure in 12 Hours – See more

New CVE Detected

CVE-2026-82761 – Authentication Bypass via Magic Link Token Replay – Ash Authentication (ash_authent

Be the first to know when new zero-days emerge:

Summary

CVE-2026-82761 is a Time-of-check Time-of-use (TOCTOU) race condition (CWE-367) in the ash_authentication library (Ash Authentication for the Elixir/Ash Framework ecosystem) that allows a magic-link sign-in token, which is designed to be redeemable exactly once, to be replayed multiple times when redemption requests are sent concurrently. An attacker who obtains a leaked or intercepted magic link (e.g., via a mail-scanning gateway, browser history, proxy log, or shared inbox) can exploit the race to authenticate as the targeted user and obtain a full authenticated session. The issue carries a CVSS v4.0 base score of 9.1 (Critical).

Technical details

  • Root cause: Magic link sign-in verifies the JWT and completes authentication before the token is revoked. AshAuthentication.Strategy.MagicLink.SignInPreparation performs revocation inside a Query.after_action callback, and AshAuthentication.Strategy.MagicLink.SignInChange performs it inside an after_transaction hook — both of which run only after the sign-in has already succeeded.
  • Concurrency flaw: AshAuthentication.TokenResource.Actions.revoke/3 writes the revocation record as an upsert rather than an insert that would conflict on duplicates. This means concurrent revocation attempts for the same token silently succeed instead of one of them failing, so nothing prevents multiple simultaneous redemptions of the same "single-use" token.
  • Trigger conditions: The attacker needs access to a valid, unexpired magic-link token (via leakage, interception, or a link-scanning security appliance that pre-fetches URLs) and must send multiple sign-in requests for that token in close succession to win the race.
  • Attack vector: Network — no authentication or special privileges required to exploit the race itself, only possession of the token; default configuration (single_use_token? enabled) is affected.
  • Impact: Full authentication bypass/session hijack for the targeted account — each successful race participant receives a valid user session token, resulting in high confidentiality and integrity impact.

Affected software

  • ash_authentication (team-alembic/ash_authentication):
    • >= 3.9.0, <= 4.14.2
    • >= 5.0.0-rc.0, <= 5.0.0-rc.13
  • Affected components: AshAuthentication.Strategy.MagicLink.SignInPreparation, AshAuthentication.Strategy.MagicLink.SignInChange, AshAuthentication.TokenResource.Actions

Severity

  • CVSS v4.0 Base Score: 9.1 (Critical)
  • Vector: 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
  • (The vendor advisory additionally scores the issue as CVSS v3.1 6.8, AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N, reflecting the added complexity of the race-timing requirement under that scoring model.)

Mitigation and recommended actions

  • Immediate: Upgrade ash_authentication to version 4.15.0 (for the 4.x line) or 5.0.0-rc.14 (for the 5.0 release-candidate line), both of which fix the token revocation race condition.
  • If immediate patching is not possible:
    • On 5.0 release candidates, set store_all_tokens? to false to serialize the affected read paths (note this has other implications for token storage behavior).
    • Shorten magic-link token lifetimes to reduce the exploitation window.
    • Configure email/security gateways to avoid automatically following or pre-fetching links inside authentication emails, which can otherwise trigger unintended token consumption/leakage.

References

Are you exposed?

Get a free report of your organization’s exposure to this CVE and threat

How IONIX’s External Exposure Management Platform Detects and Validates
Zero-Days to Shrink MTTR

1

Map your entire attack surface (continously)

IONIX uses multi-factor discovery methods, including DNS analysis, certificate mapping, metadata inspection, and more, to automatically map every internet-facing asset across your environment. This includes cloud instances, third-party platforms, shadow IT, and even forgotten infrastructure that traditional tools miss.

2

Monitor for new CVEs

Dozens of threat intel feeds using agentic technology are continuously analyzed to detect the appearance of proof-of-concept code, exploit kits, and indicators of active targeting. IONIX goes further by applying AI to proactively evaluate whether emerging vulnerabilities are likely to be exploited, even before PoCs go public.

3

Identify Potential External Exposures

Not all CVEs matter. IONIX filters vulnerabilities by asking attacker-centric questions: Can it be reached from the internet? Does it require authentication? Is it being exploited in the wild? This dramatically reduces noise and focuses teams on threats that can actually be weaponized.

4

Create Safe, Scalable Exploit Validations

IONIX transforms real-world PoCs into safe, non-intrusive test payloads that can be run in production environments without disruption. These simulations are precisely targeted to the systems that are vulnerable, ensuring rapid validation without unnecessary load.

5

Execute Exploit Validations

By combining context about software stack, versioning, exposure status, and reachability, IONIX ensures that only the right payloads are executed against the right assets, maximizing efficiency and minimizing risk.

6

Drive Fast and Actionable Remediation

Results are routed through integrations with ticketing, SOAR, and SIEM tools. Issues are written in plain language, bundled into remediation clusters, and prioritized based on asset criticality, exploitability, and blast radius. This shortens mean time to remediation (MTTR) and empowers teams to act with confidence.

Are you exposed?

Get a free report of your organization’s exposure to this CVE and threat

Subscribe to Threat Center RSS

Copy/paste the link below into your preferred RSS reader or follow these instructions to subscribe to Slack alerts.

Get Real-Time CVE Alerts to Your Email

Be the first to know when new zero-days emerge