# CVE-2026-80218: Sign-in token minted for one resource accepted by another in AshAuthentication

- Severity: High 7.6 (CVSS:4.0, scored by EEF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.45%, higher than 41% of CVEs (2026-12-01)
- Published: 2026-09-17T13:09:25.585Z
- Modified: 2026-11-25T06:31:02.977Z
- Also known as: EEF-CVE-2026-80218, GHSA-3pr8-f99q-86hp
- Weaknesses: CWE-287
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: EEF

## Description

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.

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.

This 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.

(As written by CVE List.)

## Affected

- ash_authentication: from 3.10.5 before 4.15.0; from 5.0.0-rc.0 before 5.0.0-rc.14
- team-alembic/ash_authentication: from eca8cadea0f1595ed2c10a0c177b1da9aa9e5269 before *
- ash_authentication (Hex): from 3.10.5 before 4.15.0; from 5.0.0-rc.0 before 5.0.0-rc.14
- https://github.com/team-alembic/ash_authentication: from eca8cadea0f1595ed2c10a0c177b1da9aa9e5269 before 2640e1872e1fef4e4606e601bf00102cff784c03; before 7baac243ca651eee127a84d672eee3fcff42e598

## Every score

- EEF: CVSS:4.0 7.6 High `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`
- Erlang Ecosystem Foundation: CVSS:4.0 `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`

## References

- <https://github.com/team-alembic/ash_authentication/security/advisories/GHSA-3pr8-f99q-86hp> (advisory, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-80218.html> (related, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-80218> (related)
- <https://github.com/team-alembic/ash_authentication/commit/eca8cadea0f1595ed2c10a0c177b1da9aa9e5269> (related, web)
- <https://github.com/team-alembic/ash_authentication/commit/2640e1872e1fef4e4606e601bf00102cff784c03> (fix, patch)
- <https://github.com/team-alembic/ash_authentication/commit/7baac243ca651eee127a84d672eee3fcff42e598> (fix, patch)
- <https://hex.pm/packages/ash_authentication> (package)

## Sources

- CVE List: [CVE-2026-80218](https://www.cve.org/CVERecord?id=CVE-2026-80218), CVE Terms of Use, modified 2026-11-19
- Erlang Ecosystem Foundation: [EEF-CVE-2026-80218](https://osv.dev/vulnerability/EEF-CVE-2026-80218), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2026-80218](https://nvd.nist.gov/vuln/detail/CVE-2026-80218), Public domain, modified 2026-09-18

---

Page: https://cve.day/CVE-2026-80218 · Whole record: https://cve.day/CVE-2026-80218.json · Rebuilt by cve.day 2026-11-25T22:59:39.231Z
