{"id":"CVE-2026-44166","published":"2026-05-12T17:16:59Z","modified":"2026-05-12T18:50:17Z","title":"Pocketbase: Account pre-hijacking via OAuth2 unverfied->verified autolinking upgrade","vendor":"pocketbase","product":"pocketbase","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00247,"percentile":0.16333,"provenance":"source"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"}],"references":[{"url":"https://github.com/pocketbase/pocketbase/security/advisories/GHSA-pq7p-mc74-g65w","tags":["x_refsource_CONFIRM"]}],"priority":{"score":12.5,"factors":[{"name":"EPSS percentile","points":3.27},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.27}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-06-11","earliestUrl":"https://github.com/Alardiians/pocketbase-CVE-2026-44166","repos":[{"name":"Alardiians/pocketbase-CVE-2026-44166","url":"https://github.com/Alardiians/pocketbase-CVE-2026-44166","stars":0,"created":"2026-06-11"}]},"first":{"date":"2026-06-11","source":"PoC-in-GitHub","url":"https://github.com/Alardiians/pocketbase-CVE-2026-44166"},"provenance":"source"},"vendorSlug":"pocketbase","affectedVersions":[{"vendor":"pocketbase","product":"pocketbase","versions":["< 0.22.42",">= 0.30.0, < 0.37.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-12T18:46:42.906618Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/pocketbase/pocketbase","vulnerableRanges":["<0.22.42",">=0.30.0, <0.37.4"],"patched":["0.22.42","0.37.4"],"from":["GHSA-pq7p-mc74-g65w","GO-2026-5548"],"provenance":"source"}],"summary":{"text":"PocketBase, an open source Go web backend, has a flaw in its OAuth2 account autolinking logic that allows an existing unverified user record to be silently upgraded to verified and have its password reset when the same email address later signs in through a different OAuth2 provider. An attacker who knows a victim's email address can exploit this by pre-creating an unverified account via one OAuth2 provider, and it requires the victim to subsequently sign up or be invited through a different provider, which involves user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:49:04Z"},"euvd":{"id":"EUVD-2026-29723","exploited":false,"provenance":"source"},"exploitRefs":["https://github.com/pocketbase/pocketbase/security/advisories/GHSA-pq7p-mc74-g65w","https://github.com/pocketbase/pocketbase","https://github.com/pocketbase/pocketbase/commit/44bf55097af90c4c9dc240a8ea0d81923763a60e"],"lineage":{"packageHistory":[{"cve":"CVE-2024-38351","published":"2024-06-18","fixed":"0.22.14","kev":false,"link":{"from":"CVE-2024-38351","to":"CVE-2026-44166","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/pocketbase/pocketbase","fromFixed":"0.22.14","toFixed":"0.22.42","daysApart":693},{"kind":"similar","provenance":"machine","score":0.44,"basis":"same product + CWE + description similarity"}]}},{"cve":"CVE-2026-44166","published":"2026-05-12","fixed":"0.37.4","kev":false},{"cve":"CVE-2026-82410","published":"2026-09-16","fixed":"0.39.7","kev":false,"link":{"from":"CVE-2026-44166","to":"CVE-2026-82410","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/pocketbase/pocketbase","fromFixed":"0.22.42","toFixed":"0.22.48","daysApart":127}]}}],"package":"Go:github.com/pocketbase/pocketbase"}}