Advisory

GHSA-9h33-g3ww-mqff

Also known as: CVE-2026-28512, GO-2026-4653

Summary

Pocket ID: OAuth redirect_uri validation bypass via userinfo/host confusion

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-03-09 17:24 UTC
Modified
2026-03-23 04:56 UTC

Affected packages and fixes

github.com/pocket-id/pocket-id/backend

Go · All systems

Affected

  • introduced 0, fixed 0.0.0-20260228130835-3a339e33191c (semver)

Fixed versions

0.0.0-20260228130835-3a339e33191c

Fix

  • Fixed version 0.0.0-20260228130835-3a339e33191c
    go get github.com/pocket-id/pocket-id/[email protected]

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences