Critical · 9.8 PHP packages GHSA-g7vj-c29h-3h5m CVE-2026-92161 PKSA-4zg4-dqk9-5wt7
Unauthenticated Account Takeover in FriendsOfFlarum OAuth via Discord Provider (CVE-2026-92161)
A critical flaw in the FriendsOfFlarum OAuth extension for Flarum lets an unauthenticated attacker take over any user account, including administrators, by abusing the Discord login provider's handling of unverified email addresses. Fixed in 1.7.4 and 2.0.0-beta.4.
By PatchBriefing ·
Produced automatically from official sources with the help of AI. How we work →
AI summary
A critical vulnerability has been disclosed in FriendsOfFlarum OAuth, an extension that lets Flarum forum users log in with third-party providers such as GitHub, Twitter, Facebook, and Discord. The flaw allows an unauthenticated attacker to take over existing user accounts, including administrator accounts, without needing a password or any action from the victim. The issue is tracked as CVE-2026-92161 and has been fixed in released versions.
What happened
FriendsOfFlarum OAuth's Discord login integration did not verify whether the email address returned by Discord during sign-in was actually confirmed as belonging to the account owner. The extension passed this address to Flarum core as a trusted email via the provideTrustedEmail() mechanism without checking Discord's 'verified' flag. An attacker who knows a victim's email address can register a Discord account using that address, verify a phone number instead of the email, and then sign in through the forum's Discord option. Flarum matches the trusted email to the existing user account and links the attacker's Discord identity to it, granting the attacker full access as that user — with no password required and no interaction needed from the victim.
Technical cause
The root cause is classified as Insufficient Verification of Data Authenticity (CWE-345). The Discord OAuth provider in fof/oauth accepted an email address from Discord's API as trustworthy without checking whether Discord itself had verified that email. Other bundled providers in the extension were not confirmed to be exploitable via this same method, because their respective OAuth flows only return email addresses that are already verified or confirmed on the provider side.
Why it matters
This vulnerability allows full account takeover, including of administrator accounts, by an attacker who has no prior access and does not need the victim to click a link or take any action. The attack only requires that the victim's email address is known to the attacker and is not already linked to a Discord account. Given the low complexity, lack of required privileges, and lack of user interaction, successful exploitation could lead to complete compromise of confidentiality, integrity, and availability for the affected forum account.
Who is affected
Any Flarum forum using the fof/oauth package with the Discord sign-in provider enabled is potentially affected, provided a targeted user's email address is not already tied to a Discord account.
Affected versions
Versions of fof/oauth prior to 1.7.4 are affected, as are pre-release versions from 2.0.0-beta.1 up to but not including 2.0.0-beta.4.
Fixes and mitigation
The vulnerability is fixed in fof/oauth version 1.7.4 and in pre-release version 2.0.0-beta.4. Site operators running affected versions should update to one of these fixed releases.
Recommended action
Update the fof/oauth package to version 1.7.4 or later (or 2.0.0-beta.4 or later if running the 2.0.0 beta line) as soon as possible. If an immediate update is not feasible, consider temporarily disabling the Discord sign-in provider within the OAuth extension's settings until the update can be applied.
PatchBriefing score
9.8 / 10 · Critical
Official CVSS: 9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS 0.0036 (22 percentile)
Why this score
The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.
Affected versions
- fof/oauth >= 2.0.0-beta.1, < 2.0.0-beta.4
- vulnerable
- fof/oauth >=2.0.0-beta.1,<2.0.0-beta.4|<1.7.4
- vulnerable
- ≥ 1.7.4
- patched
- ≥ 2.0.0-beta.4
- patched
Reported fixes
The vulnerability is fixed in fof/oauth version 1.7.4 and in pre-release version 2.0.0-beta.4. Site operators running affected versions should update to one of these fixed releases.
How this was built
4 source records were collected, matched and used to prepare the report above.
-
GitHub Advisory Database database
-
Packagist Security Advisories registry
-
NVD (NIST) database
-
CVE.org database
Revision history
- Generated
- Published
- Generated