CVE-2026-49757: AshAuthentication OAuth2/OIDC Account Takeover via Email Matching

ash_authentication Updated 15 Jun 2026

Summary

15/06/2026
Yes i
Critical
9.2

CVE-2026-49757: OAuth2/OIDC account takeover in AshAuthentication via email-based user matching. Affects ash_authentication across 4 version ranges.

>= 0.1.0, < 4.14.0 >= 5.0.0-rc.0, < 5.0.0-rc.10 < 64530644f9b37ebb76ca14aeb83a77597a0034b7 >= c5f589058e04239263f50a1430eb17ea6d5dd1a2, < 728b8d28c1b5f465fa1116ef044a815300fc733d

Fixed in 4.14.0 or 5.0.0-rc.10, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

AshAuthentication is an authentication library designed for use with the Elixir programming language, facilitating OAuth2 and OpenID Connect (OIDC) sign-in processes. It allows developers to integrate various authentication providers into their applications seamlessly. However, a critical vulnerability exists in its user matching mechanism, which relies on email addresses rather than the more secure OpenID Connect iss/sub claims, making it susceptible to account takeover attacks.

Vulnerability Detail

The vulnerability arises from an Authentication Bypass by Spoofing in AshAuthentication, where local users are matched based on their email addresses during OAuth2/OIDC sign-ins. This approach violates OpenID Connect specifications, which state that only the iss/sub claim combination should uniquely identify an end-user. An attacker can exploit this flaw by registering an account with any OAuth provider using a victim's email, potentially gaining full access to the victim's local account privileges, especially if the email is unverified or reused.

How To Fix

Latest published version: 5.0.0-rc.15 as of 22 Oct 2026

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • >= 0.1.0, < 4.14.0 4.14.0
  • >= 5.0.0-rc.0, < 5.0.0-rc.10 5.0.0-rc.10

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

As a temporary workaround, consider implementing additional verification steps for email addresses during the registration process, such as requiring email verification before allowing OAuth sign-ins. This can help mitigate the risk of account takeover until the package is updated.

Conclusion

CVE-2026-49757 represents a significant security risk for applications using AshAuthentication due to its flawed email-based user matching during OAuth2/OIDC sign-ins. It is crucial for developers to update to the latest patched versions of the library and consider implementing additional security measures to protect user accounts.

See every vulnerability recorded for ash_authentication →

Share this vulnerability

FAQ

CVE-2026-49757 is a vulnerability in the AshAuthentication library that allows attackers to take over user accounts via OAuth2/OIDC sign-ins by exploiting email-based user matching.

You can check if your application is affected by using the Vulert playground at Vulert Scanner, which monitors and alerts for open-source vulnerabilities in real-time.

If exploited, this vulnerability can allow an unauthenticated attacker to gain full access to a victim's local account, potentially compromising sensitive data and application integrity.

If an immediate update is not possible, implement email verification during the registration process to reduce the risk of account takeover until the vulnerability is patched.

The CVSS score for this vulnerability is 9.2, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for ash_authentication.

How To Fix

Latest published version: 5.0.0-rc.15 as of 22 Oct 2026

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • >= 0.1.0, < 4.14.0 4.14.0
  • >= 5.0.0-rc.0, < 5.0.0-rc.10 5.0.0-rc.10

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback