{"answers":{"affected":"6 open source packages ship an affected version, including github.com/go-pkgz/auth and github.com/go-pkgz/auth/v2.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-42560 exists.","fix":"Upgrade github.com/go-pkgz/auth to 1.25.2 or later.","what":"CVE-2026-42560 is a critical authentication bypass vulnerability in go-pkgz auth, published on 9 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-42560 and fix it if it is affected.\n\nWhat it is: CVE-2026-42560 is a critical authentication bypass vulnerability in go-pkgz auth, published on 9 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-42560 exists.\n\nAffected packages and fixed versions:\n- github.com/go-pkgz/auth (Go): affected from 1.18.0; fixed in 1.25.2\n- github.com/go-pkgz/auth (Go): affected from 1.18.0; fixed in 1.25.2\n- github.com/go-pkgz/auth (Go): affected from 1.18.0; fixed in 1.25.2\n- github.com/go-pkgz/auth/v2 (Go): affected from 2.0.0; fixed in 2.1.2\n- github.com/go-pkgz/auth/v2 (Go): affected from 2.0.0; fixed in 2.1.2\n- github.com/go-pkgz/auth/v2 (Go): affected from 2.0.0; fixed in 2.1.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-42560/ (Markdown: https://insights.sbomify.com/CVE-2026-42560/index.md)","id":"CVE-2026-42560","markdown":"https://insights.sbomify.com/CVE-2026-42560/index.md","name":"CVE-2026-42560","record":{"aliases":["GHSA-f6qq-3m3h-4g42","GO-2026-5348"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["account_takeover","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Go authentication library","requires_auth":"none","summary":"The Patreon OAuth provider assigns identical local IDs to all users, allowing attackers to impersonate others and access their accounts.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":9.1,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"auth: Patreon provider assigns the same local user ID to every authenticated Patreon account, enabling cross‑user impersonation","id":"CVE-2026-42560","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"auth_bypass","year":"2026"},"n_packages":6,"n_references":4,"next":{"headline":"Python-Multipart: Denial of Service via unbounded multipart part headers","id":"CVE-2026-42561"},"packages":[{"ecosystem":"Go","fixed":["1.25.2"],"introduced":["1.18.0"],"last_affected":[],"package":"github.com/go-pkgz/auth","purl":null,"source":"GHSA-f6qq-3m3h-4g42"},{"ecosystem":"Go","fixed":["1.25.2"],"introduced":["1.18.0"],"last_affected":[],"package":"github.com/go-pkgz/auth","purl":"pkg:golang/github.com/go-pkgz/auth","source":"GHSA-f6qq-3m3h-4g42"},{"ecosystem":"Go","fixed":["1.25.2"],"introduced":["1.18.0"],"last_affected":[],"package":"github.com/go-pkgz/auth","purl":"pkg:golang/github.com/go-pkgz/auth","source":"GO-2026-5348"},{"ecosystem":"Go","fixed":["2.1.2"],"introduced":["2.0.0"],"last_affected":[],"package":"github.com/go-pkgz/auth/v2","purl":null,"source":"GHSA-f6qq-3m3h-4g42"},{"ecosystem":"Go","fixed":["2.1.2"],"introduced":["2.0.0"],"last_affected":[],"package":"github.com/go-pkgz/auth/v2","purl":"pkg:golang/github.com/go-pkgz/auth/v2","source":"GHSA-f6qq-3m3h-4g42"},{"ecosystem":"Go","fixed":["2.1.2"],"introduced":["2.0.0"],"last_affected":[],"package":"github.com/go-pkgz/auth/v2","purl":"pkg:golang/github.com/go-pkgz/auth/v2","source":"GO-2026-5348"}],"prev":{"headline":"RMCP: DNS rebinding vulnerability in rmcp Streamable HTTP server transport","id":"CVE-2026-42559"},"products":["auth"],"published":"2026-05-09","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-05-11","vendors":["go-pkgz"]},"summary":"The Patreon OAuth provider assigns identical local IDs to all users, allowing attackers to impersonate others and access their accounts.","url":"https://insights.sbomify.com/CVE-2026-42560/"}