Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/go-pkgz/auth/v2
  4. ›
  5. CVE-2026-42560

CVE-2026-42560: auth: Patreon provider assigns the same local user ID to every authenticated Patreon account, enabling cross‑user impersonation

April 30, 2026

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.

References

  • github.com/advisories/GHSA-f6qq-3m3h-4g42
  • github.com/go-pkgz/auth
  • github.com/go-pkgz/auth/commit/c0b15ee72a8401da83c01781c16636c521f42698
  • github.com/go-pkgz/auth/releases/tag/v1.25.2
  • github.com/go-pkgz/auth/releases/tag/v2.1.2
  • github.com/go-pkgz/auth/security/advisories/GHSA-f6qq-3m3h-4g42
  • nvd.nist.gov/vuln/detail/CVE-2026-42560

Code Behaviors & Features

Detect and mitigate CVE-2026-42560 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.0.0 before 2.1.2

Fixed versions

  • 2.1.2

Solution

Upgrade to version 2.1.2 or above.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-287: Improper Authentication

Source file

go/github.com/go-pkgz/auth/v2/CVE-2026-42560.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:19:49 +0000.