CVE-2026-92161 FriendsOfFlarum OAuth: Unauthenticated account takeover via unverified email trust in Discord OAuth provider
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: total
- Technology
- PHP
Description
FriendsOfFlarum OAuth allows users to log in to Flarum with GitHub, Twitter, Facebook, and other providers. Prior to 1.7.4 and 2.0.0-beta.4, the Discord OAuth provider does not check the verified field returned for an OAuth email before passing the address to Flarum core as trusted through provideTrustedEmail(). When Discord sign-in is enabled, an unauthenticated attacker who knows the email address of a Flarum user can configure a Discord account with that unverified address and a verified phone number, then sign in to cause Flarum to match the trusted address, link the attacker-controlled Discord identity to the existing user, and authenticate as the victim without a password or victim interaction. Exploitation requires that the victim's email address is not already associated with a Discord account, and it can compromise administrator accounts. Other bundled providers were not confirmed to be practically exploitable by this method because their relevant authentication flows return only verified or confirmed email addresses. This issue is fixed in versions 1.7.4 and 2.0.0-beta.4.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| fof/oauth(Packagist) | < 1.7.4; = 0.1.0; = 0.2.0; = 0.2.1 +48 more | 1.7.4, 2.0.0-beta.4 | Fixed |
| FriendsOfFlarum oauth | = < 1.7.4; = >= 2.0.0-beta.1, < 2.0.0-beta.4 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| fof/oauth(Packagist) | < 1.7.4 | 1.7.4 |
| fof/oauth(Packagist) | = 0.1.0 | No fix listed |
| fof/oauth(Packagist) | = 0.2.0 | No fix listed |
| fof/oauth(Packagist) | = 0.2.1 | No fix listed |
| fof/oauth(Packagist) | = 0.3.0 | No fix listed |
| fof/oauth(Packagist) | = 1.0.0 | No fix listed |
| fof/oauth(Packagist) | = 1.0.1 | No fix listed |
| fof/oauth(Packagist) | = 1.0.2 | No fix listed |
| fof/oauth(Packagist) | = 1.1.0 | No fix listed |
| fof/oauth(Packagist) | = 1.1.1 | No fix listed |
| fof/oauth(Packagist) | = 1.2.0 | No fix listed |
| fof/oauth(Packagist) | = 1.2.1 | No fix listed |
| fof/oauth(Packagist) | = 1.2.2 | No fix listed |
| fof/oauth(Packagist) | = 1.2.3 | No fix listed |
| fof/oauth(Packagist) | = 1.2.4 | No fix listed |
| fof/oauth(Packagist) | = 1.2.5 | No fix listed |
| fof/oauth(Packagist) | = 1.3.0 | No fix listed |
| fof/oauth(Packagist) | = 1.3.1 | No fix listed |
| fof/oauth(Packagist) | = 1.3.2 | No fix listed |
| fof/oauth(Packagist) | = 1.4.0 | No fix listed |
| fof/oauth(Packagist) | = 1.4.1 | No fix listed |
| fof/oauth(Packagist) | = 1.4.2 | No fix listed |
| fof/oauth(Packagist) | = 1.4.3 | No fix listed |
| fof/oauth(Packagist) | = 1.4.4 | No fix listed |
| fof/oauth(Packagist) | = 1.5.0 | No fix listed |
Show 29 more
| Product | Affected versions | Fixed in |
|---|---|---|
| fof/oauth(Packagist) | = 1.5.1 | No fix listed |
| fof/oauth(Packagist) | = 1.5.2 | No fix listed |
| fof/oauth(Packagist) | = 1.5.3 | No fix listed |
| fof/oauth(Packagist) | = 1.5.4 | No fix listed |
| fof/oauth(Packagist) | = 1.6.1 | No fix listed |
| fof/oauth(Packagist) | = 1.6.10 | No fix listed |
| fof/oauth(Packagist) | = 1.6.11 | No fix listed |
| fof/oauth(Packagist) | = 1.6.12 | No fix listed |
| fof/oauth(Packagist) | = 1.6.13 | No fix listed |
| fof/oauth(Packagist) | = 1.6.14 | No fix listed |
| fof/oauth(Packagist) | = 1.6.16 | No fix listed |
| fof/oauth(Packagist) | = 1.6.2 | No fix listed |
| fof/oauth(Packagist) | = 1.6.3 | No fix listed |
| fof/oauth(Packagist) | = 1.6.4 | No fix listed |
| fof/oauth(Packagist) | = 1.6.5 | No fix listed |
| fof/oauth(Packagist) | = 1.6.6 | No fix listed |
| fof/oauth(Packagist) | = 1.6.7 | No fix listed |
| fof/oauth(Packagist) | = 1.6.8 | No fix listed |
| fof/oauth(Packagist) | = 1.6.9 | No fix listed |
| fof/oauth(Packagist) | = 1.7.0 | No fix listed |
| fof/oauth(Packagist) | = 1.7.1 | No fix listed |
| fof/oauth(Packagist) | = 1.7.2 | No fix listed |
| fof/oauth(Packagist) | = 1.7.3 | No fix listed |
| fof/oauth(Packagist) | >= 2.0.0-beta.1, < 2.0.0-beta.4 | 2.0.0-beta.4 |
| fof/oauth(Packagist) | = 2.0.0-beta.1 | No fix listed |
| fof/oauth(Packagist) | = 2.0.0-beta.2 | No fix listed |
| fof/oauth(Packagist) | = 2.0.0-beta.3 | No fix listed |
| FriendsOfFlarum oauth | = < 1.7.4 | No fix listed |
| FriendsOfFlarum oauth | = >= 2.0.0-beta.1, < 2.0.0-beta.4 | No fix listed |
References
- https://github.com/FriendsOfFlarum/oauth/security/advisories/GHSA-g7vj-c29h-3h5m vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/FriendsOfFlarum/oauth/commit/baca3466b3b7be51c70a7e0ba966901aefeb344a patch
- https://github.com/FriendsOfFlarum/oauth/commit/bb4bf376832e6bb68c579715d2a4b5a92c4a2567 patch
- github.com product
- https://github.com/FriendsOfFlarum/oauth/releases/tag/1.7.4
- https://github.com/FriendsOfFlarum/oauth/releases/tag/2.0.0-beta.4
- github.com
- ENISA EUVD EUVD-2026-87140 third-party-advisory