CVE-2026-92161: FriendsOfFlarum OAuth: Unauthenticated account takeover via unverified email trust in Discord OAuth provider

Published Sep 25, 2026
·
Updated

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.

An attacker who knows a user's email address can therefore take over the corresponding Flarum account without knowing its password or requiring any interaction from the victim. This includes administrator accounts.

Preconditions for exploitation

1. Discord sign-in is enabled on the forum. 2. The victim has a Flarum account with a known email address. 3. The victim's email address is not already associated with a Discord account. 4. The attacker creates or configures a Discord account using the victim's email address without verifying it and verifies a phone number instead. 5. The attacker authenticates to the forum using that Discord account.

The issue is specific to Discord's ability to return an unverified email address through OAuth. Other bundled providers were not confirmed to be practically exploitable through the same method because they only return verified or confirmed email addresses in the relevant authentication flow.

Patched Versions

- 1.7.4 - 2.0.0-beta.4

Workarounds

Administrators who cannot update immediately should disable the Discord OAuth provider in the extension settings.

Credits

Reported by @faran1512

Other sources

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.

— MITRE

Affected Software

3 affected componentsFixes available
composer/fof/oauth<1.7.4, <2.0.0-beta.4
composer/fof/oauth>=2.0.0-beta.1<2.0.0-beta.4
2.0.0-beta.4
composer/fof/oauth<1.7.4
1.7.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/fof/oauth to a version that resolves this vulnerability.

    Fixed in 2.0.0-beta.4
  2. Upgrade

    Upgrade composer/fof/oauth to a version that resolves this vulnerability.

    Fixed in 1.7.4
  3. Upgrade

    Upgrade fof/oauth to a version that resolves this vulnerability.

    Fixed in 1.7.4
  4. Upgrade

    Upgrade fof/oauth to a version that resolves this vulnerability.

    Fixed in 2.0.0-beta.4
  5. Configuration

    Disable the Discord OAuth provider in the extension settings if you cannot update immediately.

    fof/oauth Discord OAuth provider Discord OAuth provider = disabled

Event History

Sep 25, 2026
CVE Published
via MITRE·03:53 PM
Data Sourced
via MITRE·03:53 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·03:55 PM
Data Sourced
via GitHub·03:55 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via NVD·04:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Deployments using FriendsOfFlarum OAuth before 1.7.4 or 2.0.0-beta.4 are exposed when Discord sign-in is enabled. The issue can affect any Flarum account, including administrator accounts.

2

What does an attacker need to exploit it?

The attacker needs to know a Flarum user's email address and must be able to configure a Discord account with that address while it remains unverified, plus a verified phone number. Exploitation also requires that the victim email address is not already associated with a Discord account.

3

Are the other bundled OAuth providers known to be affected in practice?

GitHub, Twitter, Facebook, and other bundled providers were not confirmed to be practically exploitable through this method. Their relevant authentication flows return only verified or confirmed email addresses.

4

What should be done if immediate patching is not possible?

Disable Discord sign-in until FriendsOfFlarum OAuth can be updated to 1.7.4 or 2.0.0-beta.4. This prevents the vulnerable Discord OAuth email-trust flow from being used.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203