SEVERITY NOT PROVIDED · CVSS 4.0 EPSS 0.7% · 48th percentile CWE-307

CVE-2026-118505: AshAuthentication brute_force_strategy does not limit sign-in and request actions defined on the resource

Published 2026-11-03 · Updated 2026-11-25 · Also known as EEF-CVE-2026-118505, GHSA-55gf-3263-4r39

Summary

An improper restriction of excessive authentication attempts vulnerability in ash_authentication allows unauthenticated attackers to guess passwords and one-time passwords without limits. Maintainers of applications using affected versions of the ash_authentication package should update immediately.

Who is affected

Deployments using ash_authentication between versions 5.0.0-rc.4 and 5.0.0-rc.16 are affected if they use password, magic link, or OTP strategies where protected actions are defined directly on the resource without the brute-force preparation. This allows an unauthenticated attacker to bypass brute-force mitigation and perform unlimited password or OTP guessing attempts, potentially leading to unauthorized account access.

Exploitability

The vulnerability can be exploited over the network with low attack complexity and low privileges required, needing no user interaction. It impacts low confidentiality and integrity. The current EPSS score is 0.006 (482nd percentile) and it is not listed in the CISA Known Exploited Vulnerabilities catalog.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-25. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
Hex ash_authentication >= 5.0.0-rc.4, < 5.0.0-rc.16 5.0.0-rc.16 mix deps.update ash_authentication

CVSS 4.0 vector

CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Attack vectorNetwork
Attack complexityLow
Attack requirementsPresent
Privileges requiredNone
User interactionNone
Confidentiality (vulnerable system)Low
Integrity (vulnerable system)Low
Availability (vulnerable system)None
Confidentiality (subsequent systems)None
Integrity (subsequent systems)None
Availability (subsequent systems)None

Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.

FAQ

Which package is affected by CVE-2026-118505?

The Hex package ash_authentication is affected.

What versions contain the fix for this vulnerability?

Version 5.0.0-rc.16 and later fix the vulnerability.

Is this vulnerability currently being actively exploited in the wild?

No, CISA KEV status is no, meaning active exploitation has not been documented.

Original advisory description
## Summary Improper Restriction of Excessive Authentication Attempts vulnerability in team-alembic ash_authentication allows an unauthenticated attacker to guess passwords and one-time passwords without limit. The password, magic link and OTP strategies enforce `brute_force_strategy` by adding a preparation only to the actions they generate. When the resource defines one of those actions itself, the strategy uses it as written and nothing checked that it carried the preparation, so the setting compiled and applied no limit. The generators produce exactly this: `mix ash_authentication.install` writes `sign_in_with_password`, `request_password_reset_token` and `request_magic_link`, `mix ash_authentication.upgrade` then adds `brute_force_strategy` to those strategies, and `mix ash_authentication.add_strategy.otp` writes its OTP actions without the preparation. Separately, with `registration_enabled? true` the OTP sign-in is a create action, which preparations do not run on, so `brute_force_strategy {:preparation, module}` never applied to it. This issue affects ash_authentication: from 5.0.0-rc.4 before 5.0.0-rc.16. ## Workarounds Add the brute-force preparation to each protected action defined on the resource, or remove the action so the strategy generates it. For `brute_force_strategy {:audit_log, name}` that is `prepare {AshAuthentication.AddOn.AuditLog.IdentityBruteForcePreparation, action_name: <action>}` on the password sign-in, password reset request, magic link request and OTP request actions, and `prepare {AshAuthentication.AddOn.AuditLog.BruteForcePreparation, action_name: <action>}` on a read OTP sign-in action. For `{:preparation, MyModule}` it is `prepare MyModule`. For OTP with `registration_enabled? true`, switch to `brute_force_strategy :rate_limit`. ## Configurations A password, magic link or OTP strategy sets `brute_force_strategy` and one of its protected actions (password sign-in, password reset request, magic link request, OTP sign-in or OTP request) is defined on the resource without the matching brute-force preparation, as on resources set up by the installer, the upgrade task or the OTP generator. Alternatively, an OTP strategy sets `registration_enabled? true` with `brute_force_strategy {:preparation, module}`. Actions the strategies generate themselves, and the OTP strategy's `:rate_limit` mode, are not affected.

References

Source records: EEF-CVE-2026-118505 (OSV.dev) · EPSS by FIRST, 2026-11-26.