{"id":"CVE-2026-118505","kind":"vulnerability","aliases":["CVE-2026-118505"],"related":[],"title":"ash_authentication: brute-force protection silently not applied to sign-in","description":"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.\n\nThe 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.\n\nThis issue affects ash_authentication: from 5.0.0-rc.4 before 5.0.0-rc.16.","summary":"ash_authentication is an Elixir authentication library for the Ash framework. Its brute-force limit setting did not apply to password, magic link and one-time password sign-in actions that a resource defines itself, so an unauthenticated attacker can guess passwords and codes without limit.","severity":"medium","cvss":6.3,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["ash-framework","ash_authentication","authentication","elixir","package"],"not_affected_if":["no-brute-force-strategy","outside-affected-range"],"how_to_check":"- Check the `ash_authentication` version in `mix.lock` or `mix.exs`; affected versions are from `5.0.0-rc.4` before `5.0.0-rc.16`.\n- Search the resource modules for `brute_force_strategy` and for hand-written sign-in, reset or OTP actions that do not carry the brute-force preparation.\n- If the project used `mix ash_authentication.install` or `add_strategy.otp`, review the generated actions.","fix":"- `ash_authentication`: upgrade to `5.0.0-rc.16` or later (affected range is `5.0.0-rc.4` before `5.0.0-rc.16`).","status":"open","published_at":"2026-11-03T16:17:20+00:00","first_seen_at":"2026-11-03T16:21:42+00:00","triaged_at":"2026-11-03T16:24:12+00:00","updated_at":"2026-11-03T16:24:12+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-11-03T16:24:12Z","model":"claude-haiku-5-5","output":{"fix":"- `ash_authentication`: upgrade to `5.0.0-rc.16` or later (affected range is `5.0.0-rc.4` before `5.0.0-rc.16`).","reach":"internet","title":"ash_authentication: brute-force protection silently not applied to sign-in","impact":"medium","summary":"ash_authentication is an Elixir authentication library for the Ash framework. Its brute-force limit setting did not apply to password, magic link and one-time password sign-in actions that a resource defines itself, so an unauthenticated attacker can guess passwords and codes without limit.","audience":"developers","category":"package","nicknames":[],"who_cares":["elixir","ash-framework","ash_authentication","authentication"],"confidence":0.8,"fix_status":"available","needs_auth":"no","worst_case":"unauthenticated attacker guesses passwords and one-time codes without limit","analyst_note":"","how_to_check":"- Check the `ash_authentication` version in `mix.lock` or `mix.exs`; affected versions are from `5.0.0-rc.4` before `5.0.0-rc.16`.\n- Search the resource modules for `brute_force_strategy` and for hand-written sign-in, reset or OTP actions that do not carry the brute-force preparation.\n- If the project used `mix ash_authentication.install` or `add_strategy.otp`, review the generated actions.","plain_action":"","needs_analyst":false,"not_affected_if":["outside-affected-range","no-brute-force-strategy"],"who_is_affected":"Applications built on ash_authentication 5.0.0-rc.4 up to but not including 5.0.0-rc.16 that use brute_force_strategy, especially where resources define their own password, magic link or OTP actions, or enable registration with OTP sign-in. Apps that do not use brute_force_strategy or that rely on the generated actions only are the most exposed; the sources do not say whether other configurations are safe.","user_interaction":"no","needs_special_setup":"yes","severity_if_unknown":"medium"},"cost_usd":0.000795,"input_tokens":4435,"output_tokens":702,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-118505':15A,18A '-2026':14A,17A '5.0.0':231C,234C 'action':59B,121C,131C,191C,208C 'add':115C,178C 'affect':227C 'alemb':86C 'allow':89C 'appli':9A,46B,152C,222C 'ash':1A,20B,22B,27B,36B,87C,228C 'ash-framework':19B 'ash_authentication.add_strategy.otp':187C 'ash_authentication.install':161C 'ash_authentication.upgrade':176C 'attack':68B,92C 'attempt':81C 'authent':2A,23B,24B,28B,32B,80C,88C,229C 'brute':4A,40B,111C,179C,216C 'brute-forc':3A,39B 'carri':144C 'check':141C 'code':73B 'compil':150C 'creat':207C 'cve':13A,16A 'defin':63B,127C 'elixir':25B,31B 'enabl':198C 'enforc':110C 'exact':158C 'excess':79C 'forc':5A,41B,112C,180C,217C 'framework':21B,37B 'generat':123C,156C 'guess':70B,94C 'improp':76C 'issu':226C 'librari':33B 'limit':42B,75B,102C,154C 'link':50B,106C,174C 'magic':49B,105C,173C 'mix':160C,175C,186C 'modul':220C 'never':221C 'noth':140C 'one':53B,98C,128C 'one-tim':52B,97C 'otp':108C,190C,201C 'packag':26B 'password':48B,55B,71B,95C,100C,104C,166C,168C 'prepar':117C,146C,194C,210C,219C 'produc':157C 'protect':6A 'rc.16':235C 'rc.4':232C 'registr':197C 'request':167C,172C 'reset':169C 'resourc':62B,126C 'restrict':77C 'run':213C 'separ':195C 'set':43B,149C 'sign':12A,57B,163C,203C 'sign-in':11A,56B,202C 'silent':7A 'strategi':109C,113C,134C,181C,184C,218C 'team':85C 'team-alemb':84C 'time':54B,99C 'token':170C 'true':199C 'unauthent':67B,91C 'use':135C 'vulner':82C 'without':74B,101C,192C 'write':162C,188C 'written':138C","nicknames":[],"mitigations":[],"who_affected":"Applications built on ash_authentication 5.0.0-rc.4 up to but not including 5.0.0-rc.16 that use brute_force_strategy, especially where resources define their own password, magic link or OTP actions, or enable registration with OTP sign-in. Apps that do not use brute_force_strategy or that rely on the generated actions only are the most exposed; the sources do not say whether other configurations are safe.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":[],"ptokens":[],"labels":["ashauthentication","ashframework","authentication","elixir","medium","package"],"campaign_type":null,"first_public_at":"2026-11-03T15:31:09+00:00","kev":null,"cvss_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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-118505","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-118505","severity":null,"published_at":"2026-11-03T16:17:20+00:00","modified_at":"2026-11-03T16:17:20+00:00","first_seen_at":"2026-11-03T16:21:42+00:00","fetched_at":"2026-11-03T16:21:42+00:00","note":null}],"documents":[{"id":58801,"url":"https://github.com/team-alembic/ash_authentication/commit/7117b5da5b73ee4cdb372e4adfbaff409b527125","title":"Patch: github.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":58802,"url":"https://github.com/team-alembic/ash_authentication/commit/800caa0d4a5bee1f28ad427f4c12fab72003a577","title":"Patch: github.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":58803,"url":"https://github.com/team-alembic/ash_authentication/security/advisories/GHSA-55gf-3263-4r39","title":"Vendor advisory: github.com","kind":"vendor","source":"nvd","publisher":"vendor","text":null,"published_at":"2026-11-03T15:31:09+00:00","relation":"advisory","confidence":null,"note":"Vendor advisory: github.com"}],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}