Summary
CVE-2026-92161 is a critical (CVSS 9.8) unauthenticated account takeover vulnerability in the FriendsOfFlarum oauth extension for the Flarum forum platform, caused by insufficient verification of data authenticity (CWE-345) in its Discord OAuth provider. When Discord login is enabled, an attacker can hijack any Flarum account — including administrator accounts — simply by knowing the victim’s email address, without needing the victim’s password or any interaction from them.
Technical details
- Root cause: the Discord OAuth provider in
fof/oauthpassed the email address returned by Discord to Flarum core viaprovideTrustedEmail()without checking Discord’sverifiedflag on that email. - Discord allows an account to hold an unverified email address as long as the account’s phone number has been verified, so an attacker can register a Discord account using a victim’s known email without ever proving ownership of it.
- Attack flow: the attacker (1) registers/uses a Discord account with the victim’s email and a verified phone number, (2) initiates "Sign in with Discord" on the target Flarum instance, and (3) Flarum core, trusting the unverified email as authenticated, matches it to the victim’s existing Flarum account and logs the attacker in as that user.
- Attack vector is network-based, requires no privileges and no user interaction (AV:N/AC:L/PR:N/UI:N), and works only if the Discord OAuth provider is enabled on the vulnerable Flarum forum.
- Impact: full compromise of confidentiality, integrity, and availability of the affected forum account, since the attack bypasses local passwords and any account-level MFA by operating directly at the authentication/identity-linking layer; administrator account takeover leads to full forum compromise.
Affected software
fof/oauth(FriendsOfFlarum OAuth extension for Flarum) versions 1.7.3 and earlierfof/oauthversions 2.0.0-beta.1 through 2.0.0-beta.3- Only installations with the Discord OAuth provider enabled are exploitable.
Severity
- CVSS v3.1 Base Score: 9.8 (Critical)
- Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate: upgrade
fof/oauthto 1.7.4 (for 1.x installs) or 2.0.0-beta.4 (for 2.0 beta installs), both of which validate the Discord email verification flag before trusting the address. - If unable to patch immediately: disable the Discord OAuth provider in the extension’s settings until the upgrade can be applied.
- After upgrading, review recent account logins/linked Discord identities for signs of unauthorized access, particularly on administrator accounts.

