FriendsOfFlarum OAuth: Unauthenticated account takeover via unverified email trust in Discord OAuth provider
Critical severity. Published 25 September 2026. Update fof/oauth to the fixed version of your branch (1.7.4, 2.0.0-beta.4): composer update fof/oauth.
Which versions are affected?
| Package | Affected versions | Fixed in |
|---|---|---|
| fof/oauth (opens in a new tab) | < 1.7.4 | >= 2.0.0-beta.1, < 2.0.0-beta.4 | 1.7.4, 2.0.0-beta.4 |
What should you do?
Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:
composer show fof/oauth
composer auditAdvisory details
| Severity | CriticalCVSS 9.8 |
|---|---|
| Published | |
| Updated | |
| CVE | CVE-2026-92161 (opens in a new tab) |
| GHSA | GHSA-g7vj-c29h-3h5m (opens in a new tab) |
| Weakness | CWE-345 |
What the advisory says
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.
Source: GHSA-g7vj-c29h-3h5m (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .