# CVE-2026-49757: OAuth2/OIDC account takeover in AshAuthentication via email-based user matching

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

- **Severity:** CRITICAL 9.2
- **CVSS:** 9.2 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/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: High; 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.74% (percentile 51, 2026-11-26)
- **CWE:** CWE-290
- **Published:** 2026-06-15T10:07:17.781Z
- **Modified:** 2026-11-20T09:20:12.970Z

## Who should check

- Anyone running team-alembic ash\_authentication \>= 0.6.0, \< 4.14.0; \>= 5.0.0-rc.0, \< 5.0.0-rc.10
- Anyone running team-alembic ash\_authentication \>= c5f589058e04239263f50a1430eb17ea6d5dd1a2, \< \*

## Description

Authentication Bypass by Spoofing vulnerability in team-alembic AshAuthentication allows account takeover of local users via OAuth2/OIDC sign-in.

AshAuthentication's OAuth2 and OIDC family strategies matched the local user by email address (an upsert on the email field, or a user-defined sign-in filter) rather than by the OpenID Connect iss/sub claim combination. Per OpenID Connect Core §5.7, only iss/sub uniquely and stably identifies an end-user; other claims, including email, MUST NOT be used as unique identifiers.

A provider login presenting a victim's email, including an unverified email, a reused email, or an account with email\_verified: false, resolved to and signed in as the victim's existing local account. An unauthenticated attacker who can register an account on any accepted OAuth provider with the victim's email (or who benefits from provider-side email reuse or reclamation) obtains the victim's full local privileges.

The fix resolves users by the (strategy, sub) identity stored in a user identity resource, and only links a new sub to an existing local account by email when the provider's email\_verified claim is trusted (trust\_email\_verified?).

This issue affects ash\_authentication: from 0.6.0 before 4.14.0 and from 5.0.0-rc.0 before 5.0.0-rc.10.

## Affected and fixed versions

- team-alembic ash\_authentication: \>= 0.6.0, \< 4.14.0; \>= 5.0.0-rc.0, \< 5.0.0-rc.10 (cvelist)
- team-alembic ash\_authentication: \>= c5f589058e04239263f50a1430eb17ea6d5dd1a2, \< \* (cvelist)

## Mitigation

- Upgrade ash\_authentication to 5.0.0-rc.10 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-49757. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-49757.md
Affected: team-alembic ash_authentication >= 0.6.0, < 4.14.0; >= 5.0.0-rc.0, < 5.0.0-rc.10; team-alembic ash_authentication >= c5f589058e04239263f50a1430eb17ea6d5dd1a2, < *
Fixed in: team-alembic ash_authentication 4.14.0, team-alembic ash_authentication 5.0.0-rc.10

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-49757 being exploited?

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

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

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

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

team-alembic ash\_authentication \>= 0.6.0, \< 4.14.0; \>= 5.0.0-rc.0, \< 5.0.0-rc.10; team-alembic ash\_authentication \>= c5f589058e04239263f50a1430eb17ea6d5dd1a2, \< \*.

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

Yes. Fixed in team-alembic ash\_authentication 4.14.0, team-alembic ash\_authentication 5.0.0-rc.10. Upgrade ash\_authentication to 5.0.0-rc.10 or later.

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

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-777c-2fxx-qr28>
- patch: <https://github.com/team-alembic/ash_authentication/commit/c5f589058e04239263f50a1430eb17ea6d5dd1a2>
- patch: <https://github.com/team-alembic/ash_authentication/commit/64530644f9b37ebb76ca14aeb83a77597a0034b7>
- patch: <https://github.com/team-alembic/ash_authentication/commit/728b8d28c1b5f465fa1116ef044a815300fc733d>
- other: <https://cna.erlef.org/cves/CVE-2026-49757.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-49757>

## 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-49757>

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