CVE-2026-80218: AshAuthentication Improper Authentication Vulnerability

ash_authentication Updated 17 Sep 2026

Summary

17/09/2026
Yes i
High
7.6

CVE-2026-80218: Sign-in token minted for one resource accepted by another in AshAuthentication. Affects ash_authentication across 4 version ranges.

>= 3.10.5, < 4.15.0 >= 5.0.0-rc.0, < 5.0.0-rc.14 < 7baac243ca651eee127a84d672eee3fcff42e598 >= eca8cadea0f1595ed2c10a0c177b1da9aa9e5269, < 2640e1872e1fef4e4606e601bf00102cff784c03

Fixed in 4.15.0 or 5.0.0-rc.14, 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

AshAuthentication is a library designed for handling authentication in Elixir applications. It provides various strategies for user sign-in, including password-based authentication and token-based sign-in. The library is widely used in applications that require secure user authentication mechanisms. However, it is susceptible to a significant vulnerability that allows an attacker to misuse sign-in tokens across different resources.

Vulnerability Detail

The vulnerability stems from improper authentication handling in AshAuthentication, specifically in the way it processes sign-in tokens. The function 'extract_primary_keys_from_subject' incorrectly parses the JWT 'sub' claim, discarding the path segment that identifies the resource for which the token was issued. This flaw allows an attacker with a valid token for one resource to gain unauthorized access to another resource, leading to potential data breaches and unauthorized actions within the application.

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.

  • >= 3.10.5, < 4.15.0 4.15.0
  • >= 5.0.0-rc.0, < 5.0.0-rc.14 5.0.0-rc.14

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, ensure that sign-in tokens are validated against the specific resource they were issued for. This can be implemented by modifying the token verification logic to include checks for the resource path, thus preventing cross-resource token acceptance.

Conclusion

CVE-2026-80218 represents a serious security flaw in the AshAuthentication library that can lead to unauthorized access across resources. It is crucial for developers using this library to update to the latest patched versions and consider implementing additional validation checks as a temporary measure.

See every vulnerability recorded for ash_authentication →

Share this vulnerability

FAQ

CVE-2026-80218 is a vulnerability in the AshAuthentication library that allows an attacker to use a sign-in token meant for one resource to authenticate as a user of another resource.

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.

The vulnerability affects AshAuthentication versions from 3.10.5 before 4.15.0 and from 5.0.0-rc.0 before 5.0.0-rc.14.

The CVSS score of this vulnerability is 7.6, indicating a high severity level.

If an immediate update is not possible, implement a workaround by ensuring that tokens are validated against the specific resource they were issued for.

Related vulnerabilities

Recent vulnerabilities recorded for ash_authentication.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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.

  • >= 3.10.5, < 4.15.0 4.15.0
  • >= 5.0.0-rc.0, < 5.0.0-rc.14 5.0.0-rc.14

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