Skip to main content

CVE-2026-82685: CWE-639 Authorization Bypass Through User-Controlled Key in team-alembic ash_authentication

0
High
VulnerabilityCVE-2026-82685cvecve-2026-82685cwe-639
Published: 09/17/2026 (09/17/2026, 13:08:56 UTC)
Source: CVE Database V5
Vendor/Project: team-alembic
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Affected software

team-alembic

ash_authentication

Affected versions
>=0.5.0 <4.15.0>=5.0.0-rc.0 <5.0.0-rc.14

team-alembic

ash_authentication

ash_authentication
pkg:hex/ash_authentication
Affected versions
>=0.5.0 <4.15.0>=5.0.0-rc.0 <5.0.0-rc.14
GitHub Actionsmore threats →cve
team-alembic/ash_authentication
pkg:github/team-alembic/ash_authentication
CPE configurations
cpe: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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/17/2026, 13:31:50 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses