Critical, CVSS 9.8PackagistAmendedPublished
FriendsOfFlarum OAuth: Unauthenticated account takeover via unverified email trust in Discord OAuth provider
CVE-2026-92161 · GHSA-g7vj-c29h-3h5m
- Affected
- Packagist fof/oauth < 1.7.4; >= 2.0.0-beta.1, < 2.0.0-beta.4
- Fixed in
- 2.0.0-beta.41.7.4· Vendor fix available
- Issue
- 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…
Recommended action: Upgrade to 2.0.0-beta.4 (pre-release) or 1.7.4 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.