CVE-2026-92161: FriendsOfFlarum OAuth Unauthenticated Account Takeover Vulnerability
CRITICALCVE-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
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).
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.
Upgrade fof/oauth to 1.7.4
Upgrade fof/oauth to 2.0.0-beta.4
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
CVE-2026-92161 Affected FriendsOfFlarum OAuth Versions
2 component(s)| 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?
Which FriendsOfFlarum OAuth versions are affected?
What version fixes CVE-2026-92161?
Is fof/oauth affected?
What is the CVSS score of CVE-2026-92161?
What CWE is associated with CVE-2026-92161?
How can I check Packagist dependencies for CVE-2026-92161?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}