Skip to content
OpenAdvisories
Medium · 6.1 Public exploit CVE-2026-44166 EUVD-2026-29723GHSA-pq7p-mc74-g65wGO-2026-5548

Pocketbase: Account pre-hijacking via OAuth2 unverfied->verified autolinking upgrade

Published May 12, 2026 · Updated May 12, 2026 · Assigned by GitHub_M

Description

Pocketbase is an open source web backend written in go. Prior to 0.22.42 and 0.37.4, in some situations, if an attacker knows the email address of the victim they can create and link an unverified PocketBase user in advance by authenticating with one of the OAuth2 app providers, e.g. "A". When the victim gets invited or decides to sign up to your app on their own with provider "B" (PocketBase OAuth2 auth requires to be with a different provider because we don't allow multiple OAuth2 accounts from the same provider to be associated to a single PocketBase user), the user created previously by the attacker will be autolinked, upgraded to "verified" and its old password reset. This vulnerability is fixed in 0.22.42 and 0.37.4.

Affected products

VendorProductAffectedFixed
pocketbase pocketbase < 0.22.42, >= 0.30.0, < 0.37.4 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
SLES for SAP 16.0 govulncheck-vulndb 0.0.20260727T201416-160000.1.1 SUSE-SU-2026:23227-1, SUSE-SU-2026:23216-1
SLES 16.0 govulncheck-vulndb 0.0.20260727T201416-160000.1.1 SUSE-SU-2026:23227-1, SUSE-SU-2026:23216-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed pocketbase 0.40.5-1.1 openSUSE-SU-2026:12167-1
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260727T201416-160000.1.1 openSUSE-SU-2026:21551-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/pocketbase/pocketbase < 0.22.42 0.22.42 GHSA-pq7p-mc74-g65w
Go github.com/pocketbase/pocketbase >= 0.30.0, < 0.37.4 0.37.4 GHSA-pq7p-mc74-g65w
Go github.com/pocketbase/pocketbase < 0.22.42 · >= 0.30.0, < 0.37.4 0.22.42, 0.37.4 GO-2026-5548

Advisories 4

References