CVE-2026-28512: Pocket ID: OAuth redirect_uri validation bypass via userinfo/host confusion
Impact A flaw in callback URL validation allowed crafted redirecturi values containing URL userinfo (@) to bypass legitimate callback pattern checks. If an attacker can trick a user into opening a malicious authorization link, the authorization code may be redirected to an attacker-controlled host. Patches Fixed in v2.3.1 (commit 3a339e33191c31b68bf57db907f800d9de5ffbc8).
Published Mar 9, 2026 · Updated Mar 10, 2026
Affected packages
github.com/pocket-id/pocket-id/backend
- Ecosystem
- Go
- Affected
- < 0.0.0-20260228130835-3a339e33191c
- Fixed in
- 0.0.0-20260228130835-3a339e33191c
- Check
go list -m github.com/pocket-id/pocket-id/backend
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
A flaw in callback URL validation allowed crafted redirect_uri values containing URL userinfo (@) to bypass legitimate callback pattern checks. If an attacker can trick a user into opening a malicious authorization link, the authorization code may be redirected to an attacker-controlled host.
Patches
Fixed in v2.3.1 (commit 3a339e33191c31b68bf57db907f800d9de5ffbc8). The fix replaces delimiter-based callback matching with structured URL pattern matching and updates validation logic/tests.
Workarounds
- Reject callback URLs containing userinfo (
@) at reverse proxy / app policy level if feasible.
Credited to ByamB4.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-115770
Pocket ID: Email verification token remains valid after address change, enabling arbitrary verified-email spoofing
critical9.6Nov 9, 2026CVE-2026-62662
Pocket ID: The client credentials grant allows any OIDC client to obtain tokens for arbitrary audiences
high7.7Nov 9, 2026CVE-2026-55834
Pocket-ID has an Open Redirect on the OIDC /authorize page via unvalidated redirect_uri with prompt=none
medium4.3Aug 28, 2026CVE-2026-43983
Pocket ID: OIDC refresh token flow bypasses authorization revocation, account disabling, and group restrictions
high8.5Jul 28, 2026GHSA-hp74-gm6m-2qm5
Pocket ID has a reauthentication bypass via one-time access token login — passkey step-up requirement defeated by JWT freshness check that accepts any login method
medium6.0Jul 28, 2026CVE-2026-28513
Pocket ID: OIDC authorization code validation uses AND instead of OR, allowing cross-client token exchange
high8.5Mar 9, 2026
