/

CVE-2026-136165

Severity:

HIGH RISK

(7.4)

Authentication Bypass (CWE-287) in Fider OAuth Linking

CVE-2026-136165

Deferred

Vulnerability type

Category:

Authentication Bypass

CWE:

CWE-287

Impact:

Account Takeover

Severity:

HIGH RISK

(7.4)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Fider's OAuth identity-linking flow can allow an unauthenticated attacker to sign in as an existing user when an OAuth account presents a matching email address that has not been verified. If that identity is linked to the victim's account, the attacker may gain persistent access, including to an administrator account.

Affected context

The vulnerability affects Fider's OAuth identity-linking flow. It becomes risky when the flow treats an email match as proof of ownership without confirming that the OAuth provider has verified the address. An attacker may be able to exploit this condition using a Google account with an unverified copy of an existing Fider user's email.

Exploit preconditions

  • Attack surface: Fider's OAuth sign-in and identity-linking flow
  • Required access: No existing Fider authentication is required; the attacker needs control of an OAuth account presenting an email that matches a victim's account
  • Trigger point: The OAuthToken handler processes the identity and links it to an existing account
  • Why exploitation is possible: The flow may rely on an email match without verifying that the OAuth provider has confirmed ownership of that email

Why this happens

The underlying issue is insufficient authentication of an external identity during account linking. Treating a matching but unverified email as proof of ownership can allow an attacker-controlled OAuth identity to be bound to another user's account. This maps to CWE-287: Improper Authentication, because the application does not adequately verify the identity before granting access.

Potential impact

  • An attacker may gain access to a victim's Fider account
  • An attacker could retain access through a linked OAuth identity and persistent sessions
  • A compromised account may expose private feedback or account data
  • Account takeover could affect tenant administrators and may enable further unauthorized actions

General mitigation guidance

Defensive patterns focus on establishing ownership before linking external identities:

  • Require the OAuth provider to assert that an email address is verified before using it for account matching
  • Require the user to authenticate to the existing account before linking a new identity
  • Use explicit confirmation and clear notifications when identities are linked or changed
  • Keep external identity identifiers distinct from email-based account matching
  • Apply least privilege to accounts and limit the effects of a compromised session

How teams detect issues like this

High-level detection approaches include:

  • Review identity-linking logic for account matching based solely on email addresses
  • Use static analysis and code review to identify OAuth flows that do not check provider verification claims
  • Monitor audit logs for unexpected identity links, changes to authentication methods, and unusual sign-ins
  • Enforce policies requiring verified identity claims and reauthentication for sensitive account changes

Automated code review tools may help flag risky authentication and account-linking patterns.

Sources

SourceLink
github.comgithub.com/getfider/fider/blob/v0.39.0/app/handlers/oauth.go#L251-L310
github.comgithub.com/getfider/fider/commit/8c67dfa333cfbf516ea0bfdf9268784ca4d8b2a2
github.comgithub.com/getfider/fider/releases/tag/v0.40.0
github.comgithub.com/getfider/fider/security/advisories/GHSA-mxx8-x4p9-c9c5
vulncheck.comvulncheck.com/advisories/fider-before-0.40.0-account-takeover-via-unverified-google-oauth-email

Frequently asked

questions

The attacker does not need to authenticate to Fider, but the attack depends on matching an existing user's email during OAuth identity linking.

The described attack requires control of an OAuth account that presents a matching, unverified copy of a victim's email address.

Verify email ownership using trusted provider claims and require authentication to the existing account before linking another identity.

Treat external identities as untrusted until verified, avoid relying on email matches alone, and monitor and audit identity-linking changes.

Find out what's already
exploitable in your codebase.