Skip to content
Heist/ feed
Back to feed
Critical

FriendsOfFlarum OAuth: Unauthenticated account takeover via unverified email trust in Discord OAuth provider

Type: advisorySources: OSV

FriendsOfFlarum OAuth allows users to log in to Flarum with GitHub, Twitter, Facebook, and other providers. Prior to 1.7.4 and 2.0.0-beta.4, the Discord OAuth provider does not check the verified field returned for an OAuth email before passing the address to Flarum core as trusted through provideTrustedEmail(). When Discord sign-in is enabled, an unauthenticated attacker who knows the email address of a Flarum user can configure a Discord account with that unverified address and a verified phone number, then sign in to cause Flarum to match the trusted address, link the attacker-controlled Discord identity to the existing user, and authenticate as the victim without a password or victim interaction. Exploitation requires that the victim's email address is not already associated with a Discord account, and it can compromise administrator accounts. Other bundled providers were not confirmed to be practically exploitable by this method because their relevant authentication flows return only verified or confirmed email addresses. This issue is fixed in versions 1.7.4 and 2.0.0-beta.4.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-92161
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 02:48 UTC · Revision 1

Source evidence

FriendsOfFlarum OAuth: Unauthenticated account takeover via unverified email trust in Discord OAuth provider

core-osv · Original source

Published 25 Sept 2026, 15:53 UTC

FriendsOfFlarum OAuth allows users to log in to Flarum with GitHub, Twitter, Facebook, and other providers. Prior to 1.7.4 and 2.0.0-beta.4, the Discord OAuth provider does not check the verified field returned for an OAuth email before passing the address to Flarum core as trusted through provideTrustedEmail(). When Discord sign-in is enabled, an unauthenticated attacker who knows the email address of a Flarum user can configure a Discord account with that unverified address and a verified phone number, then sign in to cause Flarum to match the trusted address, link the attacker-controlled Discord identity to the existing user, and authenticate as the victim without a password or victim interaction. Exploitation requires that the victim's email address is not already associated with a Discord account, and it can compromise administrator accounts. Other bundled providers were not confirmed to be practically exploitable by this method because their relevant authentication flows return only verified or confirmed email addresses. This issue is fixed in versions 1.7.4 and 2.0.0-beta.4.

osv:CVE-2026-92161
Complete source record
{
  "id": "dcbb8a3d8a467f67b331b15595e8a32e19eafd827edaf730ff40282bef59667d",
  "url": "https://osv.dev/vulnerability/CVE-2026-92161",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "FriendsOfFlarum OAuth: Unauthenticated account takeover via unverified email trust in Discord OAuth provider",
    "summary": "FriendsOfFlarum OAuth allows users to log in to Flarum with GitHub, Twitter, Facebook, and other providers. Prior to 1.7.4 and 2.0.0-beta.4, the Discord OAuth provider does not check the verified field returned for an OAuth email before passing the address to Flarum core as trusted through provideTrustedEmail(). When Discord sign-in is enabled, an unauthenticated attacker who knows the email address of a Flarum user can configure a Discord account with that unverified address and a verified phone number, then sign in to cause Flarum to match the trusted address, link the attacker-controlled Discord identity to the existing user, and authenticate as the victim without a password or victim interaction. Exploitation requires that the victim's email address is not already associated with a Discord account, and it can compromise administrator accounts. Other bundled providers were not confirmed to be practically exploitable by this method because their relevant authentication flows return only verified or confirmed email addresses. This issue is fixed in versions 1.7.4 and 2.0.0-beta.4.",
    "evidence": "osv:CVE-2026-92161",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2026-92161",
      "aliases": [
        "CVE-2026-92161",
        "GHSA-g7vj-c29h-3h5m"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/friendsofflarum/oauth",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "79be5861b404e31df49a38b095f1d5e3814a3e3c"
                },
                {
                  "introduced": "deca8944b21af8c98db98d8c130848e0668be1b9"
                },
                {
                  "fixed": "b8a6cd5e30624841df19106926b1bc862f260f7f"
                },
                {
                  "fixed": "baca3466b3b7be51c70a7e0ba966901aefeb344a"
                },
                {
                  "fixed": "bb4bf376832e6bb68c579715d2a4b5a92c4a2567"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.7.4"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "introduced": "2.0.0-beta.1"
                      },
                      {
                        "fixed": "2.0.0-beta.4"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "baca3466b3b7be51c70a7e0ba966901aefeb344a"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "bb4bf376832e6bb68c579715d2a4b5a92c4a2567"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "79be5861b404e31df49a38b095f1d5e3814a3e3c"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "1.7.4"
                  },
                  {
                    "range": [
                      {
                        "fixed": "b8a6cd5e30624841df19106926b1bc862f260f7f"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "2.0.0-beta.4"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.0.0-beta.3",
            "2.0.0-beta.2",
            "1.7.3",
            "2.0.0-beta.1",
            "1.7.2",
            "1.7.1",
            "1.7.0",
            "1.6.16",
            "1.6.14",
            "1.6.13",
            "1.6.12",
            "1.6.11",
            "1.6.10",
            "1.6.9",
            "1.6.8",
            "1.6.7",
            "1.6.6",
            "1.6.5",
            "1.6.4",
            "1.6.3",
            "1.6.2",
            "1.6.1",
            "1.5.4",
            "1.5.3",
            "1.5.2",
            "1.5.1",
            "1.5.0",
            "1.4.4",
            "1.4.3",
            "1.4.2",
            "1.4.1",
            "1.4.0",
            "1.3.2",
            "1.3.1",
            "1.3.0",
            "1.2.5",
            "1.2.4",
            "1.2.3",
            "1.2.2",
            "1.2.1",
            "1.2.0",
            "1.1.1",
            "1.1.0",
            "1.0.2",
            "1.0.1",
            "1.0.0",
            "0.3.0",
            "0.2.1",
            "0.2.0",
            "0.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-92161.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:25.287737263Z",
      "provider": "osv",
      "references": [
        "https://github.com/FriendsOfFlarum/oauth/releases/tag/1.7.4",
        "https://github.com/FriendsOfFlarum/oauth/releases/tag/2.0.0-beta.4",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/92xxx/CVE-2026-92161.json",
        "https://github.com/FriendsOfFlarum/oauth/security/advisories/GHSA-g7vj-c29h-3h5m",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-92161",
        "https://github.com/FriendsOfFlarum/oauth/commit/baca3466b3b7be51c70a7e0ba966901aefeb344a",
        "https://github.com/FriendsOfFlarum/oauth/commit/bb4bf376832e6bb68c579715d2a4b5a92c4a2567"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-345"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/92xxx/CVE-2026-92161.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-92161",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 492014,
  "published_at": "2026-09-25T15:53:34.825+00:00"
}