Skip to main content

CVE-2026-44166 — Vulnerability in pocketbase/pocketbase — CVE Details

MEDIUM

PocketBase vulnerable to account pre-hijacking via OAuth2 unverfied->verified autolinking upgrade

Published May 5, 2026Updated July 24, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.32%). Schedule for your next planned update.

Does your project use an affected github.com/pocketbase/pocketbase version?

Paste your go.sum to check it for CVE-2026-44166 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my go.sum

Summary

A pre-hijacking issue was discovered with the OAuth2 autolinking by Alardiians.

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.

The upgrade flow operates within the expectations but the problem is that I forgot to clear the previous OAuth2 link(s) leaving the attacker to still have access to the initially created user.

Or in other words, the vulnerability is similar to the mixed password + OAuth2 auth pre-hijacking issue that we had in the past but with a slightly different angle.

So with that in mind, and to avoid introducing breaking changes to the auth flows, a new fix was applied that automatically deletes all such pre-existing OAuth2 links on "unverified" to "verified" upgrades.

While the vulnerability requires some prerequisites, it is considered severe and it is strongly recommended to upgrade to v0.37.4 (or to v0.22.42 if you are using an older <v0.23.0 release).

Advisory Timeline

  • First published May 5, 2026 (205 days ago).
  • Last revised July 24, 2026 — 80 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update github.com/pocketbase/pocketbase to 0.37.4 or later
go get github.com/pocketbase/pocketbase@v0.37.4
Go
Update github.com/pocketbase/pocketbase to 0.22.42 or later
go get github.com/pocketbase/pocketbase@v0.22.42

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: Go (1).

PackageFixed In
github.com/pocketbase/pocketbase Go · Affected: All versions0.37.4
github.com/pocketbase/pocketbase Go · Affected: All versions0.22.42

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-287
    Improper AuthenticationMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.2 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
P
Scope
—
Confidentiality
—
Integrity
—
Availability
—

CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N

Frequently Asked Questions

What is CVE-2026-44166?
PocketBase vulnerable to account pre-hijacking via OAuth2 unverfied->verified autolinking upgrade. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 7.2/10).
How do I check if my project is affected by CVE-2026-44166?
CVE-2026-44166 affects github.com/pocketbase/pocketbase. It has a 0.3% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-44166 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
7.2

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.32%
EPSS percentile: 17.1

This is a below-median EPSS score — only 17.1% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-pq7p-mc74-g65w
GO-2026-5548

Related CVEs

  • CVE-2026-82410
    HIGH

    Pocketbase: Unhandled panic in worker goroutines

  • CVE-2026-54765
    MEDIUM

    Traefik: Gateway HTTPRoute backendRef filters can leak backend context across routes sharing a Service:port

  • CVE-2026-88011
    MEDIUM

    Traefik: ForwardAuth identity spoofing via dot-form header alias

  • CVE-2026-82410

    Pocketbase: Unhandled panic in worker goroutines in github.com/pocketbase/pocketbase

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my go.sum