Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. fof/oauth
  4. ›
  5. CVE-2026-92161

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

September 25, 2026

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.

References

  • github.com/FriendsOfFlarum/oauth/commit/baca3466b3b7be51c70a7e0ba966901aefeb344a
  • github.com/FriendsOfFlarum/oauth/commit/bb4bf376832e6bb68c579715d2a4b5a92c4a2567
  • github.com/FriendsOfFlarum/oauth/releases/tag/1.7.4
  • github.com/FriendsOfFlarum/oauth/releases/tag/2.0.0-beta.4
  • github.com/FriendsOfFlarum/oauth/security/advisories/GHSA-g7vj-c29h-3h5m
  • github.com/advisories/GHSA-g7vj-c29h-3h5m
  • nvd.nist.gov/vuln/detail/CVE-2026-92161

Code Behaviors & Features

Detect and mitigate CVE-2026-92161 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.7.4, all versions starting from 2.0.0-beta.1 before 2.0.0-beta.4

Fixed versions

  • 1.7.4
  • 2.0.0-beta.4

Solution

Upgrade to versions 1.7.4, 2.0.0-beta.4 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-345: Insufficient Verification of Data Authenticity

Source file

packagist/fof/oauth/CVE-2026-92161.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 27 Sep 2026 12:18:08 +0000.