Skip to content

fix(client): restrict redirects to same-origin reads - #120

Open
Chris0Jeky wants to merge 3 commits into
google:mainfrom
Chris0Jeky:codex/submit-redirect-policy
Open

Chris0Jeky wants to merge 3 commits into
google:mainfrom
Chris0Jeky:codex/submit-redirect-policy

Conversation

@Chris0Jeky

@Chris0Jeky Chris0Jeky commented Sep 16, 2026

Copy link
Copy Markdown

Keep bearer tokens and custom headers from following redirects to another origin. Same-origin GET/HEAD redirects still work; redirected POSTs are rejected without replay. Clients behind redirecting gateways must use the final trusted endpoint.

26 client tests pass on Linux Python 3.10/3.12/3.13 and Windows Python 3.12/3.13. Full locked tests remain red (base 92 failures, candidate 93); the extra timing failure also reproduced on unchanged base. Both have 11 lint findings; format and core types pass.

Google security directed this fix to the project maintainers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant