Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-92161 Overview
CVE-2026-92161 is an authentication bypass in the FriendsOfFlarum OAuth extension for the Flarum forum platform. The Discord OAuth provider fails to verify the verified field on email addresses before passing them to Flarum core through provideTrustedEmail(). An unauthenticated attacker who knows a Flarum user's email address can register a Discord account using that unverified address and a verified phone number. Signing in through Discord then causes Flarum to match the trusted address and link the attacker-controlled Discord identity to the existing account. The attacker authenticates as the victim without a password or any victim interaction. Administrator accounts are in scope. The flaw is tracked under [CWE-345: Insufficient Verification of Data Authenticity].
Critical Impact
Unauthenticated takeover of any Flarum account, including administrators, when Discord sign-in is enabled and the victim's email is not already linked to a Discord account.
Affected Products
- FriendsOfFlarum OAuth extension versions prior to 1.7.4
- FriendsOfFlarum OAuth extension 2.0.0-beta releases prior to 2.0.0-beta.4
- Flarum installations with the Discord OAuth provider enabled
Discovery Timeline
- 2026-09-25 - CVE-2026-92161 published to NVD
- 2026-09-30 - Last updated in NVD database
Technical Details for CVE-2026-92161
Vulnerability Analysis
The FriendsOfFlarum OAuth extension bridges third-party identity providers to Flarum's account system. When a provider returns an email address that the extension deems trustworthy, it calls provideTrustedEmail() to automatically link or authenticate the account associated with that address. This mechanism assumes the upstream provider has verified ownership of the email.
For the Discord provider, that assumption does not hold. Discord allows accounts to exist with unverified email addresses when a verified phone number is present. The extension passes the email to Flarum regardless of the verified flag returned by Discord's OAuth userinfo response. An attacker who registers a Discord account with the victim's email and a verified phone number can therefore trigger an automatic link to the victim's Flarum account on first Discord sign-in.
The other bundled providers were not confirmed to be exploitable because their authentication flows return only verified addresses. Exploitation requires that the victim has not already linked a Discord account to the Flarum instance.
Root Cause
The Discord provider class did not inspect the verified property on the Discord resource owner object before marking the email as trusted. The patched code introduces the DiscordResourceOwner type and performs the verification check prior to calling provideTrustedEmail().
Attack Vector
Exploitation is remote, unauthenticated, and requires no user interaction from the victim. The attacker needs the target email address, a Discord account registered with that address, and a verified phone number on the Discord account. The attacker then initiates Discord sign-in on the target Flarum forum and is authenticated as the victim.
use FoF\OAuth\Provider;
use League\OAuth2\Client\Provider\AbstractProvider;
use Wohali\OAuth2\Client\Provider\Discord as DiscordProvider;
+use Wohali\OAuth2\Client\Provider\DiscordResourceOwner;
class Discord extends Provider
{
Source: GitHub Commit baca3466. The patch imports the typed resource owner so the provider can read the verified field and reject unverified emails before trusting them.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-92161
Indicators of Compromise
- New Discord identity links created on accounts that previously had no Discord association, especially administrator accounts.
- Successful Discord OAuth sign-ins immediately followed by profile, permission, or email change actions.
- Sign-in events from IP addresses or user agents that do not match the account's historical pattern.
Detection Strategies
- Audit the oauth_tokens table (or equivalent linking records) for Discord entries created on or after the extension was installed and before patching to 1.7.4 or 2.0.0-beta.4.
- Correlate Flarum authentication logs with reverse proxy or web server logs to identify unexpected Discord callback traffic preceding privileged actions.
- Alert on first-time Discord linking events for users holding administrative groups.
Monitoring Recommendations
- Enable verbose logging for the OAuth callback route and retain logs for post-incident review.
- Monitor administrator group membership changes and configuration edits for drift following any Discord sign-in event.
- Track sign-in anomalies such as new geolocations or client fingerprints on accounts with linked Discord identities.
How to Mitigate CVE-2026-92161
Immediate Actions Required
- Upgrade the FriendsOfFlarum OAuth extension to 1.7.4 or 2.0.0-beta.4 immediately.
- Review all Discord identity links on the forum and remove any that cannot be attributed to the legitimate account owner.
- Force password resets and session invalidation for administrator accounts and other privileged users.
Patch Information
Fixed versions are published as FriendsOfFlarum OAuth 1.7.4 and FriendsOfFlarum OAuth 2.0.0-beta.4. The upstream fix is described in GitHub Security Advisory GHSA-g7vj-c29h-3h5m, with implementation details in commit baca3466 and commit bb4bf376.
Workarounds
- Disable the Discord OAuth provider in the Flarum admin panel until the extension can be upgraded.
- Restrict administrator accounts to password or alternative provider sign-in only, removing any linked Discord identities.
- If Discord sign-in must remain enabled, require pre-registration linking by trusted users rather than permitting new accounts to be created or matched by email.
# Upgrade the extension using Composer
composer require friendsofflarum/oauth:^1.7.4
php flarum cache:clear
# Or for the 2.x beta track
composer require friendsofflarum/oauth:2.0.0-beta.4
php flarum cache:clear
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

