CVE-2026-44166

HIGH

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

Title source: cna
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2026-44166. PoCs published by Alardiians.

AI-analyzed exploit summary This repository contains a functional exploit for CVE-2026-44166, demonstrating an OAuth2 account pre-hijacking vulnerability in PocketBase. The PoC shows how an attacker can pre-claim a victim's email address, leading to either permanent lockout or silent co-ownership of the account.

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.

Exploits (1)

github WORKING POC
by Alardiians · pythonpoc
https://github.com/Alardiians/pocketbase-CVE-2026-44166

This repository contains a functional exploit for CVE-2026-44166, demonstrating an OAuth2 account pre-hijacking vulnerability in PocketBase. The PoC shows how an attacker can pre-claim a victim's email address, leading to either permanent lockout or silent co-ownership of the account.

Classification
Working Poc 100%
Attack Type
Auth Bypass
Complexity
Moderate
Reliability
Reliable
Target: PocketBase < 0.22.42 and >= 0.30.0, < 0.37.4
No auth needed
Prerequisites: PocketBase instance with OAuth2 enabled · Attacker-controlled OAuth2 provider account
devstral-2 · analyzed Jun 11, 2026 Full analysis →

References (1)

Core 1
Core References

Scores

CVSS v3 7.6
EPSS 0.0019
EPSS Percentile 8.8%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-287
Status published
Products (4)
pocketbase/pocketbase < 0.22.42 (2 CPE variants)
pocketbase/pocketbase 0 - 0.22.42Go
pocketbase/pocketbase 0.30.0 - 0.37.4Go
pocketbase/pocketbase >= 0.30.0, < 0.37.4
Published May 12, 2026
Tracked Since May 12, 2026