# CVE-2026-44166: Pocketbase: Account pre-hijacking via OAuth2 unverfied->verified autolinking upgrade

- Severity: Medium 6.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-02)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2026-05-05T21:17:19.000Z
- Modified: 2026-11-11T20:10:00.273Z
- Also known as: GHSA-pq7p-mc74-g65w, GO-2026-5548
- Weaknesses: CWE-287
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- pocketbase pocketbase: < 0.22.42; >= 0.30.0, < 0.37.4; before 0.22.42; from 0.23.0 before 0.37.4
- github.com/pocketbase/pocketbase (Go): before 0.22.42; from 0.30.0 before 0.37.4

## Every score

- GitHub_M: CVSS:4.0 6.1 Medium `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`
- GitHub: CVSS:4.0 Medium `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: CVSS:3.1 7.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L`

## References

- <https://github.com/pocketbase/pocketbase/security/advisories/GHSA-pq7p-mc74-g65w> (exploit, advisory, vendor-advisory, web)
- <https://github.com/pocketbase/pocketbase> (exploit, package)
- <https://github.com/pocketbase/pocketbase/commit/44bf55097af90c4c9dc240a8ea0d81923763a60e> (exploit, fix)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-44166> (advisory)

## Sources

- CVE List: [CVE-2026-44166](https://www.cve.org/CVERecord?id=CVE-2026-44166), CVE Terms of Use, modified 2026-05-12
- GitHub Advisory Database: [GHSA-pq7p-mc74-g65w](https://github.com/advisories/GHSA-pq7p-mc74-g65w), CC-BY-4.0, modified 2026-07-24
- Go Vulnerability Database: [GO-2026-5548](https://pkg.go.dev/vuln/GO-2026-5548), CC-BY-4.0, modified 2026-07-24
- NVD: [CVE-2026-44166](https://nvd.nist.gov/vuln/detail/CVE-2026-44166), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-44166 · Whole record: https://cve.day/CVE-2026-44166.json · Rebuilt by cve.day 2026-11-25T22:59:21.453Z
