CVE-2026-82685: CWE-639 Authorization Bypass Through User-Controlled Key in team-alembic ash_authentication
Authorization Bypass Through User-Controlled Key vulnerability in team-alembic AshAuthentication allows an authenticated attacker to overwrite and confirm another user's email address, and so take over that account. A confirmation token issued to one user is accepted on any other user's record. AshAuthentication.AddOn.Confirmation.ConfirmChange verifies the token's signature and its act claim, then applies the changes stored against that token to whichever record the changeset targets, never comparing the sub claim against changeset.data. An attacker who registers an account and changes their own email replays the resulting token against a victim's record id, writing in their own address with force_change_attributes/2 and stamping confirmed_at, after which an ordinary password reset yields the account. The library's own confirmation flow is unaffected, because AshAuthentication.AddOn.Confirmation.Actions.confirm/3 resolves sub to a user and targets that record. This issue affects ash_authentication: from 0.5.0 before 4.15.0 and from 5.0.0-rc.0 before 5.0.0-rc.14.
AI Analysis
Technical Summary
The vulnerability in ash_authentication arises from improper authorization checks in the email confirmation token handling. Specifically, the ConfirmChange function verifies the token's signature and claims but does not ensure the token's subject (sub claim) matches the user record being modified. An attacker can register an account, change their own email to generate a confirmation token, then replay this token against another user's record ID. This causes the victim's email to be overwritten and confirmed with the attacker's address. Subsequently, the attacker can reset the victim's password and gain account control. The library's standard confirmation flow remains unaffected because it correctly resolves the subject claim to the user record. The affected versions are >=0.5.0 <4.15.0 and >=5.0.0-rc.0 <5.0.0-rc.14.
Potential Impact
An authenticated attacker can take over another user's account by exploiting this vulnerability. They achieve this by overwriting and confirming the victim's email address with their own, then resetting the password to gain full access. This compromises account integrity and user data confidentiality.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are provided in the available data. Until a patch is available, avoid using affected versions or implement additional authorization checks to ensure the token's subject matches the targeted user record during email confirmation.
CVE-2026-82685: CWE-639 Authorization Bypass Through User-Controlled Key in team-alembic ash_authentication
Description
Authorization Bypass Through User-Controlled Key vulnerability in team-alembic AshAuthentication allows an authenticated attacker to overwrite and confirm another user's email address, and so take over that account. A confirmation token issued to one user is accepted on any other user's record. AshAuthentication.AddOn.Confirmation.ConfirmChange verifies the token's signature and its act claim, then applies the changes stored against that token to whichever record the changeset targets, never comparing the sub claim against changeset.data. An attacker who registers an account and changes their own email replays the resulting token against a victim's record id, writing in their own address with force_change_attributes/2 and stamping confirmed_at, after which an ordinary password reset yields the account. The library's own confirmation flow is unaffected, because AshAuthentication.AddOn.Confirmation.Actions.confirm/3 resolves sub to a user and targets that record. This issue affects ash_authentication: from 0.5.0 before 4.15.0 and from 5.0.0-rc.0 before 5.0.0-rc.14.
CVSS v4.0
Score 7.6high
Affected software
team-alembic
ash_authentication
team-alembic
ash_authentication
pkg:hex/ash_authenticationpkg:github/team-alembic/ash_authenticationcpe:2.3:a:team-alembic:ash_authentication:*:*:*:*:*:*:*:*Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in ash_authentication arises from improper authorization checks in the email confirmation token handling. Specifically, the ConfirmChange function verifies the token's signature and claims but does not ensure the token's subject (sub claim) matches the user record being modified. An attacker can register an account, change their own email to generate a confirmation token, then replay this token against another user's record ID. This causes the victim's email to be overwritten and confirmed with the attacker's address. Subsequently, the attacker can reset the victim's password and gain account control. The library's standard confirmation flow remains unaffected because it correctly resolves the subject claim to the user record. The affected versions are >=0.5.0 <4.15.0 and >=5.0.0-rc.0 <5.0.0-rc.14.
Potential Impact
An authenticated attacker can take over another user's account by exploiting this vulnerability. They achieve this by overwriting and confirming the victim's email address with their own, then resetting the password to gain full access. This compromises account integrity and user data confidentiality.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are provided in the available data. Until a patch is available, avoid using affected versions or implement additional authorization checks to ensure the token's subject matches the targeted user record during email confirmation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-08-31T00:45:02.436Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6aabe86855bf5e2cf56c51c1
Added to database: 09/17/2026, 13:17:28 UTC
Last enriched: 09/17/2026, 13:31:50 UTC
Last updated: 09/17/2026, 22:45:19 UTC
Views: 9
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.