# FriendsOfFlarum OAuth: Unauthenticated account takeover via unverified email trust in Discord OAuth provider

Critical severity, published 2026-09-25. Update fof/oauth to the fixed version of your branch (1.7.4, 2.0.0-beta.4): composer update fof/oauth.

Canonical URL: https://buzzphp.com/security/ghsa-g7vj-c29h-3h5m · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | critical (CVSS 9.8) |
| Published | 2026-09-25 |
| Updated | 2026-09-25 |
| CVE | [CVE-2026-92161](https://nvd.nist.gov/vuln/detail/CVE-2026-92161) |
| GHSA | [GHSA-g7vj-c29h-3h5m](https://github.com/advisories/GHSA-g7vj-c29h-3h5m) |
| Weakness | CWE-345 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| fof/oauth | < 1.7.4 or >= 2.0.0-beta.1, < 2.0.0-beta.4 | 1.7.4, 2.0.0-beta.4 |

## What to do

Update fof/oauth to the fixed version of your branch (1.7.4, 2.0.0-beta.4): composer update fof/oauth.

Check which version you run with `composer show fof/oauth`, and every affected package with `composer audit`.

## About this advisory

Impact

An unauthenticated account takeover vulnerability exists in fof/oauth when the Discord OAuth provider is enabled.

Discord allows an account to use an unverified email address when its phone number has been verified. During OAuth authentication, Discord may return that email address with "verified": false.

Affected versions of fof/oauth did not validate this flag and passed the email address to Flarum core as trusted via provideTrustedEmail(). Flarum core could then match the trusted email address to an existing user, link the attacker-controlled Discord identity to that user, and authenticate the attacker as the victim.



## Links

- [GHSA-g7vj-c29h-3h5m on GitHub](https://github.com/advisories/GHSA-g7vj-c29h-3h5m)
- [CVE-2026-92161 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-92161)
- [All Composer security advisories](https://buzzphp.com/security)
