CVE-2026-35511 — Vulnerability in authorizerdev/authorizer
Authorizer: Zero-click account takeover via OAuth identity linking to unverified email accounts
Does your project use an affected github.com/authorizerdev/authorizer version?
Paste your go.sum to check it for CVE-2026-35511 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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/http_handlers/oauth_callback.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
-
Attacker signs up with
victim@company.comusing email/password. Attacker sets a known password but does NOT click the email verification link. The account exists in the database withEmailVerifiedAt = nil. -
Some time later, the real owner of
victim@company.comlogs in via Google OAuth (a completely normal action). -
The OAuth callback at line 125 finds the attacker's existing account by email.
-
At line 164, the Google OAuth identity is linked to the attacker's account.
-
At line 179-181, the email is automatically verified (the attacker never verified it, but now it's marked as verified).
-
At line 175, "google" is appended to the signup methods. The account now has both "basic_auth" and "google" as valid login methods.
-
The attacker's original password is still valid in the database. It was never cleared, changed, or invalidated.
-
The attacker logs in with
victim@company.comand 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
Advisory Timeline
- First published August 14, 2026 (104 days ago).
- Last revised August 18, 2026 — 4 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get github.com/authorizerdev/authorizer@v0.0.0-20260807033110-66fe488fd2a4
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: Go (1).
| Package | Fixed In |
|---|---|
| github.com/authorizerdev/authorizer Go · Affected: All versions | 0.0.0-20260807033110-66fe488fd2a4 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-287Improper AuthenticationMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
References
- https://github.com/authorizerdev/authorizer/security/advisories/GHSA-29rf-f4vv-pvq6WEB
- https://github.com/authorizerdev/authorizer/commit/66fe488fd2a4e7acf1e517334344d5e8f3ddd296WEB
- https://github.com/authorizerdev/authorizerPACKAGE
- https://github.com/authorizerdev/authorizer/releases/tag/2.4.0-rc.16WEB
Frequently Asked Questions
- What is CVE-2026-35511?
- Authorizer: Zero-click account takeover via OAuth identity linking to unverified email accounts. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.8/10).
- How do I check if my project is affected by CVE-2026-35511?
- CVE-2026-35511 affects github.com/authorizerdev/authorizer. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-35511 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
Also Known As
Related CVEs
- CVE-2026-54072CRITICAL
Authorizer: Unvalidated redirect_uri in /authorize leaks OAuth2 tokens to attacker-controlled URL
- CVE-2026-108262HIGH
DDEV incomplete tar symlink traversal fix allows host file overwrite - Incomplete fix of CVE-2026-32885
- CVE-2026-130007HIGH
k8s-mcp-server: Missing authentication on default SSE/HTTP transport allows unauthenticated Kubernetes tool execution