GHSA-29rf-f4vv-pvq6: Go/github.com/authorizerdev/authorizer vulnerability

Published Aug 14, 2026
·
Updated

The OAuth callback handler links incoming OAuth identities (Google, GitHub, etc.) to existing accounts matched by email address without verifying that the existing account's email was verified by its original owner. An attacker who pre-registers with a victim's email address (without verifying it) gains persistent password-based access to the victim's account after the victim completes a normal OAuth login. Verified against HEAD (commit 73679fa).

Root Cause

In internal/httphandlers/oauthcallback.go, when an OAuth login occurs for an email that already exists in the database:

Line 125: The existing user is looked up by email:

existingUser, err := h.StorageProvider.GetUserByEmail(ctx, refs.StringValue(user.Email))

Line 164: The OAuth user object is replaced with the existing user:

user = existingUser

Lines 173-176: The OAuth provider is appended to the existing user's signup methods:

signupMethod := existingUser.SignupMethods if !strings.Contains(signupMethod, provider) { signupMethod = signupMethod + "," + provider } user.SignupMethods = signupMethod

Lines 179-181: If the existing account's email was NOT verified, it is automatically verified:

if user.EmailVerifiedAt == nil { now := time.Now().Unix() user.EmailVerifiedAt = &now }

Line 219: The merged user is saved to the database:

user, err = h.StorageProvider.UpdateUser(ctx, user)

At no point is the existing account's password invalidated or the owner notified that a new OAuth identity was linked.

Attack Chain

1. Attacker signs up with victim@company.com using email/password. Attacker sets a known password but does NOT click the email verification link. The account exists in the database with EmailVerifiedAt = nil.

2. Some time later, the real owner of victim@company.com logs in via Google OAuth (a completely normal action).

3. The OAuth callback at line 125 finds the attacker's existing account by email.

4. At line 164, the Google OAuth identity is linked to the attacker's account.

5. At line 179-181, the email is automatically verified (the attacker never verified it, but now it's marked as verified).

6. At line 175, "google" is appended to the signup methods. The account now has both "basicauth" and "google" as valid login methods.

7. The attacker's original password is still valid in the database. It was never cleared, changed, or invalidated.

8. The attacker logs in with victim@company.com and the password they originally set. They now have full access to the victim's account, including any data the victim added via their Google session.

Why This Is Zero-Click

The victim performs no unusual action. They simply log in via their Google account, which is the expected, secure behavior. The attacker staged the account beforehand and gains access without any further interaction.

This is a classic Account Linking vulnerability (cited in OWASP authentication guidelines). The core logic flaw is a trust boundary violation. Authorizer correctly trusts that Google has verified the email address, but it incorrectly extends that trust to validate the password that was set by the unverified attacker. The attacker maintains persistent, password-based backdoor access to the victim's account, even if the victim later revokes Authorizer's OAuth access from their Google account settings. The password was set before Google was ever involved and is never invalidated by the linking process.

Impact

- Full account takeover for any user who logs in via OAuth - Attacker maintains persistent password-based access even after the victim changes OAuth providers - All data the victim creates after OAuth login is accessible to the attacker - The victim has no indication their account was pre-staged - Affects every OAuth provider configured in Authorizer (Google, GitHub, Facebook, Apple, LinkedIn, Twitter, Discord, Twitch, Roblox, Microsoft)

Suggested Fix

Before linking an OAuth identity to an existing account, verify that the existing account's email is already verified:

existingUser, err := h.StorageProvider.GetUserByEmail(ctx, refs.StringValue(user.Email)) if err == nil { // Account exists. Only link if email is already verified. if existingUser.EmailVerifiedAt == nil { // Email not verified by original owner. Do NOT link. // Either: reject the login, or create a new separate account, // or delete the unverified account and create a fresh one for the OAuth user. } }

Additionally, when linking a new OAuth identity, invalidate any existing password on the account or require the user to re-authenticate via the original method.

Credit Koda Reef

Affected Software

1 affected componentFixes available
go/github.com/authorizerdev/authorizer<0.0.0-20260807033110-66fe488fd2a4
0.0.0-20260807033110-66fe488fd2a4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/github.com/authorizerdev/authorizer to a version that resolves this vulnerability.

    Fixed in 0.0.0-20260807033110-66fe488fd2a4

Event History

Aug 14, 2026
Advisory Published
via GitHub·03:36 PM
Data Sourced
via GitHub·03:36 PM
DescriptionWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of GHSA-29rf-f4vv-pvq6?

The severity of GHSA-29rf-f4vv-pvq6 is rated at 80, indicating a high risk.

2

How do I fix GHSA-29rf-f4vv-pvq6?

To fix GHSA-29rf-f4vv-pvq6, update your application to version 2.4.0 or later where the issue has been addressed.

3

What type of vulnerability is GHSA-29rf-f4vv-pvq6?

GHSA-29rf-f4vv-pvq6 is an OAuth callback handler vulnerability that allows account linking without verifying the email ownership.

4

Who is affected by GHSA-29rf-f4vv-pvq6?

Users and applications utilizing the OAuth mechanism for identity management in Go's Authorizer library are affected by GHSA-29rf-f4vv-pvq6.

5

What can an attacker do with GHSA-29rf-f4vv-pvq6?

An attacker can potentially link their own account to a victim's account by exploiting unverified email addresses, leading to unauthorized access.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203
GHSA-29rf-f4vv-pvq6 - Go/github.com/authorizerdev/authorizer vulnerability - SecAlerts