GitHub Advisoryadvisory · Go
GHSA-9h33-g3ww-mqff Pocket ID: OAuth redirect_uri validation bypass via userinfo/host confusion
HIGH
Official page ↗
- Aliases
- CVE-2026-28512
- Ecosystem
- Go
- Packages
- github.com/pocket-id/pocket-id/backend
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
- Weaknesses
- CWE-601
- Reviewed
- 2026-03-09
Affected packages
• Go github.com/pocket-id/pocket-id/backend: < 0.0.0-20260228130835-3a339e33191c → fixed in 0.0.0-20260228130835-3a339e33191c
Description
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.
Related
Alias · CVE (1)
- CVE-2026-28512 Pocket ID is an OIDC provider that allows users to authenticate with their passkeys to your services. vulnerability
Weakness · CWE (1)
- CWE-601 URL Redirection to Untrusted Site weakness