CVE-2026-92161: FriendsOfFlarum OAuth Unauthenticated Account Takeover Vulnerability

CRITICAL
Advisory Identifier: GHSA-g7vj-c29h-3h5m
CVSS 9.8
CWE-345
Published
Advisory Summary

CVE-2026-92161 is a CRITICAL (CVSS 9.8) unauthenticated account takeover vulnerability (CWE-345: Insufficient Verification of Data Authenticity) affecting FriendsOfFlarum OAuth libraries in the Packagist ecosystem. The issue involves unauthenticated account takeover via unverified email trust in discord oauth provider. Remediation is available by upgrading affected packages to version 1.7.4, 2.0.0-beta.4.

CVE-2026-92161 at a Glance

CVE Identifier CVE-2026-92161
GHSA Identifier GHSA-g7vj-c29h-3h5m
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-345: Insufficient Verification of Data Authenticity
Affected Product FriendsOfFlarum OAuth
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 9.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2026-92161

To remediate this vulnerability, upgrade all affected FriendsOfFlarum OAuth dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

fof/oauth fixed: 1.7.4
Upgrade fof/oauth to 1.7.4
fof/oauth fixed: 2.0.0-beta.4
Upgrade fof/oauth to 2.0.0-beta.4
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for fof/oauth

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-92161, inspect your project dependencies for FriendsOfFlarum OAuth:

inspect dependencies for fof/oauth

Analyze the terminal output to locate any version of FriendsOfFlarum OAuth in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.7.4), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-345: Insufficient Verification of Data Authenticity, where the product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data. In FriendsOfFlarum OAuth, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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 victim's email address is not already associated with a Discord account. 4. The attacker creates or configures a Discord account using the victim's email address without verifying it and verifies a phone number instead. 5. The attacker authenticates to the forum using that Discord account. The issue is specific to Discord's ability to return an unverified email address through OAuth. Other bundled providers were not confirmed to be practically exploitable through the same method because they only return verified or confirmed email addresses in the relevant authentication flow. ### Patched Versions - [1.7.4](https://github.com/FriendsOfFlarum/oauth/releases/tag/1.7.4) - [2.0.0-beta.4](https://github.com/FriendsOfFlarum/oauth/releases/tag/2.0.0-beta.4) ### Workarounds Administrators who cannot update immediately should disable the Discord OAuth provider in the extension settings. ### Credits Reported by @faran1512

CVE-2026-92161 Affected FriendsOfFlarum OAuth Versions

2 component(s)
Fixed Versions:
1.7.42.0.0-beta.4
Product / Package Ecosystem Affected Versions Fixed Version
fof/oauth
Packagist
< 1.7.4
1.7.4
fof/oauth
Packagist
≥ 2.0.0-beta.1
< 2.0.0-beta.4
2.0.0-beta.4

References

Frequently Asked Questions

What is CVE-2026-92161?
CVE-2026-92161 is a security vulnerability in FriendsOfFlarum OAuth involving Unauthenticated account takeover via unverified email trust in Discord OAuth provider under CWE-345: Insufficient Verification of Data Authenticity.
Which FriendsOfFlarum OAuth versions are affected?
Affected versions include releases prior to 1.7.4, 2.0.0-beta.4 across affected packages: fof/oauth.
What version fixes CVE-2026-92161?
Upgrading to 1.7.4, 2.0.0-beta.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is fof/oauth affected?
Yes, fof/oauth is affected in releases prior to 1.7.4, 2.0.0-beta.4. Upgrade your dependency to 1.7.4, 2.0.0-beta.4 or later.
What is the CVSS score of CVE-2026-92161?
CVE-2026-92161 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2026-92161?
CVE-2026-92161 is classified under CWE-345: Insufficient Verification of Data Authenticity (The product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data.).
How can I check Packagist dependencies for CVE-2026-92161?
Run the dependency tree command: 'inspect dependencies for fof/oauth'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-g7vj-c29h-3h5m",
  "modified" : "2026-09-25T20:30:07Z",
  "published" : "2026-09-25T15:55:07Z",
  "aliases" : [ "CVE-2026-92161" ],
  "summary" : "FriendsOfFlarum OAuth: Unauthenticated account takeover via unverified email trust in Discord OAuth provider",
  "details" : "### Impact\n\nAn unauthenticated account takeover vulnerability exists in `fof/oauth` when the Discord OAuth provider is enabled.\n\nDiscord 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`.\n\nAffected 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.\n\nAn 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.\n\n#### Preconditions for exploitation\n\n1. Discord sign-in is enabled on the forum.\n2. The victim has a Flarum account with a known email address.\n3. The victim's email address is not already associated with a Discord account.\n4. The attacker creates or configures a Discord account using the victim's email address without verifying it and verifies a phone number instead.\n5. The attacker authenticates to the forum using that Discord account.\n\nThe issue is specific to Discord's ability to return an unverified email address through OAuth. Other bundled providers were not confirmed to be practically exploitable through the same method because they only return verified or confirmed email addresses in the relevant authentication flow.\n\n### Patched Versions\n\n- [1.7.4](https://github.com/FriendsOfFlarum/oauth/releases/tag/1.7.4)\n- [2.0.0-beta.4](https://github.com/FriendsOfFlarum/oauth/releases/tag/2.0.0-beta.4)\n\n### Workarounds\n\nAdministrators who cannot update immediately should disable the Discord OAuth provider in the extension settings.\n\n### Credits\n\nReported by @faran1512",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "fof/oauth"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.7.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "fof/oauth"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0-beta.1"
      }, {
        "fixed" : "2.0.0-beta.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfFlarum/oauth/security/advisories/GHSA-g7vj-c29h-3h5m"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-92161"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfFlarum/oauth/commit/baca3466b3b7be51c70a7e0ba966901aefeb344a"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfFlarum/oauth/commit/bb4bf376832e6bb68c579715d2a4b5a92c4a2567"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/FriendsOfFlarum/oauth"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfFlarum/oauth/releases/tag/1.7.4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfFlarum/oauth/releases/tag/2.0.0-beta.4"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-345" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-09-25T15:55:07Z",
    "nvd_published_at" : "2026-09-25T16:17:29Z"
  }
}