MediumGHSA-35vc-w93w-75c2CVE-2021-29651GO-2022-0783

JWT leak via Open Redirect in Programmatic access

Published 21 May 2021 · Updated 8 Jul 2026

Is your project on an affected github.com/pomerium/pomerium?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
<0.13.4
Fixed in
0.13.4
Update to the fixed version for your release line, for example:go get github.com/pomerium/pomerium@v0.13.4

Details

Impact

Using programmatic access on protected sites, one can get a signed login URL with pomerium_redirect_uri set to an arbitrary URL. Then, if the user has already logged into Pomerium, they will be redirected to the specified pomerium_redirect_uri with a JWT attached. This allows an outside attacker to get a signed login URL that, upon visiting it, will redirect a victim to the attacker’s site. This creates an issue of Open Redirect and, more seriously, JWT leakage.

With a leaked JWT, the attacker will be able to unveil the victim’s identity (.e.g. email address) by supplying the JWT to the authenticate service or verify.pomerium.com. In addition, if an application integrating Pomerium only verifies the iss claim and others but not the aud claim, the attacker will be able to access it as the victim.

Specific Go Packages Affected

github.com/pomerium/pomerium/proxy

Patches

Patched in Pomerium v0.13.4

For more information

If you have any questions or comments about this advisory

  • Open an issue in pomerium
  • Email us at [security@pomerium.com](mailto:security@pomerium.com)

Is GHSA-35vc-w93w-75c2 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/pomerium/pomerium, and gives you the command that fixes it.

More advisories for github.com/pomerium/pomerium

  • HighCVE-2026-50285Pomerium Pre-Auth Memory Exhaustion via Unbounded zstd Decompression in HPKE Callback · 15 Jul 2026
  • LowCVE-2024-47616Pomerium service account access token may grant unintended access to databroker API in github.com/pomerium/pomerium · 9 Oct 2024
  • HighCVE-2024-47616Pomerium service account access token may grant unintended access to databroker API · 2 Oct 2024
  • MediumCVE-2022-24797Exposure of debug and metrics endpoints in Pomerium · 6 Sept 2024
  • LowCVE-2021-39162Incorrect handling of H2 GOAWAY + SETTINGS frames in github.com/pomerium/pomerium · 21 Aug 2024
  • LowCVE-2021-29652pomerium_signature is not verified in middleware in github.com/pomerium/pomerium · 21 Aug 2024
All 19 advisories for github.com/pomerium/pomerium

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.