p PatchFirst

CVE-2026-92161

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

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 9.8 · Critical · EPSS 0.3% · Fix available

Published
Updated

Stack: php

Affected products and versions

  • oauth

    Versions
    • < 1.7.4: Affected
    • >= 2.0.0-beta.1, < 2.0.0-beta.4: Affected

    No fix published

  • fof/oauth Packagist

    Versions
    • 0.1.0
    • 0.2.0
    • 0.2.1
    • 0.3.0
    • 1.0.0
    • 1.0.1
    • 1.0.2
    • 1.1.0
    • 1.1.1
    • 1.2.0
    • 1.2.1
    • 1.2.2
    • 1.2.3
    • 1.2.4
    • 1.2.5
    • 1.3.0
    • 1.3.1
    • 1.3.2
    • 1.4.0
    • 1.4.1
    • 1.4.2
    • 1.4.3
    • 1.4.4
    • 1.5.0
    • 1.5.1
    • 1.5.2
    • 1.5.3
    • 1.5.4
    • 1.6.1
    • 1.6.10
    • 1.6.11
    • 1.6.12
    • 1.6.13
    • 1.6.14
    • 1.6.16
    • 1.6.2
    • 1.6.3
    • 1.6.4
    • 1.6.5
    • 1.6.6
    • 1.6.7
    • 1.6.8
    • 1.6.9
    • 1.7.0
    • 1.7.1
    • 1.7.2
    • 1.7.3
    Affected ranges
    • ECOSYSTEM: < 1.7.4

    Update to 1.7.4

  • fof/oauth Packagist

    Versions
    • 2.0.0-beta.1
    • 2.0.0-beta.2
    • 2.0.0-beta.3
    Affected ranges
    • ECOSYSTEM: ≥ 2.0.0-beta.1, < 2.0.0-beta.4

    Update to 2.0.0-beta.4

Original sources

Check your server →