# CVE-2026-91039: dynamic\_oidc identities are not namespaced by connection in ash\_authentication, allowing cross-connection account takeover

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.1
- **CVSS:** 9.1 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: None; Confidentiality impact: High; Integrity impact: High; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.66% (percentile 47, 2026-11-30)
- **CWE:** CWE-290
- **Published:** 2026-09-17T15:19:15.994Z
- **Modified:** 2026-11-19T08:28:12.203Z

## Who should check

- Anyone running team-alembic ash\_authentication \>= 5.0.0-rc.10, \< 5.0.0-rc.14
- Anyone running team-alembic ash\_authentication \>= 64530644f9b37ebb76ca14aeb83a77597a0034b7, \< 73ad16e452670bbf843550a13361bd41e72ad964

## Description

Authentication Bypass by Spoofing vulnerability in team-alembic ash\_authentication allows an attacker who operates one identity-provider connection of a dynamic\_oidc strategy to be signed in as a local user established through a different connection.

The strategy is meant to keep each connection in its own identity namespace by writing every UserIdentity row's strategy field as "\<name\>/\<connection\_id\>", but that namespacing never takes effect. \_\_connection\_id\_\_ is populated only on the ephemeral runtime struct built per request in dynamic\_oidc/plug.ex, and DynamicOidc.IdentityChange.change/3 re-fetches the strategy from the compile-time DSL through Info.strategy\_for\_action, yielding the persisted struct whose \_\_connection\_id\_\_ is its defstruct default of nil. OAuth2.identity\_strategy\_name/1 therefore falls back to the bare strategy name for both the identity write and the reads in oauth2/user\_resolver.ex and oauth2/sign\_in\_preparation.ex. Since the identity resource's unique key is (uid, strategy), one row exists per sub across every connection, and the identity-match branch runs before any email check. Neither strategy handles iss, so nothing else distinguishes the issuers: OpenID Connect Core section 5.7 makes sub unique only within an issuer, so two connections numbering subjects independently share one subject space.

This issue affects ash\_authentication: from 5.0.0-rc.10 before 5.0.0-rc.14.

## Affected and fixed versions

- team-alembic ash\_authentication: \>= 5.0.0-rc.10, \< 5.0.0-rc.14 (cvelist)
- team-alembic ash\_authentication: \>= 64530644f9b37ebb76ca14aeb83a77597a0034b7, \< 73ad16e452670bbf843550a13361bd41e72ad964 (cvelist)

## Mitigation

- Upgrade ash\_authentication to 5.0.0-rc.14 or later.
- Upgrade ash\_authentication to 73ad16e452670bbf843550a13361bd41e72ad964 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-91039. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-91039.md
Affected: team-alembic ash_authentication >= 5.0.0-rc.10, < 5.0.0-rc.14; team-alembic ash_authentication >= 64530644f9b37ebb76ca14aeb83a77597a0034b7, < 73ad16e452670bbf843550a13361bd41e72ad964
Fixed in: team-alembic ash_authentication 5.0.0-rc.14, team-alembic ash_authentication 73ad16e452670bbf843550a13361bd41e72ad964

Steps:
1. Search this machine and project for team-alembic ash_authentication: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-91039 being exploited?

There is no confirmed exploitation: CVE-2026-91039 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.66% chance of exploitation in the next 30 days (as of 2026-11-30).

### How serious is CVE-2026-91039?

Critical: CVSS 9.1 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-91039?

team-alembic ash\_authentication \>= 5.0.0-rc.10, \< 5.0.0-rc.14; team-alembic ash\_authentication \>= 64530644f9b37ebb76ca14aeb83a77597a0034b7, \< 73ad16e452670bbf843550a13361bd41e72ad964.

### Is there a fix for CVE-2026-91039?

Yes. Fixed in team-alembic ash\_authentication 5.0.0-rc.14, team-alembic ash\_authentication 73ad16e452670bbf843550a13361bd41e72ad964. Upgrade ash\_authentication to 5.0.0-rc.14 or later. Upgrade ash\_authentication to 73ad16e452670bbf843550a13361bd41e72ad964 or later.

### How do I check if I'm affected by CVE-2026-91039?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/team-alembic/ash_authentication/security/advisories/GHSA-73j9-m294-fvv9>
- patch: <https://github.com/team-alembic/ash_authentication/commit/64530644f9b37ebb76ca14aeb83a77597a0034b7>
- patch: <https://github.com/team-alembic/ash_authentication/commit/73ad16e452670bbf843550a13361bd41e72ad964>
- other: <https://cna.erlef.org/cves/CVE-2026-91039.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-91039>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-91039>

HTML: <https://flawdb.com/CVE-2026-91039> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-91039>
