CVE-2026-82761
Last modified
CVE-2026-82761 is a critical-severity vulnerability rated 9.1/10 on the CVSS scale. Time-of-check Time-of-use (TOCTOU) Race Condition vulnerability in team-alembic AshAuthentication allows an attacker holding a leaked magic link to replay its single-use token and authenticate as the target subject. A magic link configured with single_use_token?, which is the default, is meant to be redeemable exactly once, but nothing serialises the token's validity check against its consumption, so concurrent redemptions of one token all succeed and each yields a full user token. Sign-in verifies the JWT with Jwt.verify/4 and revokes it only afterwards: AshAuthentication.Strategy.MagicLink.SignInPreparation revokes in a Query.after_action callback, and AshAuthentication.Strategy.MagicLink.SignInChange in an after_transaction hook that runs once the sign-in has already committed.
Description
Time-of-check Time-of-use (TOCTOU) Race Condition vulnerability in team-alembic AshAuthentication allows an attacker holding a leaked magic link to replay its single-use token and authenticate as the target subject. A magic link configured with single_use_token?, which is the default, is meant to be redeemable exactly once, but nothing serialises the token's validity check against its consumption, so concurrent redemptions of one token all succeed and each yields a full user token. Sign-in verifies the JWT with Jwt.verify/4 and revokes it only afterwards: AshAuthentication.Strategy.MagicLink.SignInPreparation revokes in a Query.after_action callback, and AshAuthentication.Strategy.MagicLink.SignInChange in an after_transaction hook that runs once the sign-in has already committed. AshAuthentication.TokenResource.Actions.revoke/3 writes the revocation as an upsert, so a concurrent duplicate revocation silently succeeds instead of conflicting and no request ever loses the race. This issue affects ash_authentication: from 3.9.0 before 4.15.0 and from 5.0.0-rc.0 before 5.0.0-rc.14.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| team-alembic | ash_authentication | >= 3.9.0, < 4.15.0; >= 5.0.0-rc.0, < 5.0.0-rc.14 |
| team-alembic | ash_authentication | >= cf3d227ef25912cf1b0c5fa80f20001f5c46a102, < * |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-82761?
How severe is CVE-2026-82761?
How do I fix CVE-2026-82761?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-82756Improper Encoding or Escaping of Output vulnerability in ash…6.3
- CVE-2026-82757Server-Side Request Forgery (SSRF) vulnerability in ash-proj…6.3
- CVE-2026-82758Improper Authentication vulnerability in ash-project ash_aut…6.3
- CVE-2026-82759Use of a One-Way Hash with a Predictable Salt vulnerability …1.8
- CVE-2026-8276A flaw has been found in bettercap up to 2.41.5. Affected by…3.7
- CVE-2026-82760Inefficient Algorithmic Complexity vulnerability in team-ale…8.2
- CVE-2026-82762Improper neutralization of special elements used in an OS co…8.8
- CVE-2026-82763Cross-site scripting vulnerability exists in Contec FX5000 s…5.4
- CVE-2026-82764Cross-site request forgery vulnerability exists in multiple …5.1
- CVE-2026-82765Path traversal vulnerability exists in Contec FX5000 series,…8.1
- CVE-2026-82766Improper neutralization of special elements used in an OS co…8.8
- CVE-2026-82767Cross-site scripting vulnerability exists in SGA1000. If thi…5.2
Are you affected by CVE-2026-82761?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
