fix(oauth): strengthen PKCE validation and refresh token replay protection #142

Closed
opened 2026-05-24 08:20:37 +00:00 by jmiller · 0 comments
Owner

Summary

Tighten PKCE handling, redirect URI normalization, and refresh-token replay safety. Also binds token exchanges to the original client request.

Upstream Reference

Severity: High

OAuth security hardening.

Warning

Upstream issue #37807 reports that the refresh token binding (#37740) breaks Drone CI cron jobs. Test OAuth clients before deploying.

Action

Cherry-pick from upstream release/v1.26. Test any OAuth integrations thoroughly.


Authored-by: Claude Opus 4.6 (1M context) noreply@anthropic.com

## Summary Tighten PKCE handling, redirect URI normalization, and refresh-token replay safety. Also binds token exchanges to the original client request. ## Upstream Reference - PR: https://github.com/go-gitea/gitea/pull/37738 (backport of #37706) - PR: https://github.com/go-gitea/gitea/pull/37740 (backport of #37704) - Merged: 2026-05-17 - Branch: release/v1.26 ## Severity: High OAuth security hardening. ## Warning Upstream issue #37807 reports that the refresh token binding (#37740) breaks Drone CI cron jobs. Test OAuth clients before deploying. ## Action Cherry-pick from upstream `release/v1.26`. Test any OAuth integrations thoroughly. --- *Authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>*
jmiller added the priority: highsecuritytype: bugupstream labels 2026-05-24 08:25:46 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoGitea#142