CVE-2026-44166
MEDIUM 6.1CVSS 4.0PocketBase vulnerable to account pre-hijacking via OAuth2 unverfied->verified autolinking upgrade
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.
- Published
- 12 May 2026
- Last modified
- 11 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-287
- Also known as
- GHSA-pq7p-mc74-g65wGO-2026-5548
- Sources
- NVDJSONOSV GHSA-pq7p-mc74-g65wJSONOSV GO-2026-5548JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 6.1 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | pocketbase | pocketbasecpe:2.3:a:pocketbase:pocketbase:*:*:*:*:*:go:*:* |
< 0.22.42 | 0.22.42 |
| NVD | pocketbase | pocketbasecpe:2.3:a:pocketbase:pocketbase:*:*:*:*:*:go:*:* |
>= 0.23.0, < 0.37.4 | 0.37.4 |
| OSV | Go | github.com/pocketbase/pocketbase | < 0.22.42 | 0.22.42 |
| OSV | Go | github.com/pocketbase/pocketbase | >= 0.30.0, < 0.37.4 | 0.37.4 |
| OSV | Go | github.com/pocketbase/pocketbase | < 0.22.42; >= 0.30.0, < 0.37.4 | 0.22.42, 0.37.4 |
References
- https://github.com/pocketbase/pocketbase/security/advisories/GHSA-pq7p-mc74-g65w · Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-44166 · ADVISORY
- https://github.com/pocketbase/pocketbase · PACKAGE
- https://github.com/pocketbase/pocketbase/commit/44bf55097af90c4c9dc240a8ea0d81923763a60e · FIX
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 12 May 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 24 Jul 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 5 May 2026)