{"id":"CVE-2026-80218","aliases":["CVE-2026-80218","EEF-CVE-2026-80218","GHSA-3pr8-f99q-86hp"],"related":[],"kind":"vulnerability","state":"published","title":"Sign-in token minted for one resource accepted by another in AshAuthentication","summary":"Improper Authentication vulnerability in team-alembic AshAuthentication allows an attacker holding a sign-in token for one authenticated resource to be signed in as a user of a different resource.\n\nAshAuthentication.Strategy.Password.SignInWithTokenPreparation.extract_primary_keys_from_subject/2 parses the JWT sub claim (for example user?id=1) with URI.parse/1 and keeps only its query string, discarding the path segment that names the subject the token was issued for. Nothing else restores that binding: AshAuthentication.Jwt.verify/3 checks the signature, exp, nbf, jti and the library-version claims, the purpose check only requires sign_in, and the remaining comparison is over primary-key field names, which are identical across resources. The WebAuthn sign-in and remember-me preparations carry copies of the same helper and drop the path in the same way. The magic link sign-in path pins the subject name against the resource and is not affected.\n\nThis issue affects ash_authentication: from 3.10.5 before 4.15.0 and from 5.0.0-rc.0 before 5.0.0-rc.14.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Improper Authentication vulnerability in team-alembic AshAuthentication allows an attacker holding a sign-in token for one authenticated resource to be signed in as a user of a different resource.\n\nAshAuthentication.Strategy.Password.SignInWithTokenPreparation.extract_primary_keys_from_subject/2 parses the JWT sub claim (for example user?id=1) with URI.parse/1 and keeps only its query string, discarding the path segment that names the subject the token was issued for. Nothing else restores that binding: AshAuthentication.Jwt.verify/3 checks the signature, exp, nbf, jti and the library-version claims, the purpose check only requires sign_in, and the remaining comparison is over primary-key field names, which are identical across resources. The WebAuthn sign-in and remember-me preparations carry copies of the same helper and drop the path in the same way. The magic link sign-in path pins the subject name against the resource and is not affected.\n\nThis issue affects ash_authentication: from 3.10.5 before 4.15.0 and from 5.0.0-rc.0 before 5.0.0-rc.14.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nImproper Authentication vulnerability in team-alembic AshAuthentication allows an attacker holding a sign-in token for one authenticated resource to be signed in as a user of a different resource.\n\n`AshAuthentication.Strategy.Password.SignInWithTokenPreparation.extract_primary_keys_from_subject/2` parses the JWT `sub` claim (for example `user?id=1`) with `URI.parse/1` and keeps only its query string, discarding the path segment that names the subject the token was issued for. Nothing else restores that binding: `AshAuthentication.Jwt.verify/3` checks the signature, `exp`, `nbf`, `jti` and the library-version claims, the purpose check only requires `sign_in`, and the remaining comparison is over primary-key field names, which are identical across resources. The WebAuthn sign-in and remember-me preparations carry copies of the same helper and drop the path in the same way. The magic link sign-in path pins the subject name against the resource and is not affected.\n\nThis issue affects ash_authentication: from 3.10.5 before 4.15.0 and from 5.0.0-rc.0 before 5.0.0-rc.14.","format":"markdown","source":"eef"}],"published":"2026-09-17T13:09:25.585Z","modified":"2026-11-25T06:31:02.977Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"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","score":7.6,"rating":"HIGH"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"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","score":7.6,"rating":"HIGH"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-287"],"affected":[{"ranges":[{"type":"semver","introduced":"3.10.5","fixed":"4.15.0","status":"affected"},{"type":"semver","introduced":"5.0.0-rc.0","fixed":"5.0.0-rc.14","status":"affected"}],"vendor":"team-alembic","product":"ash_authentication","package":"ash_authentication","cpe":"cpe:2.3:a:team-alembic:ash_authentication:*:*:*:*:*:*:*:*","repo":"https://github.com/team-alembic/ash_authentication","source":"cvelist"},{"ranges":[{"type":"git","introduced":"eca8cadea0f1595ed2c10a0c177b1da9aa9e5269","fixed":"*","status":"affected"}],"vendor":"team-alembic","product":"ash_authentication","package":"team-alembic/ash_authentication","cpe":"cpe:2.3:a:team-alembic:ash_authentication:*:*:*:*:*:*:*:*","repo":"https://github.com/team-alembic/ash_authentication","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"3.10.5","status":"affected","fixed":"4.15.0"},{"type":"semver","introduced":"5.0.0-rc.0","status":"affected","fixed":"5.0.0-rc.14"}],"ecosystem":"Hex","package":"ash_authentication","purl":"pkg:hex/ash_authentication","source":"eef"},{"ranges":[{"type":"git","introduced":"eca8cadea0f1595ed2c10a0c177b1da9aa9e5269","status":"affected","fixed":"2640e1872e1fef4e4606e601bf00102cff784c03"},{"type":"git","status":"affected","fixed":"7baac243ca651eee127a84d672eee3fcff42e598"}],"repo":"https://github.com/team-alembic/ash_authentication","source":"eef"}],"references":[{"url":"https://github.com/team-alembic/ash_authentication/security/advisories/GHSA-3pr8-f99q-86hp","tags":["advisory","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-80218.html","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-80218","tags":["related"],"sources":["cvelist","nvd"]},{"url":"https://github.com/team-alembic/ash_authentication/commit/eca8cadea0f1595ed2c10a0c177b1da9aa9e5269","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/team-alembic/ash_authentication/commit/2640e1872e1fef4e4606e601bf00102cff784c03","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/team-alembic/ash_authentication/commit/7baac243ca651eee127a84d672eee3fcff42e598","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://hex.pm/packages/ash_authentication","tags":["package"],"sources":["eef"]}],"credits":["Peter Ullrich","Jonatan Männchen / EEF","James Harton"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-09-17T18:28:40.896Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-80218","url":"https://www.cve.org/CVERecord?id=CVE-2026-80218","licence":"CVE Terms of Use","modified":"2026-11-19T08:30:32.329Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-80218","url":"https://osv.dev/vulnerability/EEF-CVE-2026-80218","licence":"CC-BY-4.0","modified":"2026-11-25T06:31:02.977Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-80218","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-80218","licence":"Public domain","modified":"2026-09-18T18:16:18.527Z"}],"updatedAt":"2026-11-25T22:59:39.231Z","epss":{"score":0.00454,"percentile":0.41098,"date":"2026-12-01T12:00:22.000Z"}}