FriendsOfFlarum OAuth: Unauthenticated account takeover via unverified email trust in Discord OAuth provider
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-345.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| FriendsOfFlarum | oauth | before 1.7.4; 2.0.0-beta.1 to before 2.0.0-beta.4 | 1.7.4, 2.0.0-beta.4 | Patch available | CNA |
| — | fof/oauth (Packagist) | before 1.7.4 | 1.7.4 | Patch available | GHSA-g7vj-c29h-3h5m |
| — | fof/oauth (Packagist) | 2.0.0-beta.1 to before 2.0.0-beta.4 | 2.0.0-beta.4 | Patch available | GHSA-g7vj-c29h-3h5m |
- oauth VendorFriendsOfFlarum Affected before 1.7.4; 2.0.0-beta.1 to before 2.0.0-beta.4 Fixed in 1.7.4, 2.0.0-beta.4 Patch available CNA
- fof/oauth (Packagist) Vendor— Affected before 1.7.4 Fixed in 1.7.4 Patch available GHSA-g7vj-c29h-3h5m
- fof/oauth (Packagist) Vendor— Affected 2.0.0-beta.1 to before 2.0.0-beta.4 Fixed in 2.0.0-beta.4 Patch available GHSA-g7vj-c29h-3h5m
Remediation
- Fix · CNA oauth (FriendsOfFlarum) Fixed in 1.7.4, 2.0.0-beta.4
- Fix · GHSA-g7vj-c29h-3h5m fof/oauth (Packagist) Fixed in 1.7.4 Advisory →
- Fix · GHSA-g7vj-c29h-3h5m fof/oauth (Packagist) Fixed in 2.0.0-beta.4 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-92161
- 2026-10-03 Alias added: GHSA-g7vj-c29h-3h5m
References
Other 6
- https://github.com/FriendsOfFlarum/oauth/security/advisories/GHSA-g7vj-c29h-3h5m
- https://github.com/FriendsOfFlarum/oauth/commit/baca3466b3b7be51c70a7e0ba966901aefeb344a
- https://github.com/FriendsOfFlarum/oauth/commit/bb4bf376832e6bb68c579715d2a4b5a92c4a2567
- https://github.com/FriendsOfFlarum/oauth/releases/tag/1.7.4
- https://github.com/FriendsOfFlarum/oauth/releases/tag/2.0.0-beta.4
- https://github.com/FriendsOfFlarum/oauth
More FriendsOfFlarum vulnerabilities
- TI-2022-13045 Possible cross-site scripting attack via unsanitized SVG files in FoF Upload CVSS 3.1HIGH 8.7
- TI-2022-16348 User preference to prevent private discussions not respected in fof/byobu CVSS 3.1MEDIUM 4.3
Sources
- CVE-2026-92161 · CVE Program
- CVE-2026-92161 · NVD
- FIRST EPSS
- GHSA-g7vj-c29h-3h5m · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences