CVE-2026-42560

Critical

Description

auth provides authentication via oauth2, direct and email. From versions 1.18.0 to before 1.25.2 and 2.0.0 to before 2.1.2, the Patreon OAuth provider maps every authenticated Patreon account to the same local user.ID, instead of deriving a unique ID from the Patreon account returned by Patreon. In practice, this means all Patreon-authenticated users of an application using this library are collapsed into a single local identity. Any application that trusts token.User.ID as the stable account key can end up mixing or fully merging unrelated Patreon users, which can lead to cross-account access, privilege confusion, and subscription-state leakage. This issue has been patched in versions 1.25.2 and 2.1.2.

SeverityCritical
CVSS9.1
Exploit probability—
ProductGithub.com/go-pkgz/auth
PublishedMay 9, 2026
First seenMay 9, 2026

How to fix

Update
  • github.com/go-pkgz/auth1.25.2 or later
  • github.com/go-pkgz/auth/v22.1.2 or later

Affected products

ProductAffected versionsFixed in
github.com/go-pkgz/authGo1.18.0 ≤ v < 1.25.21.25.2
github.com/go-pkgz/auth/v2Go2.0.0 ≤ v < 2.1.22.1.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.